forked from djoe45/MSCMP
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.bat
More file actions
50 lines (32 loc) · 1.44 KB
/
setup.bat
File metadata and controls
50 lines (32 loc) · 1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
@echo off
SET PROJECT_PATH=%~dp0
REG ADD HKLM /F>nul 2>&1
IF NOT %ERRORLEVEL%==0 goto :no_permissions
:msc_path
set /p GAME_PATH=Paste here path to my summer car without traling slash:
if not exist "%GAME_PATH%/mysummercar.exe" goto invalid_path
setx /m MSCMP_GAME_PATH "%GAME_PATH%"
echo My Summer Car path has been written.
echo Preparing build folder structure.
if not exist %PROJECT_PATH%\bin mkdir %PROJECT_PATH%\bin
if not exist %PROJECT_PATH%\bin\Release mkdir %PROJECT_PATH%\bin\Release
copy %PROJECT_PATH%\3rdparty\steamapi\steam_api64.dll %PROJECT_PATH%\bin\Release
copy %PROJECT_PATH%\data\steam_appid.txt %PROJECT_PATH%\bin\Release
echo Release prepared.
if not exist "%PROJECT_PATH%\bin\Public Release" mkdir "%PROJECT_PATH%\bin\Public Release"
copy %PROJECT_PATH%\3rdparty\steamapi\steam_api64.dll "%PROJECT_PATH%\bin\Public Release"
copy %PROJECT_PATH%\data\steam_appid.txt "%PROJECT_PATH%\bin\Public Release"
echo Public release prepared.
if not exist %PROJECT_PATH%\bin\Debug mkdir %PROJECT_PATH%\bin\Debug
copy %PROJECT_PATH%\3rdparty\steamapi\steam_api64.dll %PROJECT_PATH%\bin\Debug
copy %PROJECT_PATH%\data\steam_appid.txt %PROJECT_PATH%\bin\Debug
echo Debug prepared.
echo Workspace has been setup
pause
goto :eof
:invalid_path
echo Invalid my summer car path. Unable to find %GAME_PATH%/mysummercar.exe.
goto msc_path
:no_permissions
echo Please run setup.bat as administrator.
pause