If you have some comments or if you want more function please contact me at Replouf66@Hotmail.com
If you make a plugin for OfflineList please contact me, I will test it and
propose it on my web site.
Replouf66@Hotmail.com
typedef void (__stdcall FSetSize)(char **rom, long *size, long newSize); // this function is called to allocate memory to the rom.
rom is a Pointer to a char*, it will contain the rom.
size indicate the current size of the rom.
newSize indicate the new size to allocate for the PPChar.
In this function, you need to do that: *rom = (char *)realloc(*rom, newSize); *size = newSize;
typedef void (__stdcall FPGetRom)(char **rom, long *size, char *crc, long, FSetSize); // you can call this function to get rom.
rom : is a Pointer to a char*, it will contain the rom.
size : will indicate the size of rom.
crc : indicate the CRC32 of the rom wanted.
patch : indicate if the rom will be patched by the module. Use 0 for patch the rom, and for futher evolution use -1 if you don't want patch the rom.
resize : indicate the address of your procedure FSetSize.
typedef void (__stdcall FPLaunchEmulatorFile)(char *filename); // you can call this function to launch the emulator.
f : indicate the complete path of the rom (zipped or not). Ex: "C:\dir\rom.zip"
typedef void (__stdcall FPLaunchEmulatorCRC)(char *crc); // you can call this function to launch the emulator.
crc : indicate the crc of the rom you want play with the emulator.
typedef void (__stdcall FPAddRoms)(char *crc); // this function permit you to add roms by indicating the path of the roms.
roms is a char* who contains one or more roms (zipped or not). You need to concat all the path of all roms add finish the char* by \0\0.
Exemple:
- for one rom: roms := "C:\dir\foo.zip\0\0";
- for more than one rom: roms := "C:\dir\foo.zip\0D:\dir\foo2.gba\0 ... D:\dir\foox.gba\0\0";
SDK version "0.4" :
typedef struct s_game{
s_game *nextGame; // the next game selected.
char *crc; // indicate the crc of the rom file.
char *name; // indicate the name of the game.
char *named; // indicate the rom naming.
long num; // indicate the release number of the rom.
long size; // indicate the size of the rom.
location: Integer; // indicate the location of the rom.
0 : Europe
1 : USA
2 : Germany
3 : China
4 : Spain
5 : France
6 : Italy
7 : Japan
8 : Nederland
language: Integer; // indicate the Language(s) of the rom.
1 : French
2 : English
4 : Chinese
8 : Danish
16 : Dutch
32 : Finland
64 : German
128 : Italian
256 : Japanese
512 : Norwegian
1024 : Polish
2048 : Portuguese
4096 : Spanish
8192 : Swedish
16384 : English // if there are 2 english language in the game (like Harry potter), this one is the UK version
32768 : Portuguese // if there are 2 Portuguese language in the game (like Harry potter), this one is the BR version
Exemple of use:
- if ((game.language & 256) != 0){ the Danish language is in the game. }
char *save; // indicate the save type of the rom.
char *publisher; // this is the publisher of the game.
char *sourceRom; // this is the group who release the first dump available for the rom.
char *comment; // this is the comment available for this rom.
} s_game;
typedef struct {
FPGetRom *getRom; // call this function to receive a rom.
FPLaunchEmulatorFile *launchEmulatorFile; // call this function to launch the emulator on a spécified file.
FPLaunchEmulatorCRC *launchEmulatorCRC; // call this function to launch the emulator on the game who have the specified CRC.
FPAddRoms *addRoms; // with this function you can add roms to OfflineList.
} s_functions;
| Function Summary | |
| void | __stdcall closePlugin() This function is called when the plugin is deactivated. |
| char* | __stdcall getAuthor() This function returns the Author of the plugin. |
| char* | __stdcall getName() This function returns the name of the plugin. |
| char* | __stdcall getSDKVersion() This function returns the SDK version used by the plugin. *needed* |
| char* | __stdcall getSmallComment() This function returns a small comment to describe the plugin. |
| char* | __stdcall getVersion() This function returns the version of the plugin. |
| void | __stdcall initPlugin(s_functions
functions, char * dir) *needed* This function is called when the plugin is activated. |
| char* | __stdcall inMenu() This function returns the list of menu who sould be displayed in plugin menu. |
| char* | __stdcall inPopupMenu() This function returns the list of menu who sould be displayed in context menu in the list of game. |
| char* | __stdcall inPopupMenuHave() This function returns the list of menu who sould be displayed in context menu in the list of game (for having rom). |
| char* | __stdcall inPopupMenuMiss() This function returns the list of menu who sould be displayed in context menu in the list of game (for missing rom). |
| void | __stdcall onPopupMenuClick(long
act, s_game game) This function is called when the user click on the context menu of the list of game. |
| void | __stdcall onPopupMenuHaveClick(long
act, s_game game) This function is called when the user click on the context menu of the list of game (for having rom). |
| void | __stdcall onPopupMenuMissClick(long
act, s_game game) This function is called when the user click on the context menu of the list of game (for missing rom). |
| void | __stdcall onMenuClick(long
act) This function is called when the user click on the plugin menu. |
| void | __stdcall rename(long language) This function is called at startup of OfflineList and when the user change the selected language. |
| void | __stdcall setSize(char ** rom,
long * size, long newSize) This function is called by the application to allocate the good space to receive a rom. |
| Function Detail |
void __stdcall closePlugin()
char* __stdcall getAuthor()
char* __stdcall getName()
char* __stdcall getSDKVersion()
char* __stdcall getSmallComment()
char* __stdcall getVersion()
void __stdcall initPlugin(s_functions functions, char * dir)
char* __stdcall inMenu()
char* __stdcall inPopupMenu()
char* __stdcall inPopupMenuHave()
char* __stdcall inPopupMenuMiss()
__stdcall onPopupMenuClick(long act, s_game game)
__stdcall onPopupMenuHaveClick(long act, s_game game)
__stdcall onPopupMenuMissClick(long act, s_game game)
__stdcall onMenuClick(long act)
__stdcall rename(long language)
__stdcall setSize(char ** rom, long * size, long newSize)
void __stdcall setSize(char **rom, long *size, long newSize)
{
*rom = (char *)realloc(*rom, newSize);
*size = newSize;
}