can some help me out here please, i been trying to add a code for getting a image to show, i cant seem to find the right code, or i cant seem to place it, heck i the truth is i dont know what im doing.
basicly i want the game console to show when selecting a game, this is for the sega genesis.
this code brings up this image with a list heres a preview.
Code: Select all
import xbmc
import xbmcgui
import os
emu = "E:\\Emulators\\Genesis\\default.xbe"
emu = "E:\\Emulators\\Genesis\\gensx_mk.xbe"
dir = "E:\\Roms\\Sega Genesis\\"
def savecut(name):
f = open("z:\\emu.cut","w")
d = "<shortcut><path>%s</path><custom><game>%s</game></custom></shortcut>" % (emu,name)
f.write(d)
f.close()
def checkdir(tdir):
dl = os.listdir(tdir)
ret = xbmcgui.Dialog().select("choose",dl)
if os.path.isdir(tdir+dl[ret]):
checkdir(tdir+dl[ret])
else:
savecut(tdir+dl[ret])
xbmc.executebuiltin('xbmc.runxbe(z:\\emu.cut)')
checkdir(dir)
if someone can help with .py experience
thanks guys