Skip to content

Commit

Permalink
uncomment garbage replay detection thing thing
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed May 19, 2020
1 parent 77e7d1c commit 393da39
Showing 1 changed file with 14 additions and 22 deletions.
36 changes: 14 additions & 22 deletions src/Etterna/Models/Misc/HighScore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -593,29 +593,21 @@ HighScore::LoadReplayDataFull()
tokens.clear();
continue;
}
// bool a = buffer == "1";
// a = buffer == "2" || a;
// a = buffer == "3" || a;
// a = buffer == "4" || a;
// a = buffer == "5" || a;
// a = buffer == "6" || a;
// a = buffer == "7" || a;
// a = buffer == "8" || a;
// a = buffer == "9" || a;
// a = buffer == "0" || a;
// if (!a) {
// LOG->Warn("Replay data at %s appears to be HOT BROKEN GARBAGE WTF",
// path.c_str());
// return false;
//}

// probably replaydatav1 in the wrong folder, we could throw a trace or
// a warn but i feel like nobody will care or do anything about it and
// it will just pollute the log, nobody is going to parse the log and
// properly split up their replays back into the respective folders
// so...
if (tokens.size() < 3)
bool a = buffer == "1";
a = buffer == "2" || a;
a = buffer == "3" || a;
a = buffer == "4" || a;
a = buffer == "5" || a;
a = buffer == "6" || a;
a = buffer == "7" || a;
a = buffer == "8" || a;
a = buffer == "9" || a;
a = buffer == "0" || a;
if (!a) {
LOG->Warn("Replay data at %s appears to be HOT BROKEN GARBAGE WTF",
path.c_str());
return false;
}

noteRow = std::stoi(tokens[0]);
if (!(typeid(noteRow) == typeid(int))) {
Expand Down

0 comments on commit 393da39

Please sign in to comment.