There is no need to touch or change the script. All changes are done via the batch file. Example Below. Along with explainations.
PS if your file names contain & then it will fail. I renamed my & to and
Usage -Needs Dynamic Menus by Nielm
1. Setup Batchfile. (if you do not have images you can just set images=c:\temp"
2. Run it will create a games.xml in c:\temp
3. Open up games.xml in notepad or wordpad. Select all and copy to clipboard.
4. Paste a new menu item in Sage. Viola you have a full list of games. Save menu file.
set menuname="Nintendo"
set rompath="c:\roms\Nintendo"
set emulatorexe="c:\nestopia\nestopia.exe"
set images="c:\roms\Nintendo"
rem ... make sure to end emulatorargs with trailing space
set emulatorargs=" "
rem ... make sure to start emulatorarg2s with space
set emulatorargs2=" "
set sleepsage=1
set disablefullscreen=1
set confirmprompt=1
CreateNes.bat
set menuname= > Menu Name
set rompath=" > path to your Roms
set emulatorexe > your emulator executable
set emulatorargs="" - Arguments before rom file
set emulatorargs2="" Arguments after rom file
0=No 1=yes
set sleepsage=0 > Sleeps Sage
set disablefullscreen=0 > windows Sage on load of game restores after game is closed
set confirmprompt=0 > Adds a confirmation when selecting a game yes or cancel
SageMC uses its own place to store Icons images etc... It is not themed to the default stv. In the SageTV default Dynamic menus you can tell it where to find the images SAGEMC doesn't seem to honor this. I have some new scripts. The only way to get the Images to show up in SageMC is to copy the images over to the SAGMC default menuicons folder