-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update build scripts to support x64 builds and changing builtin wchar…
…_t type
- Loading branch information
Showing
13 changed files
with
73 additions
and
35 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
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,4 +1,4 @@ | ||
@ECHO OFF | ||
call ChangeLinks.bat dx1112f | ||
python SetDebug.py DeusEx.exe | ||
python SetProperties.py --debug-exe DeusEx.exe | ||
echo #define GAME_NAME "DeusEx v1112fm"> ..\gamename.h |
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,4 +1,4 @@ | ||
@ECHO OFF | ||
call ChangeLinks.bat hp1 | ||
python SetDebug.py HP.exe | ||
python SetProperties.py --debug-exe HP.exe | ||
echo #define GAME_NAME "Harry Potter Sourcerer's Stone v433"> ..\gamename.h |
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,4 +1,4 @@ | ||
@ECHO OFF | ||
call ChangeLinks.bat hp2 | ||
python SetDebug.py Game.exe | ||
python SetProperties.py --debug-exe Game.exe | ||
echo #define GAME_NAME "Harry Potter Chamber of Secrets v433"> ..\gamename.h |
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,4 +1,4 @@ | ||
@ECHO OFF | ||
call ChangeLinks.bat nerf | ||
python SetDebug.py Nerf.exe | ||
python SetProperties.py --debug-exe Nerf.exe | ||
echo #define GAME_NAME "Nerf Arena Blast v300"> ..\gamename.h |
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,4 +1,4 @@ | ||
@ECHO OFF | ||
call ChangeLinks.bat rune107 | ||
python SetDebug.py Rune.exe | ||
python SetProperties.py --debug-exe Rune.exe | ||
echo #define GAME_NAME "Rune v107"> ..\gamename.h |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
from pathlib import Path | ||
import re | ||
import argparse | ||
|
||
parse = argparse.ArgumentParser() | ||
parse.add_argument("--debug-exe") | ||
parse.add_argument("--wchar", action="store_true") | ||
|
||
args = parse.parse_args() | ||
|
||
exe_name = args.debug_exe | ||
|
||
SCRIPTS_DIR = Path(__file__).parent | ||
VS_PROJECT_PATH = SCRIPTS_DIR.parent | ||
|
||
prop_path = VS_PROJECT_PATH / "PropertySheet.props" | ||
|
||
props = prop_path.read_text() | ||
|
||
def replace_tag(tag: str, new_value: str, xml: str): | ||
return re.sub(fr"(?<=<{tag}>)(.*)(?=</{tag}>)", new_value, xml) | ||
|
||
props = replace_tag("UNREAL_EXE_NAME", exe_name, props) | ||
props = replace_tag("TreatWChar_tAsBuiltInType", "true" if args.wchar else "false", props) | ||
|
||
prop_path.write_text(props) | ||
|
||
sln_path = VS_PROJECT_PATH / "D3D9Drv.sln" | ||
sln_path.touch(exist_ok=True) |
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,4 +1,4 @@ | ||
@ECHO OFF | ||
call ChangeLinks.bat ut436 | ||
python SetDebug.py UnrealTournament.exe | ||
python SetProperties.py --debug-exe UnrealTournament.exe | ||
echo #define GAME_NAME "Unreal Tournament v436"> ..\gamename.h |
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,4 +1,4 @@ | ||
@ECHO OFF | ||
call ChangeLinks.bat ut469d | ||
python SetDebug.py UnrealTournament.exe | ||
python SetProperties.py --debug-exe UnrealTournament.exe | ||
echo #define GAME_NAME "Unreal Tournament v469d"> ..\gamename.h |
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,4 +1,4 @@ | ||
@ECHO OFF | ||
call ChangeLinks.bat unreal226 | ||
python SetDebug.py Unreal.exe | ||
python SetProperties.py --debug-exe Unreal.exe | ||
echo #define GAME_NAME "Unreal v226"> ..\gamename.h |
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,4 +1,4 @@ | ||
@ECHO OFF | ||
call ChangeLinks.bat unreal227k_12 | ||
python SetDebug.py Unreal.exe | ||
python SetProperties.py --debug-exe Unreal.exe --wchar | ||
echo #define GAME_NAME "Unreal v227k_12"> ..\gamename.h |