forked from GoobyCorp/Xbox-360-Crypto
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexp_build_task.py
More file actions
67 lines (52 loc) · 3.15 KB
/
Copy pathexp_build_task.py
File metadata and controls
67 lines (52 loc) · 3.15 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#!/usr/bin/env python3
from build_lib import *
from bin2lang import Language, lang_format
from exp_signer import sign_exp, ExpansionMagic
DEFAULT_EXP_ID = 0x48565050
XBONLINE_EXP_ID = 0x48564050
def main() -> int:
# assemble HVPP
print("Assembling HVPP.S...")
assemble_patch("Patches/HVPP.S", "Output/Compiled/HVPP.bin")
print("Assembling devkit SpoofyTest.S...")
assemble_devkit_patch("Patches/SpoofyTest.S", "Output/Compiled/SpoofyTest_dev.bin")
print("Assembling retail SpoofyTest.S...")
assemble_retail_patch("Patches/SpoofyTest.S", "Output/Compiled/SpoofyTest_retail.bin")
# generic
# spoofy
print("Creating generic SpoofyTest...")
sign_exp("Output/Compiled/SpoofyTest_dev.bin", "Output/Compiled/Generic/SpoofyTest_signed.bin", exp_id=DEFAULT_EXP_ID)
lang_format("Output/Compiled/Generic/SpoofyTest_signed.bin", "Output/Compiled/Generic/SpoofyTest.h", Language.CPLUSPLUS, "ExpansionData")
# devkit
print("Creating generic devkit HVPP...")
sign_exp("Output/Compiled/HVPP.bin", "Output/Compiled/Generic/HVPP_dev_signed.bin", exp_id=DEFAULT_EXP_ID)
lang_format("Output/Compiled/Generic/HVPP_dev_signed.bin", "Output/Compiled/Generic/HVPP_dev.h", Language.CPLUSPLUS, "ExpansionData")
# test kit
print("Creating generic test kit HVPP...")
sign_exp("Output/Compiled/HVPP.bin", "Output/Compiled/Generic/HVPP_test_signed.bin", exp_magic=ExpansionMagic.SIGM, exp_id=DEFAULT_EXP_ID)
lang_format("Output/Compiled/Generic/HVPP_test_signed.bin", "Output/Compiled/Generic/HVPP_test.h", Language.CPLUSPLUS, "ExpansionData")
# retail
print("Creating generic retail HVPP...")
sign_exp("Output/Compiled/HVPP.bin", "Output/Compiled/Generic/HVPP_retail_signed.bin", encrypt=False, exp_id=DEFAULT_EXP_ID)
lang_format("Output/Compiled/Generic/HVPP_retail_signed.bin", "Output/Compiled/Generic/HVPP_retail.h", Language.CPLUSPLUS, "ExpansionData")
# xbOnline
# spoofy
print("Creating xbOnline SpoofyTest...")
sign_exp("Output/Compiled/SpoofyTest_dev.bin", "Output/Compiled/xbOnline/SpoofyTest_signed.bin", exp_id=XBONLINE_EXP_ID)
lang_format("Output/Compiled/xbOnline/SpoofyTest_signed.bin", "Output/Compiled/xbOnline/SpoofyTest.h", Language.CPLUSPLUS, "ExpansionData")
# devkit
print("Creating xbOnline devkit HVPP...")
sign_exp("Output/Compiled/HVPP.bin", "Output/Compiled/xbOnline/HVPP_dev_signed.bin", exp_id=XBONLINE_EXP_ID)
lang_format("Output/Compiled/xbOnline/HVPP_dev_signed.bin", "Output/Compiled/xbOnline/HVPP_dev.h", Language.CPLUSPLUS, "ExpansionData")
# test kit
print("Creating xbOnline test kit HVPP...")
sign_exp("Output/Compiled/HVPP.bin", "Output/Compiled/xbOnline/HVPP_test_signed.bin", exp_magic=ExpansionMagic.SIGM, exp_id=XBONLINE_EXP_ID)
lang_format("Output/Compiled/xbOnline/HVPP_test_signed.bin", "Output/Compiled/xbOnline/HVPP_test.h", Language.CPLUSPLUS, "ExpansionData")
# retail
print("Creating xbOnline retail HVPP...")
sign_exp("Output/Compiled/HVPP.bin", "Output/Compiled/xbOnline/HVPP_retail_signed.bin", encrypt=False, exp_id=XBONLINE_EXP_ID)
lang_format("Output/Compiled/xbOnline/HVPP_retail_signed.bin", "Output/Compiled/xbOnline/HVPP_retail.h", Language.CPLUSPLUS, "ExpansionData")
print("Done!")
return 0
if __name__ == "__main__":
exit(main())