1.10 release
[libpicofe.git] / gp2x / emu.c
index 49291ec..dcc8f6e 100644 (file)
@@ -187,11 +187,11 @@ static int cd_check(char *ext, char **bios_file)
        }\r
 \r
        /* it seems we have a CD image here. Try to detect region and load a suitable BIOS now.. */\r
-       fseek(cd_f, (type == 1) ? 0x100 : 0x110, SEEK_SET);\r
+       fseek(cd_f, (type == 1) ? 0x100+0x10B : 0x110+0x10B, SEEK_SET);\r
        fread(buf, 1, 1, cd_f);\r
        fclose(cd_f);\r
 \r
-       if (buf[0] == 0x64) region = 4; // EU\r
+       if (buf[0] == 0x64) region = 8; // EU\r
        if (buf[0] == 0xa1) region = 1; // JAP\r
 \r
        printf("detected %s Sega/Mega CD image with %s region\n",\r
@@ -452,9 +452,9 @@ int emu_ReadConfig(int game)
                // set default config\r
                memset(&currentConfig, 0, sizeof(currentConfig));\r
                currentConfig.lastRomFile[0] = 0;\r
-               currentConfig.EmuOpt  = 0x1f;\r
-               currentConfig.PicoOpt = 0x0f;\r
-               currentConfig.PsndRate = 22050;\r
+               currentConfig.EmuOpt  = 0x1f | 0xc00; // | cd_leds | cd_cdda\r
+               currentConfig.PicoOpt = 0x0f | 0x200; // | use_940\r
+               currentConfig.PsndRate = 44100;\r
                currentConfig.PicoRegion = 0; // auto\r
                currentConfig.Frameskip = -1; // auto\r
                currentConfig.CPUclock = 200;\r