From 9595f23027da4034ef6082f90e4861846c25d718 Mon Sep 17 00:00:00 2001 From: lantus360 Date: Sun, 19 Aug 2018 21:26:24 -0500 Subject: [PATCH] fixed rombrowser --- src/CustomUI.h | 20 +++++++++++++------- src/nx/nx_maintest.cpp | 3 +-- src/nx/nx_romlist.cpp | 12 ++---------- 3 files changed, 16 insertions(+), 19 deletions(-) diff --git a/src/CustomUI.h b/src/CustomUI.h index 5c2ad7b..c741189 100644 --- a/src/CustomUI.h +++ b/src/CustomUI.h @@ -51,6 +51,8 @@ int db = 0; namespace UI { + std::string currentGame; + int selRed,selGreen,selBlue,selAlpha; int optRed,optGreen,optBlue,optAlpha; @@ -145,7 +147,7 @@ namespace UI } void Draw() - { + { char currentName[120]; int iTempGameSel; int iGameidx; @@ -209,17 +211,19 @@ namespace UI iTempGameSel = iGameSelect; if (iNumGames == 0) - DrawText(fntLarge, 320, 202, txtcolor, "No Roms Found"); + DrawText(fntLarge, fx, 202, txtcolor, "No Roms Found"); for (iGameidx=0; iGameidx m_vecAvailRomList; std::vector m_ListData; -std::map mapType; std::map mapRoms; @@ -118,20 +117,13 @@ int CRomList::RefreshRomList() } InitRomList(); - - mapType.clear(); - - + for( totalMAMEGames = 0; drivers[totalMAMEGames]; ++totalMAMEGames) { char fullname[60]; sprintf(fullname,"%s.zip",drivers[totalMAMEGames]->name); - vecAvailRomListFileName.push_back(fullname); - //vecAvailRomList.push_back(drivers[totalMAMEGames]->name); - //vecAvailRomIndex.push_back(totalMAMEGames); - - //mapType[drivers[totalMAMEGames]->name] = totalMAMEGames; + vecAvailRomListFileName.push_back(fullname); mapRoms[drivers[totalMAMEGames]->description] = totalMAMEGames; }