Skip to content

Commit

Permalink
installer remembers previous selection
Browse files Browse the repository at this point in the history
  • Loading branch information
toasterparty committed Sep 23, 2022
1 parent f41fa7b commit 44522a1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dist/oc2-modding-install.bat
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ goto :EOF

:blank

echo Please find and double click your game executable...
echo Please select your game executable...
echo Typically "C:\Program Files\Steam\steamapps\common\Overcooked! 2\Overcooked2.exe"
echo.

Expand Down Expand Up @@ -83,9 +83,9 @@ goto :EOF

Add-Type -AssemblyName System.Windows.Forms
$f = new-object Windows.Forms.OpenFileDialog
$f.InitialDirectory = pwd
$f.InitialDirectory = "C:\Program Files\Steam\steamapps\common\Overcooked! 2\"
$f.Filter = "Overcooked! 2 (*.exe)|*.exe|All Files (*.*)|*.*"
$f.ShowHelp = $true
$f.Multiselect = $true
$f.ShowHelp = $false
$f.Multiselect = $false
[void]$f.ShowDialog()
if ($f.Multiselect) { $f.FileNames } else { $f.FileName }

0 comments on commit 44522a1

Please sign in to comment.