PlugIn Development:GameEx MAME List Update Function
This function is called when GameEx updates the MAME list.
The variables for Update Type, MAME Rom Path, MAME EXE Path and MAME EXE are passed down to this sub procedure when the list update is starting and ending.
Code Examples
VB.NET
Enumeration
Public Enum MAME_Update Update_Start = 0 Update_End = 1 End Enum
Function
Public Sub Event_MAMEListUpdate(ByVal Type As Integer, ByVal MAMEROMPath As String, ByVal MAMEPath As String, ByVal MAMEExe As String) Select Case Type Case MAME_Update.Update_Start 'Run some code when the list update starts! Exit Select Case MAME_Update.Update_End 'Run some code when the list update finishes! Exit Select End Select End Sub
C#
Enumeration
public enum MAME_Update { Update_Start = 0, Update_End = 1, }
Function
public void Event_MAMEListUpdate(int Type, string MAMEROMPath, string MAMEPath, string MAMEExe) { switch(Type) { case MAME_Update.Update_Start: //Run some code when the list update starts! break; case MAME_Update.Update_End: //Run some code when the list update finishes! break; } }