drc: add a timing hack for Internal Section
[pcsx_rearmed.git] / libpcsxcore / database.c
index f383e36..ac19d57 100644 (file)
@@ -1,6 +1,6 @@
 #include "misc.h"
 #include "misc.h"
-#include "../plugins/dfsound/spu_config.h"
 #include "sio.h"
 #include "sio.h"
+#include "new_dynarec/new_dynarec.h"
 
 /* It's duplicated from emu_if.c */
 #define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0]))
 
 /* It's duplicated from emu_if.c */
 #define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0]))
@@ -33,4 +33,14 @@ void Apply_Hacks_Cdrom()
                        McdDisable[1] = 1;
                }
        }
                        McdDisable[1] = 1;
                }
        }
+
+       /* Dynarec game-specific hacks */
+       new_dynarec_hacks &= ~NDHACK_OVERRIDE_CYCLE_M;
+
+       /* Internal Section is fussy about timings */
+       if (strcmp(CdromId, "SLPS01868") == 0)
+       {
+               cycle_multiplier_override = 200;
+               new_dynarec_hacks |= NDHACK_OVERRIDE_CYCLE_M;
+       }
 }
 }