Rename the mod slug to phantombladezero_cppbypass
Rename phantombladezero_scriptcompat -> phantombladezero_cppbypass across mod.json (folder), the install/deploy/log paths, the GitHub URL in NOTICE.md, the build output path and the release zip names, and the docs. The display name "PBZ Script Compatibility" and the internal C++ class are unchanged. Build and both release zips verified under the new name.
This commit is contained in:
1 parent
663b0d73f4
commit
2bdeccb0e5
8 files changed
+12
-12
No files matched your search
+2
-2
@@ -43,10 +43,10 @@ flags = ['/nologo','/c','/std:c++20','/O2','/MD','/EHsc','/W4','/WX','/permissiv
|
||||
for source in ['dllmain','compatibility']:
|
||||
run([compiler/'cl.exe',*flags,f'/Fo{build/source}.obj',ROOT/'src'/f'{source}.cpp'])
|
||||
run([compiler/'lib.exe','/nologo',f'/def:{ROOT/"tools/vendor/ue4ss-sdk/UE4SS.def"}','/machine:x64',f'/out:{build/"UE4SS.lib"}'])
|
||||
out = ROOT/'dist/ue4ss/Mods/phantombladezero_scriptcompat/dlls'
|
||||
out = ROOT/'dist/ue4ss/Mods/phantombladezero_cppbypass/dlls'
|
||||
out.mkdir(parents=True,exist_ok=True)
|
||||
run([compiler/'link.exe','/nologo','/DLL','/INCREMENTAL:NO','/OPT:REF','/OPT:ICF',
|
||||
f'/OUT:{out/"main.dll"}',f'/IMPLIB:{build/"scriptcompat.lib"}',
|
||||
f'/OUT:{out/"main.dll"}',f'/IMPLIB:{build/"cppbypass.lib"}',
|
||||
build/'dllmain.obj',build/'compatibility.obj',*objects,build/'UE4SS.lib','kernel32.lib','bcrypt.lib'])
|
||||
run([compiler/'cl.exe',*flags,'/DCOMPAT_TESTING',f'/Fo{build/"compatibility-test.obj"}',ROOT/'src/compatibility.cpp'])
|
||||
run([compiler/'cl.exe',*flags,f'/Fo{build/"native_hooks.obj"}',ROOT/'tests/native_hooks.cpp'])
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@ import zipfile
|
||||
ROOT=Path(__file__).resolve().parents[1]
|
||||
out=ROOT/'dist'
|
||||
version=json.loads((ROOT/'mod.json').read_text())['version']
|
||||
stem=f'phantombladezero_scriptcompat_{version}_experimental'
|
||||
stem=f'phantombladezero_cppbypass_{version}_experimental'
|
||||
binary=out/(stem+'.zip')
|
||||
source=out/(stem+'_source.zip')
|
||||
binary_files=[out/'README.md',out/'LICENSE',out/'NOTICE.md',out/'CONTRIBUTORS.md',
|
||||
|
||||
@@ -40,7 +40,7 @@ native=subprocess.run([str(ROOT/'build/native_hooks.exe'),str(prologues)],cwd=RO
|
||||
capture_output=True,text=True,check=True)
|
||||
report['native_tests']=native.stdout.splitlines()
|
||||
print(native.stdout,end='')
|
||||
dll=ROOT/'dist/ue4ss/Mods/phantombladezero_scriptcompat/dlls/main.dll'
|
||||
dll=ROOT/'dist/ue4ss/Mods/phantombladezero_cppbypass/dlls/main.dll'
|
||||
mod=pefile.PE(str(dll),fast_load=True)
|
||||
mod.parse_data_directories(directories=[0,1])
|
||||
assert mod.FILE_HEADER.Machine==0x8664
|
||||
|
||||
Reference in new issue
Block a user