fixed the alternate device mode.
[open-ps2-loader.git] / include / supportbase.h
blob5ab2cbbb3384a0cd188da1ee4b575b993cb58bbf
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 unsigned char parts;
13 unsigned char media;
14 unsigned short isISO;
15 int sizeMB;
16 } base_game_info_t;
18 int sbIsSameSize(const char* prefix, int prevSize);
19 void sbReadList(base_game_info_t **list, const char* prefix, int *fsize, int* gamecount);
20 int sbPrepare(base_game_info_t* game, int mode, char* isoname, int size_cdvdman, void** cdvdman_irx, int* patchindex);
21 void sbDelete(base_game_info_t **list, const char* prefix, const char* sep, int gamecount, int id);
22 void sbRename(base_game_info_t **list, const char* prefix, const char* sep, int gamecount, int id, char* newname);
23 config_set_t* sbPopulateConfig(base_game_info_t* game, const char* prefix, const char* sep);
25 #endif