Skip to content

Commit

Permalink
pfbneo: fix driver lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
Cpasjuste committed Oct 3, 2023
1 parent 862b91c commit 35de406
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion external/sscrap
Submodule sscrap updated 1 files
+1 −0 source/ss_gamelist.cpp
2 changes: 2 additions & 0 deletions src/cores/pfbneo/sources/pfbneo_ui_emu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ int PFBAUiEmu::load(const ss_api::Game &game) {
PFBNEOUtility::setDriverActive(game);
if (nBurnDrvActive >= nBurnDrvCount) {
printf("PFBAUiEmu::load: driver not found\n");
pMain->getUiProgressBox()->setVisibility(Visibility::Hidden);
pMain->getUiMessageBox()->show("ERROR", "THIS GAME IS NOT SUPPORTED BY FBNEO...", "OK");
return -1;
}

Expand Down
3 changes: 2 additions & 1 deletion src/cores/pfbneo/sources/pfbneo_utility.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@ int PFBNEOUtility::setDriverActive(const Game &game) {
zipName = "ngp_" + zipName;
}

for (unsigned int i = 0; i < nBurnDrvCount; i++) {
for (unsigned int i = 0; i < nBurnDrvCount + 1; i++) {
nBurnDrvActive = i;
if (nBurnDrvActive >= nBurnDrvCount) break;
if (zipName == BurnDrvGetTextA(DRV_NAME)) {
break;
}
Expand Down

0 comments on commit 35de406

Please sign in to comment.