mirror of
https://github.com/clockworkpi/launcher.git
synced 2025-12-13 18:28:50 +01:00
Emulator skip ROM_SO checks if no needs for rom so
This commit is contained in:
parent
be6f539f8e
commit
83a7547a0a
@ -318,8 +318,9 @@ 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)
|
||||||
|
else:
|
||||||
escaped_path = CmdClean(path)
|
escaped_path = CmdClean(path)
|
||||||
|
|
||||||
custom_config = ""
|
custom_config = ""
|
||||||
@ -328,16 +329,18 @@ class FavListPage(Page):
|
|||||||
|
|
||||||
cmdpath = " ".join( (self._Emulator["LAUNCHER"],self._Emulator["ROM_SO"], custom_config, escaped_path))
|
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))
|
pygame.event.post( pygame.event.Event(RUNEVT, message=cmdpath))
|
||||||
return
|
|
||||||
else:
|
else:
|
||||||
|
|
||||||
self._Screen.PushPage(self._RomSoConfirmDownloadPage)
|
self._Screen.PushPage(self._RomSoConfirmDownloadPage)
|
||||||
self._Screen.Draw()
|
self._Screen.Draw()
|
||||||
self._Screen.SwapAndShow()
|
self._Screen.SwapAndShow()
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
||||||
self._Screen.Draw()
|
self._Screen.Draw()
|
||||||
self._Screen.SwapAndShow()
|
self._Screen.SwapAndShow()
|
||||||
|
|
||||||
|
|||||||
@ -358,8 +358,6 @@ class RomListPage(Page):
|
|||||||
|
|
||||||
print("Run ",path)
|
print("Run ",path)
|
||||||
|
|
||||||
# check ROM_SO exists
|
|
||||||
if FileExists(self._Emulator["ROM_SO"]):
|
|
||||||
if self._Emulator["FILETYPE"] == "dir":
|
if self._Emulator["FILETYPE"] == "dir":
|
||||||
escaped_path = CmdClean(path)
|
escaped_path = CmdClean(path)
|
||||||
else:
|
else:
|
||||||
@ -370,13 +368,17 @@ class RomListPage(Page):
|
|||||||
custom_config = " -c " + self._Emulator["RETRO_CONFIG"]
|
custom_config = " -c " + self._Emulator["RETRO_CONFIG"]
|
||||||
|
|
||||||
cmdpath = " ".join( (self._Emulator["LAUNCHER"],self._Emulator["ROM_SO"], custom_config, escaped_path))
|
cmdpath = " ".join( (self._Emulator["LAUNCHER"],self._Emulator["ROM_SO"], custom_config, escaped_path))
|
||||||
pygame.event.post( pygame.event.Event(RUNEVT, message=cmdpath))
|
|
||||||
return
|
|
||||||
else:
|
|
||||||
|
|
||||||
|
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.PushPage(self._RomSoConfirmDownloadPage)
|
||||||
self._Screen.Draw()
|
self._Screen.Draw()
|
||||||
self._Screen.SwapAndShow()
|
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