UIQ3 update, some makefile unification, rm old configs, stuff
[picodrive.git] / platform / gp2x / menu.c
index 1dc829a..b7bd3f1 100644 (file)
@@ -901,7 +901,7 @@ menu_entry cdopt_entries[] =
        { NULL,                        MB_NONE,  MA_CDOPT_TESTBIOS_EUR, NULL, 0, 0, 0, 1, 0 },\r
        { NULL,                        MB_NONE,  MA_CDOPT_TESTBIOS_JAP, NULL, 0, 0, 0, 1, 0 },\r
        { "CD LEDs",                   MB_ONOFF, MA_CDOPT_LEDS,         &currentConfig.EmuOpt, 0x0400, 0, 0, 1, 1 },\r
-       { "CDDA audio (using mp3s)",   MB_ONOFF, MA_CDOPT_CDDA,         &PicoOpt, 0x0800, 0, 0, 1, 1 },\r
+       { "CDDA audio",                MB_ONOFF, MA_CDOPT_CDDA,         &PicoOpt, 0x0800, 0, 0, 1, 1 },\r
        { "PCM audio",                 MB_ONOFF, MA_CDOPT_PCM,          &PicoOpt, 0x0400, 0, 0, 1, 1 },\r
        { NULL,                        MB_NONE,  MA_CDOPT_READAHEAD,    NULL, 0, 0, 0, 1, 1 },\r
        { "SaveRAM cart",              MB_ONOFF, MA_CDOPT_SAVERAM,      &PicoOpt, 0x8000, 0, 0, 1, 1 },\r
@@ -1551,10 +1551,10 @@ static void menu_loop_root(void)
                                {\r
                                        char curr_path[PATH_MAX], *selfname;\r
                                        FILE *tstf;\r
-                                       if ( (tstf = fopen(lastRomFile, "rb")) )\r
+                                       if ( (tstf = fopen(loadedRomFName, "rb")) )\r
                                        {\r
                                                fclose(tstf);\r
-                                               strcpy(curr_path, lastRomFile);\r
+                                               strcpy(curr_path, loadedRomFName);\r
                                        }\r
                                        else\r
                                                getcwd(curr_path, PATH_MAX);\r
@@ -1694,10 +1694,10 @@ int menu_loop_tray(void)
        gp2x_memset_all_buffers(0, 0, 320*240*2);\r
        menu_gfx_prepare();\r
 \r
-       if ( (tstf = fopen(lastRomFile, "rb")) )\r
+       if ( (tstf = fopen(loadedRomFName, "rb")) )\r
        {\r
                fclose(tstf);\r
-               strcpy(curr_path, lastRomFile);\r
+               strcpy(curr_path, loadedRomFName);\r
        }\r
        else\r
        {\r
@@ -1721,7 +1721,7 @@ int menu_loop_tray(void)
                                        if (selfname) {\r
                                                int ret = -1;\r
                                                cd_img_type cd_type;\r
-                                               cd_type = emu_cdCheck(NULL);\r
+                                               cd_type = emu_cdCheck(NULL, romFileName);\r
                                                if (cd_type != CIT_NOT_CD)\r
                                                        ret = Insert_CD(romFileName, cd_type);\r
                                                if (ret != 0) {\r