PlugIn Development:GameEx Event Emulator Load Function

From Spesoft/GameEx Wiki
Jump to navigation Jump to search

This substructure is called when an emulator is selected from the GameEx UI.

Parameters

EmuName [String]: This parameter passes the name of the emulator: Either MAME, DAPHNE, STEAM, ARCADE, or the Emulator Name property as specified in the emulator's configuration.

Returns

This function returns a boolean value.

Return Values

Return true and GameEx will process the Emulator Load event.
Return false and GameEx will not process the Emulator Load event.

Code Examples

VB.NET

Public Function Event_EmulatorLoad(ByVal EmuName As String) As Boolean
     'Run your code here!
     Return True
End Function

C#

public bool Event_EmulatorLoad(string EmuName)
{
     //Run your code here!
     return true;
}