Undo "ModCrashSanityCheck" mechanism that disables mods on an unclean exit
| 129 | |
| 130 | // Undo "ModCrashSanityCheck" mechanism that disables mods on an unclean exit |
| 131 | void CleanupSanityCheck() |
| 132 | { |
| 133 | auto path = GetStaticSymbols().ToPath("ModCrashSanityCheck", PathRootType::UserProfile); |
| 134 | auto pathw = FromUTF8(path); |
| 135 | if (PathIsDirectoryW(pathw.c_str())) { |
| 136 | RemoveDirectoryW(pathw.c_str()); |
| 137 | INFO("Removed ModCrashSanityCheck"); |
| 138 | } |
| 139 | } |
| 140 | |
| 141 | void ScriptExtender::OnGameStateChanged(GameState fromState, GameState toState) |
| 142 | { |
no test coverage detected