mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
make player_name logic a bit smarter in MultiMystery.py
This commit is contained in:
@@ -90,16 +90,15 @@ if __name__ == "__main__":
|
||||
|
||||
romfilename = ""
|
||||
if player_name:
|
||||
try:
|
||||
index = player_names.index(player_name)
|
||||
except IndexError:
|
||||
print(f"Could not find Player {player_name}")
|
||||
else:
|
||||
romfilename = os.path.join(output_path, f"ER_{seedname}_P{index+1}_{player_name}.sfc")
|
||||
import webbrowser
|
||||
if os.path.exists(romfilename):
|
||||
print(f"Launching ROM file {romfilename}")
|
||||
webbrowser.open(romfilename)
|
||||
for file in os.listdir(output_path):
|
||||
if player_name in file:
|
||||
romfilename = os.path.join(output_path, file)
|
||||
import webbrowser
|
||||
|
||||
if os.path.exists(romfilename):
|
||||
print(f"Launching ROM file {romfilename}")
|
||||
webbrowser.open(romfilename)
|
||||
break
|
||||
|
||||
if zip_roms:
|
||||
zipname = os.path.join(output_path, f"ER_{seedname}.zip")
|
||||
|
Reference in New Issue
Block a user