Permalink
Browse files

Slight improvements

  • Loading branch information...
ergo720
ergo720 committed Oct 11, 2017
1 parent 5a13c67 commit aedf8df1587550ac97e63ba8e1f4d35f39d6fd11
Showing with 1 addition and 3 deletions.
  1. +1 −1 src/Common/Xbe.cpp
  2. +0 −2 src/CxbxKrnl/HLEIntercept.cpp
View
@@ -1010,6 +1010,6 @@ void Xbe::PurgeBadChar(std::string &s, const std::string &illegalChars)
for (auto it = s.begin(); it < s.end(); ++it)
{
bool found = illegalChars.find(*it) != std::string::npos;
if (found) { *it = ' '; }
if (found) { *it = '_'; }
}
}
@@ -144,7 +144,6 @@ void EmuHLEIntercept(Xbe::Header *pXbeHeader)
CxbxKrnl_Xbe->PurgeBadChar(szTitleName);
sstream << cachePath << szTitleName << "-" << std::hex << uiHash << ".ini";
std::string filename = sstream.str();
setlocale(LC_ALL, "");
if (PathFileExists(filename.c_str())) {
printf("Found HLE Cache File: %08X.ini\n", uiHash);
@@ -593,7 +592,6 @@ void EmuHLEIntercept(Xbe::Header *pXbeHeader)
WritePrivateProfileString("Info", "HLEDatabaseVersion", szHLELastCompileTime, filename.c_str());
// Write the Certificate Details to the cache file
setlocale(LC_ALL, "English");
WritePrivateProfileString("Certificate", "Name", tAsciiTitle, filename.c_str());
std::stringstream titleId;

0 comments on commit aedf8df

Please sign in to comment.