mirror of
https://github.com/libretro/libretro-dat-pull.git
synced 2024-11-26 18:10:31 +00:00
fixed empty rom database for systems
This commit is contained in:
parent
536682e9ac
commit
69089aea65
@ -11,7 +11,10 @@ if len(sys.argv)==2:
|
||||
print str(system) +" "+ systems[system]
|
||||
elif len(sys.argv)==3:
|
||||
|
||||
print "Fields you get:"
|
||||
game=vgdb.get_console_fg(sys.argv[2])
|
||||
if game==[]:
|
||||
print "No Roms listed for this system"
|
||||
quit()
|
||||
print "Fields you get:"
|
||||
for field in game:
|
||||
print field+" -> "+str(game[field])
|
||||
|
@ -78,6 +78,8 @@ class vgdb:
|
||||
|
||||
def get_console_fg(self,system):
|
||||
rom=self.cur.execute('SELECT * FROM ROMS where systemID='+str(system)).fetchone()
|
||||
|
||||
# games.append(self.get_gameinfo(rom['romID']))
|
||||
return dict(self.get_gameinfo(rom['romID']).items()+rom.items())
|
||||
if rom==None:
|
||||
return []
|
||||
else:
|
||||
return dict(self.get_gameinfo(rom['romID']).items()+rom.items())
|
||||
|
Loading…
Reference in New Issue
Block a user