feat(core): slightly improved crash reported restoring
This commit is contained in:
parent
debd159704
commit
22f96831e3
1 changed files with 9 additions and 2 deletions
|
@ -213,10 +213,17 @@ fn main() {
|
|||
|
||||
// Patch was renaming crash reporter to disable it
|
||||
if game_path.join("UnityCrashHandler64.exe.bak").exists() {
|
||||
if game_path.join("UnityCrashHandler64.exe").exists() {
|
||||
std::fs::remove_file(game_path.join("UnityCrashHandler64.exe.bak"))
|
||||
.expect("Failed to delete 'UnityCrashHandler64.exe.bak' file");
|
||||
}
|
||||
|
||||
else {
|
||||
std::fs::rename(game_path.join("UnityCrashHandler64.exe.bak"), game_path.join("UnityCrashHandler64.exe"))
|
||||
.expect("Failed to rename 'UnityCrashHandler64.exe.bak' file to 'UnityCrashHandler64.exe'");
|
||||
}
|
||||
}
|
||||
|
||||
// End of temporary workaround ^
|
||||
|
||||
if run_game || just_run_game {
|
||||
|
|
Loading…
Reference in a new issue