diff --git a/source/.vs/slnx.sqlite b/source/.vs/slnx.sqlite index e84974b..8e6c105 100644 Binary files a/source/.vs/slnx.sqlite and b/source/.vs/slnx.sqlite differ diff --git a/source/.vs/source/v16/Browse.VC.db b/source/.vs/source/v16/Browse.VC.db index 69a4dc5..d52d50c 100644 Binary files a/source/.vs/source/v16/Browse.VC.db and b/source/.vs/source/v16/Browse.VC.db differ diff --git a/source/fba_rl_render.cpp b/source/fba_rl_render.cpp index ca670ba..c5da1a3 100644 --- a/source/fba_rl_render.cpp +++ b/source/fba_rl_render.cpp @@ -394,42 +394,44 @@ void c_fbaRL::ResetPreviewImage() void c_fbaRL::UpdatePreviewImage() { - - if(nSection == SECTION_GAMELIST || nSection == SECTION_MAIN) { //printf("UpdatePreviewImage enter SECTION_GAMELIST %s\n", g_opt_szTextures[TEX_PREVIEW]); char szPreviewPath[512] = { 0 }; - if (strcmp(games[nBurnSelected]->sysmask, "MASKSNES") == 0) { + if (strcmp(games[nBurnSelected]-> sysmask, "MASKSNES") == 0) { sprintf(szPreviewPath, "/dev_hdd0/game/FBNE00123/USRDIR/cores/previews/SNES/%s.png",games[nBurnSelected]->name); } else + if (strcmp(games[nBurnSelected]->subsystem, "megacd") == 0) { + sprintf(szPreviewPath, "/dev_hdd0/game/FBNE00123/USRDIR/cores/previews/MEGACD/%s.png",games[nBurnSelected]->name); + } + else if (strcmp(games[nBurnSelected]->sysmask, "MASKMEGADRIVE") == 0) { - sprintf(szPreviewPath, "/dev_hdd0/game/FBNE00123/USRDIR/cores/previews/MEGADRIVE/%s.png",games[nBurnSelected]->name); + sprintf(szPreviewPath, "/dev_hdd0/game/FBNE00123/USRDIR/cores/previews/MEGADRIVE/%s.png", games[nBurnSelected]->name); } else if (strcmp(games[nBurnSelected]->sysmask, "MASKAMIGA") == 0) { - sprintf(szPreviewPath, "/dev_hdd0/game/FBNE00123/USRDIR/cores/previews/AMIGA/%s.png",games[nBurnSelected]->name); - } - else - if (strcmp(games[nBurnSelected]->sysmask, "MASKCOLECO") == 0) { - sprintf(szPreviewPath, "/dev_hdd0/game/FBNE00123/USRDIR/cores/previews/COLECO/%s.png", games[nBurnSelected]->name); - } - else - if (strcmp(games[nBurnSelected]->sysmask, "MASKTG16") == 0) { - sprintf(szPreviewPath, "/dev_hdd0/game/FBNE00123/USRDIR/cores/previews/TG16/%s.png", games[nBurnSelected]->name); - } - else - if (strcmp(games[nBurnSelected]->sysmask, "MASKPCE") == 0) { - sprintf(szPreviewPath, "/dev_hdd0/game/FBNE00123/USRDIR/cores/previews/PCE/%s.png", games[nBurnSelected]->name); - } - else - if (strcmp(games[nBurnSelected]->sysmask, "MASKSGX") == 0) { - sprintf(szPreviewPath, "/dev_hdd0/game/FBNE00123/USRDIR/cores/previews/SGX/%s.png", games[nBurnSelected]->name); - } - else - sprintf(szPreviewPath, "/dev_hdd0/game/FBNE00123/USRDIR/cores/previews/%s.png", games[nBurnSelected]->name); + sprintf(szPreviewPath, "/dev_hdd0/game/FBNE00123/USRDIR/cores/previews/AMIGA/%s.png",games[nBurnSelected]->name); + } + else + if (strcmp(games[nBurnSelected]->sysmask, "MASKCOLECO") == 0) { + sprintf(szPreviewPath, "/dev_hdd0/game/FBNE00123/USRDIR/cores/previews/COLECO/%s.png", games[nBurnSelected]->name); + } + else + if (strcmp(games[nBurnSelected]->sysmask, "MASKTG16") == 0) { + sprintf(szPreviewPath, "/dev_hdd0/game/FBNE00123/USRDIR/cores/previews/TG16/%s.png", games[nBurnSelected]->name); + } + else + if (strcmp(games[nBurnSelected]->sysmask, "MASKPCE") == 0) { + sprintf(szPreviewPath, "/dev_hdd0/game/FBNE00123/USRDIR/cores/previews/PCE/%s.png", games[nBurnSelected]->name); + } + else + if (strcmp(games[nBurnSelected]->sysmask, "MASKSGX") == 0) { + sprintf(szPreviewPath, "/dev_hdd0/game/FBNE00123/USRDIR/cores/previews/SGX/%s.png", games[nBurnSelected]->name); + } + else + sprintf(szPreviewPath, "/dev_hdd0/game/FBNE00123/USRDIR/cores/previews/%s.png", games[nBurnSelected]->name); //printf("szPreviewPath: %s\n", szPreviewPath); // try main romset name... if(fileExist(szPreviewPath)) { @@ -451,6 +453,10 @@ void c_fbaRL::UpdatePreviewImage() sprintf(szPreviewPath, "/dev_hdd0/game/FBNE00123/USRDIR/cores/previews/SNES/%s.png",games[nBurnSelected]->parent_name); } else + if (strcmp(games[nBurnSelected]->subsystem, "megacd") == 0) { + sprintf(szPreviewPath, "/dev_hdd0/game/FBNE00123/USRDIR/cores/previews/MEGACD/%s.png", games[nBurnSelected]->parent_name); + } + else if (strcmp(games[nBurnSelected]->sysmask, "MASKMEGADRIVE") == 0) { sprintf(szPreviewPath, "/dev_hdd0/game/FBNE00123/USRDIR/cores/previews/MEGADRIVE/%s.png",games[nBurnSelected]->parent_name); } @@ -497,6 +503,10 @@ void c_fbaRL::UpdatePreviewImage() sprintf(szPreviewPath, "/dev_hdd0/game/FBNE00123/USRDIR/cores/titles/SNES/%s.png",games[nBurnSelected]->name); } else + if (strcmp(games[nBurnSelected]->subsystem, "megacd") == 0) { + sprintf(szPreviewPath, "/dev_hdd0/game/FBNE00123/USRDIR/cores/titles/MEGACD/%s.png", games[nBurnSelected]->name); + } + else if (strcmp(games[nBurnSelected]->sysmask, "MASKMEGADRIVE") == 0) { sprintf(szPreviewPath, "/dev_hdd0/game/FBNE00123/USRDIR/cores/titles/MEGADRIVE/%s.png",games[nBurnSelected]->name); } @@ -542,6 +552,10 @@ void c_fbaRL::UpdatePreviewImage() sprintf(szPreviewPath, "/dev_hdd0/game/FBNE00123/USRDIR/cores/titles/SNES/%s.png",games[nBurnSelected]->parent_name); } else + if (strcmp(games[nBurnSelected]->subsystem, "megacd") == 0) { + sprintf(szPreviewPath, "/dev_hdd0/game/FBNE00123/USRDIR/cores/titles/MEGACD/%s.png", games[nBurnSelected]->parent_name); + } + else if (strcmp(games[nBurnSelected]->sysmask, "MASKMEGADRIVE") == 0) { sprintf(szPreviewPath, "/dev_hdd0/game/FBNE00123/USRDIR/cores/titles/MEGADRIVE/%s.png",games[nBurnSelected]->parent_name); }