summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/main.c b/main.c
index bc8a408..0f9bb88 100644
--- a/main.c
+++ b/main.c
@@ -280,13 +280,15 @@ void reset_gba(void)
reset_sound();
}
-u32 file_length(const char *dummy, FILE *fp)
+#ifdef PSP
+u32 file_length(const char *filename, s32 dummy)
{
-#ifdef PSP_BUILD
SceIoStat stats;
sceIoGetstat(filename, &stats);
return stats.st_size;
#else
+u32 file_length(const char *dummy, FILE *fp)
+{
u32 length;
fseek(fp, 0, SEEK_END);