How to make a NEO2 Plugin
How to make a Plug-In patch for MD of NEO2 Ultra Menu Application
This note will explain in detail how to make plug-in for the MD of NEO2 Ultra Menu. First, we know that the plug-in is a DLL type use by Neo2Client.exe. When the app launch up, it will enumerate all of the plug-in dll located in the special folder” C:\NEO2 Ultra Menu\ Plug_In\MD”. Then, when MD game rom adds, the app will the all these plug-in dll in order, passing the rom file path as a parameters. So the Third-party plug-in providers can do any pretreatment befor the rom add to MD cartridge.
The following shows how to make a plug-in DLL in VC6:
1. first, setup a dll project:
2. Use the default option, this is a dll support MFC.
3. Derivative a sub-class from CPlugBase, CPlugBase declare in “PlugBase.h”, then you can add your patch work inside the function of Patching(), which will be call by the main app.
class CMyPlug : public CPlugBase
{
public:
CMyPlug(){
};
virtual ~CMyPlug(){
};
public:
void Patching(LPCTSTR szRomPath){
char c[256];
wsprintf (c, "This ROM path is %s", szRomPath);
MessageBox(NULL, c, "Plug Message", MB_OK|MB_ICONINFORMATION);
}
void Release(){
delete this;
}
private:
};
4. Add a export function as:
BOOL WINAPI Plug_CreateObject(void ** pobj){
*pobj = new CMyPlug;
return *pobj != NULL;
}
5. OK, there's only so much. Copy the dll to the destination after compile finish, then try you great job! More details can look at the demo source.