00001 #ifndef _PA_GBFS
00002 #define _PA_GBFS
00003
00004 #ifdef __cplusplus
00005 extern "C" {
00006 #endif
00007
00015 #include "PA_Text.h"
00016 #include "gbfs.h"
00017
00018 extern inline u8 PA_CompareText(char *text1, char *text2){
00019 u8 ok = 1;
00020 u8 i = 0;
00021 while(ok && text2[i]){
00022 if (text1[i] != text2[i]) ok = 0;
00023 i++;
00024 }
00025 return ok;
00026 }
00027
00028
00029 typedef struct{
00030 void *File;
00031 char Name[30];
00032 char Ext[6];
00033 u32 Length;
00034 } PA_GBFS_infos;
00035 extern PA_GBFS_infos PA_GBFSfile[200];
00036 extern s16 PA_GBFS_nfiles;
00037 extern GBFS_FILE const* PA_GBFS_FILE;
00038
00049 u32 PA_InitGBFS(void);
00050
00051
00052
00067 extern inline s32 PA_GetGBFSFile(s16 start, char *name, char *extension){
00068 s16 i;
00069
00070 for (i = start; i < PA_GBFS_nfiles; i++){
00071 if (PA_CompareText(PA_GBFSfile[i].Name, name)&& PA_CompareText(PA_GBFSfile[i].Ext, extension))
00072 return i;
00073 }
00074
00075 return -1;
00076 }
00077
00078
00090 s16 PA_GBFSSearchExt(s16 *array, char *extension);
00091
00092
00094
00095
00096 #ifdef __cplusplus
00097 }
00098 #endif
00099
00100 #endif
00101
00102