X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=memory.c;h=c0d4f11f1891fda63a117a5b0fb42e8b18756870;hb=ee0a3871f9982215361cd6bb4758eb9a7c7d8413;hp=e902af3a71be8006454f0a2944018bb188d710e3;hpb=2823a4c8196a02da86ee180cf55586d4e8c91a2f;p=gpsp.git diff --git a/memory.c b/memory.c index e902af3..c0d4f11 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 @@ -3113,9 +3115,7 @@ void bios_region_read_allow() void bios_region_read_protect() { -#ifdef GP2X_BUILD memory_map_read[0] = NULL; -#endif }