Skip to content

Commit

Permalink
fixes #51
Browse files Browse the repository at this point in the history
  • Loading branch information
Nonary committed Jan 23, 2024
1 parent 9ef2409 commit f28fe87
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions ResolutionMatcher-Functions.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ function Assert-ResolutionChange($width, $height, $refresh) {


function Join-Overrides($width, $height, $refresh) {
Write-Host "Before Override: $width x $height x $refresh"
$overrides = Get-Content ".\overrides.txt" -ErrorAction SilentlyContinue
foreach ($line in $overrides) {
if ($null -ne $line -and "" -ne $line) {
Expand All @@ -82,11 +83,13 @@ function Join-Overrides($width, $height, $refresh) {
}
}

return @{
height = $height
width = $width
refresh = $refresh
}
}

Write-Host "After Override: $width x $height x $refresh"
return @{
height = $height
width = $width
refresh = $refresh
}
}

Expand Down

0 comments on commit f28fe87

Please sign in to comment.