Fixed Found/Skipped Message

This commit is contained in:
RadWolfie 2017-10-30 19:51:15 -05:00
parent 8228de52d0
commit df8b18ef23
1 changed files with 4 additions and 5 deletions

View File

@ -497,9 +497,9 @@ void EmuHLEIntercept(Xbe::Header *pXbeHeader)
printf("HLE: * Searching HLE database for %s version 1.0.%d... ", LibraryName.c_str(), BuildVersion); printf("HLE: * Searching HLE database for %s version 1.0.%d... ", LibraryName.c_str(), BuildVersion);
//Initialize library scan against HLE database we want to search for address of patches and xreferences. //Initialize library scan against HLE database we want to search for address of patches and xreferences.
bool bPrintSkip = true;
for (uint32 d2 = 0; d2 < HLEDataBaseCount; d2++) { for (uint32 d2 = 0; d2 < HLEDataBaseCount; d2++) {
if (strcmp(LibraryName.c_str(), HLEDataBase[d2].LibSec.library) == 0) { if (strcmp(LibraryName.c_str(), HLEDataBase[d2].LibSec.library) == 0) {
bool bPrintOn = g_bPrintfOn;
for (uint32 v = 0; v < pXbeHeader->dwSections; v++) { for (uint32 v = 0; v < pXbeHeader->dwSections; v++) {
SectionName.assign((char*)pSectionHeaders[v].dwSectionNameAddr, (char*)pSectionHeaders[v].dwSectionNameAddr + 8); SectionName.assign((char*)pSectionHeaders[v].dwSectionNameAddr, (char*)pSectionHeaders[v].dwSectionNameAddr + 8);
@ -509,19 +509,18 @@ void EmuHLEIntercept(Xbe::Header *pXbeHeader)
if (HLEDataBase[d2].LibSec.section[d3] != NULL && strcmp(SectionName.c_str(), HLEDataBase[d2].LibSec.section[d3]) == 0) { if (HLEDataBase[d2].LibSec.section[d3] != NULL && strcmp(SectionName.c_str(), HLEDataBase[d2].LibSec.section[d3]) == 0) {
pSectionScan = pSectionHeaders + v; pSectionScan = pSectionHeaders + v;
if (g_bPrintfOn) printf("Found\n"); if (bPrintSkip) printf("Found\n");
g_bPrintfOn = false; bPrintSkip = false;
EmuInstallPatches(HLEDataBase[d2].OovpaTable, HLEDataBase[d2].OovpaTableSize, pSectionScan, BuildVersion); EmuInstallPatches(HLEDataBase[d2].OovpaTable, HLEDataBase[d2].OovpaTableSize, pSectionScan, BuildVersion);
break; break;
} }
} }
} }
g_bPrintfOn = bPrintOn;
break; break;
} }
} }
if (g_bPrintfOn) printf("Skipped\n"); if (bPrintSkip) printf("Skipped\n");
if (v == dwLibraryVersions - 1 && bDSoundLibSection == false) { if (v == dwLibraryVersions - 1 && bDSoundLibSection == false) {
LibraryName = Lib_DSOUND; LibraryName = Lib_DSOUND;