Surreal64 XXX B5 - Command Line Patch v2.0

This replaces the default.xbe in Surreal64 XXX B5 with one that supports launching a ROM using a command line parameter.

Authors:
Xport
Ez0n3
NATEDOGG


It looks in the Surreal.ini file for a "Preferred Emulator". If it can't find it, it will launch using 1964 by default.
The video plugin prompt is bypassed also and has a default value of "2" for the Rice 560 plugin.
To override the default video plugin globally (not per rom), create a file named "default-plugin.cfg" in the same folder as the Surreal XBE's.
In it, place a single number (see legend - "Default Plugin") representing the video plugin you wish to use (putting a 3 in this file will force the Rice 611 plugin).

Legend:
Preferred Emulator:
0 = 1964
1 = Project64
2 = UltraHLE

Default Plugin:
0 = Rice 510
1 = Rice 531
2 = Rice 560
3 = Rice 611

======================================================================================================
Surreal64_XXX_B5 - CMD XBMC
======================================================================================================

This is an XBMC shortcut that launches a ROM...

<shortcut>
	<path>F:\Emulators\Surreal64\default.xbe</path>
	<label>Super Mario 64</label>
	<thumb>F:\Emulators\Surreal64\Media\boxart\A03CF036-635A2BFF-4EAA3D0E-D6FBA4A8.jpg</thumb>
	<custom>
		<game>Super Mario 64 (U) [!].zip</game>
	</custom>
</shortcut>

======================================================================================================
Surreal64_XXX_B5 - CMD EVOX
======================================================================================================

This is an Evox menu item that launches a ROM...

Item "Super Mario 64", "F:\Emulators\Surreal64\default.xbe", ID_CMD, "Super Mario 64 (U) [!].zip"

======================================================================================================

NOTES:
Roms don't need to be zipped. If you zip them, it should be 1 rom per zip.
Zipped roms should be the same name as the rom file, but with .zip extension.

It works by comparing the file name that was passed via cmd to file names in the rom list.
If there is a rom in the "Roms" dir named "Super Mario 64 (U) [!].zip", 
passing "Super Mario 64 (U) [!].zip" in the command line will automatically select that rom.
The rom inside the zip would be named "Super Mario 64 (U) [!].z64".

CHANGES:
- v2.0
- Combined XBMC and Evox code into a single launcher. (one file works with both dashboards)
- Launcher will work with or without including the path to the rom. (1.0 stalled if the path was included)
- If an incorrect or non existing rom name is passed, it returns to the rom list. (1.0 stalled if the rom was missing or the name was wrong)
- Dropped support for the version with prompts. (K.I.S.S.)

Enjoy!