Skip to content

Commit

Permalink
фыв
Browse files Browse the repository at this point in the history
  • Loading branch information
user95401 committed Apr 6, 2024
1 parent 04c27ba commit 4501e68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ LONG WINAPI VectoredExceptionHandler(_EXCEPTION_POINTERS* pExceptInfo) {
DWORD ExcCode = pExceptInfo->ExceptionRecord->ExceptionCode;
std::string sExcCode = (std::stringstream() << "0x" << std::hex << ExcCode).str();
log::error("{} with {}", __FUNCTION__, sExcCode);
//save game
SaveMethods();
//error msg
if (ExcCode == EXCEPTION_NONCONTINUABLE_EXCEPTION) {
CCMessageBox(fmt::format("{}", sExcCode), "EXCEPTION_NONCONTINUABLE_EXCEPTION");
}
//save game
SaveMethods();
if (ExcCode != EXCEPTION_NONCONTINUABLE_EXCEPTION) return EXCEPTION_CONTINUE_EXECUTION;
LastExcCode = ExcCode;
return EXCEPTION_CONTINUE_SEARCH;
Expand Down

0 comments on commit 4501e68

Please sign in to comment.