Fix a bug (in revision 426) which made "Mode 3 - Unhook Syscalls" un-effectivei ...
[open-ps2-loader.git] / include / supportbase.h
blob470f20de541598780239ab2c7f28a11f72ee963f
1 #ifndef __SUPPORT_BASE_H
2 #define __SUPPORT_BASE_H
4 #define UL_GAME_NAME_MAX 32
5 #define ISO_GAME_NAME_MAX 64
6 #define GAME_STARTUP_MAX 12
8 typedef struct
10 char name[ISO_GAME_NAME_MAX + 1]; // MUST be the higher value from UL / ISO
11 char startup[GAME_STARTUP_MAX + 1];
12 char extension[5];
13 unsigned char parts;
14 unsigned char media;
15 unsigned short isISO;
16 int sizeMB;
17 } base_game_info_t;
19 int sbIsSameSize(const char* prefix, int prevSize);
20 void sbReadList(base_game_info_t **list, const char* prefix, int *fsize, int* gamecount);
21 int sbPrepare(base_game_info_t* game, config_set_t* configSet, int size_cdvdman, void** cdvdman_irx, int* patchindex);
22 void sbDelete(base_game_info_t **list, const char* prefix, const char* sep, int gamecount, int id);
23 void sbRename(base_game_info_t **list, const char* prefix, const char* sep, int gamecount, int id, char* newname);
24 config_set_t* sbPopulateConfig(base_game_info_t* game, const char* prefix, const char* sep);
26 #endif