thank you skatulskijean
you need to have the location of your default.xbe
and your rom location
make a text file and name copy and paste this inside
import xbmc
import xbmcgui
import os
import sys
emu = "E:\\Emulators\\NES\\default.xbe"
dir = "E:\\Emulators\\NES\\nesroms\\"
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)
now name it default.py
you can now place this file side /Q/plugins/programs
with confluence lite you can have it presented like a program short cut



NOTE:
im sorry but i cant seem to get it to work with surreal64 other emulators with other launchers
make sure your locations are correct if not this will not work