I would avoid using the lcd file method, although using Silvers program would save a lot of work. The reason is you don't really want file access going on while scrolling through a list if that's what your aiming for.
The .LCD files would not be used for scrolling through the list.
Really I am only catering for .lcd files for people who have already set up .LCD files (with mamewah) or like that method using silvers software better
Also, are you sure you have to read mame.xml? Wouldn't you be able to get the ROM parent sent from Mala to the plugin? All you should have to do is read controls.ini and store it in memory for fast access. If Mala can send the parent of the ROM you can do a quick search for it in controls.ini stored in memory.
MaLa does this and provides info to the Plug-in anyway so....... too easy. The plugin does not access the xml directly. Have a look at the attached code taken from the MaLa Plugin SDK and you will see what I mean
I think the main problem we will be facing is testing on hardware we don't own.
Your right. I ordered a serial backpack so I could test but right now I just have the output of my PC going to another PC with a serial sniffer.
I am very Happy with MaLa hardware (led and LCD) so I don't want to buy more stuff. This is just for others who want to use mala and already have serial stuff really.
You don't need to load the lcd file until you actually start the game.
The best way to use the .lcd files would be:
Load one for Mala start
Load One each time you change emulator
load when starting game
load one on Mala exit
I agree that would be the minimum the plugin would do...
But then.... if the LCD file is not there it will then use data via Mala (see attached code). Mala hardware does this and its
very fast.
It will also use data via mala for scrolling through the lists, as headkaze pointed out loading .LCD files that fast just aint going to happen.