SNIClient: patch and launch SoE
This commit is contained in:
parent
2dc8b77ddc
commit
71f30b72f4
11
SNIClient.py
11
SNIClient.py
|
@ -1,5 +1,6 @@
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
|
import sys
|
||||||
import threading
|
import threading
|
||||||
import time
|
import time
|
||||||
import multiprocessing
|
import multiprocessing
|
||||||
|
@ -1080,6 +1081,14 @@ async def main():
|
||||||
meta, romfile = Patch.create_rom_file(args.diff_file)
|
meta, romfile = Patch.create_rom_file(args.diff_file)
|
||||||
args.connect = meta["server"]
|
args.connect = meta["server"]
|
||||||
logging.info(f"Wrote rom file to {romfile}")
|
logging.info(f"Wrote rom file to {romfile}")
|
||||||
|
if args.diff_file.endswith(".apsoe"):
|
||||||
|
import webbrowser
|
||||||
|
webbrowser.open("http://www.evermizer.com/apclient/")
|
||||||
|
logging.info("Starting Evermizer Client in your Browser...")
|
||||||
|
import time
|
||||||
|
time.sleep(3)
|
||||||
|
sys.exit()
|
||||||
|
elif args.diff_file.endswith((".apbp", "apz3")):
|
||||||
adjustedromfile, adjusted = Utils.get_adjuster_settings(romfile, gui_enabled)
|
adjustedromfile, adjusted = Utils.get_adjuster_settings(romfile, gui_enabled)
|
||||||
if adjusted:
|
if adjusted:
|
||||||
try:
|
try:
|
||||||
|
@ -1088,6 +1097,8 @@ async def main():
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logging.exception(e)
|
logging.exception(e)
|
||||||
asyncio.create_task(run_game(adjustedromfile if adjusted else romfile))
|
asyncio.create_task(run_game(adjustedromfile if adjusted else romfile))
|
||||||
|
else:
|
||||||
|
asyncio.create_task(run_game(romfile))
|
||||||
|
|
||||||
ctx = Context(args.snes, args.connect, args.password)
|
ctx = Context(args.snes, args.connect, args.password)
|
||||||
if ctx.server_task is None:
|
if ctx.server_task is None:
|
||||||
|
|
Loading…
Reference in New Issue