mirror of
https://github.com/clockworkpi/launcher.git
synced 2025-12-13 10:18:51 +01:00
Emulator skip ROM_SO checks if no needs for rom so
This commit is contained in:
parent
be6f539f8e
commit
83a7547a0a
@ -318,25 +318,28 @@ class FavListPage(Page):
|
|||||||
|
|
||||||
print("Run ",path)
|
print("Run ",path)
|
||||||
|
|
||||||
# check ROM_SO exists
|
if self._Emulator["FILETYPE"] == "dir":
|
||||||
if FileExists(self._Emulator["ROM_SO"]):
|
escaped_path = CmdClean(path)
|
||||||
escaped_path = CmdClean( path)
|
|
||||||
|
|
||||||
custom_config = ""
|
|
||||||
if self._Emulator["RETRO_CONFIG"] != "" and len(self._Emulator["RETRO_CONFIG"]) > 5:
|
|
||||||
custom_config = " -c " + self._Emulator["RETRO_CONFIG"]
|
|
||||||
|
|
||||||
cmdpath = " ".join( (self._Emulator["LAUNCHER"],self._Emulator["ROM_SO"], custom_config, escaped_path))
|
|
||||||
|
|
||||||
pygame.event.post( pygame.event.Event(RUNEVT, message=cmdpath))
|
|
||||||
return
|
|
||||||
else:
|
else:
|
||||||
|
escaped_path = CmdClean(path)
|
||||||
|
|
||||||
self._Screen.PushPage(self._RomSoConfirmDownloadPage)
|
custom_config = ""
|
||||||
self._Screen.Draw()
|
if self._Emulator["RETRO_CONFIG"] != "" and len(self._Emulator["RETRO_CONFIG"]) > 5:
|
||||||
self._Screen.SwapAndShow()
|
custom_config = " -c " + self._Emulator["RETRO_CONFIG"]
|
||||||
|
|
||||||
|
cmdpath = " ".join( (self._Emulator["LAUNCHER"],self._Emulator["ROM_SO"], custom_config, escaped_path))
|
||||||
|
|
||||||
|
if self._Emulator["ROM_SO"] =="": #empty means No needs for rom so
|
||||||
|
pygame.event.post( pygame.event.Event(RUNEVT, message=cmdpath))
|
||||||
|
else:
|
||||||
|
if FileExists(self._Emulator["ROM_SO"]):
|
||||||
|
pygame.event.post( pygame.event.Event(RUNEVT, message=cmdpath))
|
||||||
|
else:
|
||||||
|
self._Screen.PushPage(self._RomSoConfirmDownloadPage)
|
||||||
|
self._Screen.Draw()
|
||||||
|
self._Screen.SwapAndShow()
|
||||||
|
return
|
||||||
|
|
||||||
return
|
|
||||||
|
|
||||||
self._Screen.Draw()
|
self._Screen.Draw()
|
||||||
self._Screen.SwapAndShow()
|
self._Screen.SwapAndShow()
|
||||||
|
|||||||
@ -357,27 +357,29 @@ class RomListPage(Page):
|
|||||||
path = cur_li._Path
|
path = cur_li._Path
|
||||||
|
|
||||||
print("Run ",path)
|
print("Run ",path)
|
||||||
|
|
||||||
# check ROM_SO exists
|
if self._Emulator["FILETYPE"] == "dir":
|
||||||
if FileExists(self._Emulator["ROM_SO"]):
|
escaped_path = CmdClean(path)
|
||||||
if self._Emulator["FILETYPE"] == "dir":
|
|
||||||
escaped_path = CmdClean(path)
|
|
||||||
else:
|
|
||||||
escaped_path = CmdClean(path)
|
|
||||||
|
|
||||||
custom_config = ""
|
|
||||||
if self._Emulator["RETRO_CONFIG"] != "" and len(self._Emulator["RETRO_CONFIG"]) > 5:
|
|
||||||
custom_config = " -c " + self._Emulator["RETRO_CONFIG"]
|
|
||||||
|
|
||||||
cmdpath = " ".join( (self._Emulator["LAUNCHER"],self._Emulator["ROM_SO"], custom_config, escaped_path))
|
|
||||||
pygame.event.post( pygame.event.Event(RUNEVT, message=cmdpath))
|
|
||||||
return
|
|
||||||
else:
|
else:
|
||||||
|
escaped_path = CmdClean(path)
|
||||||
|
|
||||||
self._Screen.PushPage(self._RomSoConfirmDownloadPage)
|
custom_config = ""
|
||||||
self._Screen.Draw()
|
if self._Emulator["RETRO_CONFIG"] != "" and len(self._Emulator["RETRO_CONFIG"]) > 5:
|
||||||
self._Screen.SwapAndShow()
|
custom_config = " -c " + self._Emulator["RETRO_CONFIG"]
|
||||||
|
|
||||||
|
cmdpath = " ".join( (self._Emulator["LAUNCHER"],self._Emulator["ROM_SO"], custom_config, escaped_path))
|
||||||
|
|
||||||
|
if self._Emulator["ROM_SO"] =="": #empty means No needs for rom so
|
||||||
|
pygame.event.post( pygame.event.Event(RUNEVT, message=cmdpath))
|
||||||
|
else:
|
||||||
|
if FileExists(self._Emulator["ROM_SO"]):
|
||||||
|
pygame.event.post( pygame.event.Event(RUNEVT, message=cmdpath))
|
||||||
|
else:
|
||||||
|
self._Screen.PushPage(self._RomSoConfirmDownloadPage)
|
||||||
|
self._Screen.Draw()
|
||||||
|
self._Screen.SwapAndShow()
|
||||||
|
return
|
||||||
|
|
||||||
self._Screen.Draw()
|
self._Screen.Draw()
|
||||||
self._Screen.SwapAndShow()
|
self._Screen.SwapAndShow()
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user