X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=memory.c;h=9a08df0845ef148d7a7c411688276d3d766fe72d;hb=e8f5db5d5a80a62069354466c64a9b90a2ced47c;hp=e902af3a71be8006454f0a2944018bb188d710e3;hpb=2823a4c8196a02da86ee180cf55586d4e8c91a2f;p=gpsp.git diff --git a/memory.c b/memory.c index e902af3..9a08df0 100644 --- a/memory.c +++ b/memory.c @@ -19,8 +19,6 @@ #include "common.h" -u32 load_file_zip(u8 *filename); - // This table is configured for sequential access on system defaults u32 waitstate_cycles_sequential[16][3] = @@ -2158,10 +2156,14 @@ u32 load_gamepak(char *name) s32 file_size; u8 cheats_filename[256]; +#ifdef WIZ_BUILD + file_size = wiz_load_gamepak(name); +#else if(!strcmp(dot_position, ".zip")) file_size = load_file_zip(name); else file_size = load_gamepak_raw(name); +#endif // A dumb April fool's joke was here once :o