Attempt to address some auto-reported crashes on Android

Still confused about the SignalSema/WaitSema ones.. they are still getting reported at high frequency
This commit is contained in:
Henrik Rydgard committed 2015-11-25 12:05:32 +01:00
1 parent a0cff13efa
commit ee4261cf5c
3 files changed
+11 -5

No files matched your search

+3 -3
View File
@@ -124,7 +124,6 @@ void hleCheat(u64 userdata, int cyclesLate) {
}
CWCheatEngine::CWCheatEngine() {
}
void CWCheatEngine::Exit() {
@@ -139,7 +138,7 @@ static inline std::vector<std::string> makeCodeParts(const std::vector<std::stri
char empty = ' ';
for (size_t i = 0; i < CodesList.size(); i++) {
currentcode = CodesList[i];
for (size_t j=0; j < currentcode.length(); j++) {
for (size_t j = 0; j < currentcode.length(); j++) {
if (currentcode[j] == empty) {
currentcode[j] = '\n';
}
@@ -201,7 +200,8 @@ std::vector<int> CWCheatEngine::GetNextCode() { // Feeds a size-2 vector of ints
std::vector<int> finalCode;
std::string modifier2 = "0";
while (true) {
if (currentCode >= parts.size()) {
// Shouldn't splitCode be cleared here? Otherwise var1 and var2 will always be set to the first two codes.. I don't get it
if (currentCode >= parts.size() - 1) {
code1.clear();
code2.clear();
break;