ignore case for cwcheat
[pcsx_rearmed.git] / frontend / main.c
index 762d753..bd48898 100644 (file)
@@ -146,7 +146,6 @@ void emu_set_default_config(void)
        // try to set sane config on which most games work
        Config.Xa = Config.Cdda = Config.Sio =
        Config.SpuIrq = Config.RCntFix = Config.VSyncWA = 0;
-       Config.CdrReschedule = 0;
        Config.PsxAuto = 1;
 
        pl_rearmed_cbs.gpu_neon.allow_interlace = 2; // auto
@@ -262,7 +261,7 @@ do_state_slot:
                        g_opts |= OPT_SHOWFPS;
                break;
        case SACTION_TOGGLE_FULLSCREEN:
-               g_fullscreen = !g_fullscreen;
+               plat_target.vout_fullscreen = !plat_target.vout_fullscreen;
                if (GPU_open != NULL && GPU_close != NULL) {
                        GPU_close();
                        GPU_open(&gpuDisp, "PCSX", NULL);
@@ -312,12 +311,19 @@ do_state_slot:
        hud_new_msg = 3;
 }
 
+static char basic_lcase(char c)
+{
+       if ('A' <= c && c <= 'Z')
+               return c - 'A' + 'a';
+       return c;
+}
+
 static int cdidcmp(const char *id1, const char *id2)
 {
        while (*id1 != 0 && *id2 != 0) {
                if (*id1 == '_') { id1++; continue; }
                if (*id2 == '_') { id2++; continue; }
-               if (*id1 != *id2)
+               if (basic_lcase(*id1) != basic_lcase(*id2))
                        break;
                id1++;
                id2++;