Eliminate lpx-paths.hpp, which contains hardwired paths.

This commit is contained in:
2026-02-25 17:22:26 -05:00
parent 816c3f6a0d
commit 56dc1319c1
4 changed files with 11 additions and 19 deletions

View File

@@ -247,19 +247,6 @@ def generate_buildconfiguration_xml():
target2.write_text(template)
def generate_lpx_paths():
"""
Unreal needs to be able to find the Luprex DLL, and it also needs to find the
Lua source code. For now, we just compile some hardwired paths into the
binary. Someday we'll do something more sophisticated.
"""
target = Path(f"{INTEGRATION}/Source/Integration/lpx-paths.hpp")
line1 = f'#define LUPREX_DLL_PATH "{INTEGRATION}/luprex/build/{OS}/luprexlib.{DLL}"'
line2 = f'#define LUPREX_ROOT_PATH "{INTEGRATION}/luprex"'
code = line1 + "\n" + line2 + "\n"
target.unlink(missing_ok=True)
target.write_text(code)
def generate_integration_uproject():
"""
@@ -406,7 +393,6 @@ if MODE == "code-workspace":
if MODE == "all":
unzip_unreal_engine_and_apply_patch()
generate_buildconfiguration_xml()
generate_lpx_paths()
generate_integration_uproject()
run_unrealengine_setup_bat_replacement()
run_generateprojectfiles_in_sandbox()