Surreal64 XXX B5 - Command Line Patch v1.0

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

Authors:
Ez0n3
NATEDOGG
Xport

The patch comes in two versions.

Version 1 will allow you to choose which emulator and video plugin you wish to use before the game launches.
======================================================================================================

Version 2 will launch directly into the game without any prompts. 
======================================================================================================
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 should be zipped (1 rom per zip).
Zipped roms should be the same name as the zip 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".

Enjoy!