Skip to content

Commit 7f694b4

Browse files
author
elpatron68
committed
Farming Simulator version configurable
1 parent df83002 commit 7f694b4

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

cpupdate_portable.bat

+6-2
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ rem
3737
set deployment="ZIPFILE"
3838
rem set deployment="DIRECTORY"
3939
rem =============================================================================
40+
rem Set Farming Simulator version
41+
set fsversion="2019"
42+
rem set fsversion="2017"
43+
rem =============================================================================
4044
rem If you want the command window to close after run: set autoclose="YES".
4145
rem Otherwise you have to hit a keystroke after the run - which enables you
4246
rem to see what happened.
@@ -127,13 +131,13 @@ for /f "skip=2 tokens=2*" %%A in ('reg query "HKEY_CURRENT_USER\Software\Microso
127131

128132
:: Setting Mod directory
129133
SETLOCAL
130-
for /f "delims=" %%i in ('cscript %TEMP%\moddir.vbs "%UserDocs%\My Games\FarmingSimulator2017\gameSettings.xml" //Nologo') do set moddir=%%i
134+
for /f "delims=" %%i in ('cscript %TEMP%\moddir.vbs "%UserDocs%\My Games\FarmingSimulator%fsversion%\gameSettings.xml" //Nologo') do set moddir=%%i
131135

132136
rem Setting Courseplay mod folder or file
133137
if defined moddir (
134138
set _dest=%moddir%\ZZZ_courseplay
135139
) else (
136-
set _dest=%UserDocs%\my games\FarmingSimulator2017\mods\ZZZ_courseplay
140+
set _dest=%UserDocs%\my games\FarmingSimulator%fsversion%\mods\ZZZ_courseplay
137141
)
138142

139143
echo Deployment method is %deployment%.

0 commit comments

Comments
 (0)