Merge pull request #287 from cuu/gcores

Gcores
This commit is contained in:
GNU 2019-08-22 16:31:55 +08:00 committed by GitHub
commit e59787d5cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 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

@ -73,8 +73,8 @@ class ListItem(object):
label_text = os.path.basename(text)
alias_file = os.path.splitext(text)[0] + ".alias"
if os.path.isfile(alias_file):
fp = open(alias_file, "r")
if os.path.isfile(alias_file.encode("utf8")):
fp = open(alias_file.encode("utf8"), "r")
alias = fp.read()
fp.close()
label_text = alias.decode("utf8")

View File

@ -385,7 +385,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)