summaryrefslogtreecommitdiffstats
path: root/src/fpid.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fpid.c')
-rw-r--r--src/fpid.c6
1 files changed, 2 insertions, 4 deletions
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 <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