-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d2ff94c
commit 9c0a77a
Showing
10 changed files
with
112 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -76,6 +76,7 @@ | |
"xutility": "cpp", | ||
"*.rh": "cpp", | ||
"any": "cpp", | ||
"deque": "cpp" | ||
"deque": "cpp", | ||
"stack": "cpp" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,47 @@ | ||
rem Generate visual studio files and run the devcmd init | ||
@echo off | ||
set "projectdir=%CD%" | ||
set "PLUGIN_NAME="GrinchTrainer"" | ||
|
||
rem Set game paths below | ||
set "OUT_DIR="H:/GTA San Andreas"" | ||
:find_vs_path | ||
set "vs_path=" | ||
for %%d in (Community Preview Professional) do ( | ||
for /d %%e in ("C:\Program Files\Microsoft Visual Studio\2022\%%d") do ( | ||
if exist "%%e\Common7\Tools\VsDevCmd.bat" ( | ||
set "vs_path=%%e" | ||
goto :check_game_path | ||
) | ||
) | ||
) | ||
goto :eof | ||
|
||
cd tools | ||
:check_game_path | ||
if "%GTA_SA_DIR%"=="" ( | ||
echo Error: GTA_SA_DIR environment variable is not set. | ||
) | ||
|
||
if "%GTA_VC_DIR%"=="" ( | ||
echo Error: GTA_VC_DIR environment variable is not set. | ||
) | ||
|
||
if "%GTA_III_DIR%"=="" ( | ||
echo Error: GTA_III_DIR environment variable is not set. | ||
) | ||
|
||
if "%GTA_SS_DIR%"=="" ( | ||
echo Error: GTA_SS_DIR environment variable is not set. | ||
) | ||
echo[ | ||
|
||
:vs_install_found | ||
if not defined vs_path ( | ||
echo Error: Visual Studio installation not found. | ||
exit /b 1 | ||
) | ||
|
||
:run_premake | ||
cd "%projectdir%\tools" | ||
premake5.exe vs2022 | ||
cd ../build | ||
call "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Tools\VsDevCmd.bat" | ||
|
||
:run_dev | ||
cd "%projectdir%\build" | ||
call %vs_path%"\Common7\Tools\VsDevCmd.bat" |