2 #include "../plugins/dfsound/spu_config.h"
5 /* It's duplicated from emu_if.c */
6 #define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0]))
8 static const char MemorycardHack_db[8][10] =
10 /* Lifeforce Tenka, also known as Codename Tenka */
20 /* Function for automatic patching according to GameID. */
21 void Apply_Hacks_Cdrom()
25 /* Apply Memory card hack for Codename Tenka. (The game needs one of the memory card slots to be empty) */
26 for(i=0;i<ARRAY_SIZE(MemorycardHack_db);i++)
28 if (strncmp(CdromId, MemorycardHack_db[i], 9) == 0)
30 /* Disable the second memory card slot for the game */
32 /* This also needs to be done because in sio.c, they don't use Config.Mcd2 for that purpose */