From fbdac811fc7694ca936607590cb19fd930528f5e Mon Sep 17 00:00:00 2001 From: pancake Date: Sat, 20 Oct 2007 02:32:24 +0200 Subject: * Make the fiasco writing api work (some hardcoded things, but mostly ok) * Move documentation of fiasco format to doc/ * 0.3 release --- src/fpid.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/fpid.c') diff --git a/src/fpid.c b/src/fpid.c index cdf3239..9220570 100644 --- a/src/fpid.c +++ b/src/fpid.c @@ -20,7 +20,7 @@ #include #include -char *fpid_file(char *filename) +const char *fpid_file(const char *filename) { FILE *fd; char buf[512]; @@ -45,11 +45,9 @@ char *fpid_file(char *filename) size = ftell(fd); fclose(fd); -#if 0 if (!memcmp(b+0x34, "2NDAPE", 6)) - return PIECE_2ND; + return pieces[PIECE_2ND]; else -#endif if (!memcmp(b+0x04, "NOLOScnd", 8)) return pieces[PIECE_SECONDARY]; else -- cgit v1.2.3