mirror of
https://github.com/clockworkpi/launcher.git
synced 2025-12-12 17:58:50 +01:00
fix fav display bug on dosbox
This commit is contained in:
parent
7ec97f3e12
commit
b98223b731
@ -125,11 +125,15 @@ class FavListPage(Page):
|
||||
if os.path.isdir(v) and self._Emulator["FILETYPE"] == "dir": ## like DOSBOX
|
||||
gameshell_bat = self._Emulator["EXT"][0]
|
||||
if FileExists(v+"/"+gameshell_bat):
|
||||
stats = os.stat(v)
|
||||
if stats.st_gid != self._Parent._FavGID: ## only favs
|
||||
continue
|
||||
|
||||
dirmap["gamedir"] = v.decode("utf8")
|
||||
ret.append(dirmap)
|
||||
if os.path.isfile(v) and self._Emulator["FILETYPE"] == "file":
|
||||
stats = os.stat(v)
|
||||
if stats.st_gid != self._Parent._FavGID:
|
||||
if stats.st_gid != self._Parent._FavGID: ## only favs
|
||||
continue
|
||||
bname = os.path.basename(v) ### filter extension
|
||||
if len(bname)> 1:
|
||||
|
||||
@ -140,7 +140,7 @@ class RomListPage(Page):
|
||||
ret.append(dirmap)
|
||||
if os.path.isfile(v) and self._Emulator["FILETYPE"] == "file":
|
||||
stats = os.stat(v)
|
||||
if stats.st_gid == self._Parent._FavGID:
|
||||
if stats.st_gid == self._Parent._FavGID: ##skip fav roms
|
||||
continue
|
||||
|
||||
bname = os.path.basename(v) ### filter extension
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user