2018-01-19, 23:09
(2018-01-19, 09:27)malte Wrote: Ok, it is more than one line but it should be possible for a non-coder. The source file to edit is "launcher.py". On Windows you will find it here: "C:\Users\<you username>\AppData\Roaming\Kodi\addons\script.games.rom.collection.browser.git\resources\lib". On other systems you just have to replace the part "C:\Users\<you username>\AppData\Roaming\Kodi\addons\" with the system specific location.Thanks! Doesnt seem difficult. Will try asap, but need to finish some mods to lcd .dll file to proper display this.
The code to edit should be around line 95.
Old code:
Code:try:
__launchNonXbox(cmd, romCollection, gameRow, settings, precmd, postcmd, roms, gui, listitem)
gui.writeMsg("")
except Exception, (exc):
New code:
Code:try:
pathname = util.getAddonDataPath()
filename = os.path.join(pathname, 'rcb_lcdsmartie.log')
fh = open(filename, 'w')
fh.write('%s - %s' %(romCollection.name, gameRow[util.ROW_NAME]))
fh.close()
__launchNonXbox(cmd, romCollection, gameRow, settings, precmd, postcmd, roms, gui, listitem)
fh = open(filename, 'w')
fh.write('Rom Collection Browser - Emuladores')
fh.close()
gui.writeMsg("")
except Exception, (exc):
Just replace the old code with the new code. Only thing to be aware of is the formatting of the code. Python is a bit picky about whitespaces and indentation. Make sure that the new code has the same indentation as the old code.
EDIT: I forgot to add: you will find the log file at "C:\Users\<you username>\AppData\Roaming\Kodi\userdata\addon_data\script.games.rom.collection.browser.git". Oh, and please post a foto of your LCD if everything is working
I ll report back!
Thanks again, love rcb
BTW, it´s ok to change:
filename = os.path.join(pathname, 'rcb_lcdsmartie.log')
for:
filename = os.path.join(pathname, 'rcb_lcdsmartie.txt')
?
Also, do you know if can be possible to write emulator name on first .txt line and game on a second line?
Something like:
SNES
Street Fighter II
Instead of SNES Street Fighter II
Since the 2x16 LCD has limited space, this will avoid a little the need for constant scrolling and could use the second line/row of the lcd.