mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
LttP: Move over to SNI
This commit is contained in:
26
setup.py
26
setup.py
@@ -113,7 +113,7 @@ def installfile(path, keep_content=False):
|
||||
print('Warning,', path, 'not found')
|
||||
|
||||
|
||||
extra_data = ["LICENSE", "data", "EnemizerCLI", "host.yaml", "QUsb2Snes", "meta.yaml"]
|
||||
extra_data = ["LICENSE", "data", "EnemizerCLI", "host.yaml", "SNI", "meta.yaml"]
|
||||
|
||||
for data in extra_data:
|
||||
installfile(Path(data))
|
||||
@@ -131,30 +131,16 @@ else:
|
||||
file = z3pr.__file__
|
||||
installfile(Path(os.path.dirname(file)) / "data", keep_content=True)
|
||||
|
||||
qusb2sneslog = buildfolder / "QUsb2Snes" / "log.txt"
|
||||
if os.path.exists(qusb2sneslog):
|
||||
os.remove(qusb2sneslog)
|
||||
|
||||
qusb2snesconfig = buildfolder / "QUsb2Snes" / "config.ini"
|
||||
# turns on all bridges, disables auto update
|
||||
with open(qusb2snesconfig, "w") as f:
|
||||
f.write("""[General]
|
||||
SendToSet=true
|
||||
checkUpdateCounter=20
|
||||
luabridge=true
|
||||
LuaBridgeRNGSeed=79120361805329566567327599
|
||||
FirstTime=true
|
||||
sd2snessupport=true
|
||||
retroarchdevice=true
|
||||
snesclassic=true""")
|
||||
|
||||
SNIlog = buildfolder / "SNI" / "log.txt"
|
||||
if os.path.exists(SNIlog):
|
||||
os.remove(SNIlog)
|
||||
|
||||
if signtool:
|
||||
for exe in exes:
|
||||
print(f"Signing {exe.target_name}")
|
||||
os.system(signtool + os.path.join(buildfolder, exe.target_name))
|
||||
print(f"Signing QUsb2Snes")
|
||||
os.system(signtool + os.path.join(buildfolder, "Qusb2Snes", "QUsb2Snes.exe"))
|
||||
print(f"Signing SNI")
|
||||
os.system(signtool + os.path.join(buildfolder, "SNI", "SNI.exe"))
|
||||
|
||||
alttpr_sprites_folder = buildfolder / "data" / "sprites" / "alttpr"
|
||||
for file in os.listdir(alttpr_sprites_folder):
|
||||
|
||||
Reference in New Issue
Block a user