diff options
author | pancake <pancake@dazo> | 2007-10-20 02:32:24 +0200 |
---|---|---|
committer | pancake <pancake@dazo> | 2007-10-20 02:32:24 +0200 |
commit | fbdac811fc7694ca936607590cb19fd930528f5e (patch) | |
tree | 3e192325f3e7a70fca31e235363a374b5c2192f0 /src/fpid.c | |
parent | d15412a788cacc7108bf94151896ded19b5f504d (diff) | |
download | 0xFFFF-fbdac811fc7694ca936607590cb19fd930528f5e.tar.bz2 |
* Make the fiasco writing api work (some hardcoded things, but mostly ok)
* Move documentation of fiasco format to doc/
* 0.3 release
Diffstat (limited to 'src/fpid.c')
-rw-r--r-- | src/fpid.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -20,7 +20,7 @@ #include <stdio.h> #include <string.h> -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 |