summaryrefslogtreecommitdiff
path: root/memory.c
diff options
context:
space:
mode:
authornotaz2009-06-13 22:19:53 +0300
committernotaz2009-06-13 22:19:53 +0300
commit42c8119010bfc48776e8c82e42cceb06d07c0247 (patch)
treeb1b56c057b1b592076f7a38f48a71de65d5cc68e /memory.c
parent73d1a857f28a0fe7f6afaf3ca4c99fca5f50256c (diff)
downloadpicogpsp-42c8119010bfc48776e8c82e42cceb06d07c0247.tar.gz
picogpsp-42c8119010bfc48776e8c82e42cceb06d07c0247.tar.bz2
picogpsp-42c8119010bfc48776e8c82e42cceb06d07c0247.zip
u5 release
Diffstat (limited to 'memory.c')
-rw-r--r--memory.c6
1 files changed, 4 insertions, 2 deletions
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