Skip to content

Commit

Permalink
v2.13 update
Browse files Browse the repository at this point in the history
  • Loading branch information
crystalct committed Nov 20, 2020
1 parent 8fba7e6 commit d3b830c
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 24 deletions.
Binary file modified source/.vs/slnx.sqlite
Binary file not shown.
Binary file modified source/.vs/source/v16/Browse.VC.db
Binary file not shown.
62 changes: 38 additions & 24 deletions source/fba_rl_render.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand All @@ -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);
}
Expand Down Expand Up @@ -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);
}
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit d3b830c

Please sign in to comment.