In special cases, allow ROM_SO to become LAUNCHER-like functionality in Emulator

This commit is contained in:
cuu 2019-06-21 18:49:59 +08:00
parent 68d3ec052c
commit a9a179fe47
2 changed files with 2 additions and 2 deletions

View File

@ -342,7 +342,7 @@ class FavListPage(Page):
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"]):
if FileExists(self._Emulator["ROM_SO"].split(" ")[0]):
pygame.event.post( pygame.event.Event(RUNEVT, message=cmdpath))
else:
self._Screen.PushPage(self._RomSoConfirmDownloadPage)

View File

@ -384,7 +384,7 @@ class RomListPage(Page):
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"]):
if FileExists(self._Emulator["ROM_SO"].split(" ")[0]):
pygame.event.post( pygame.event.Event(RUNEVT, message=cmdpath))
else:
self._Screen.PushPage(self._RomSoConfirmDownloadPage)