| 352 | |
| 353 | |
| 354 | bool Manager::hasAutosave() { |
| 355 | std::string patchPath = system::join(autosavePath, "patch.json"); |
| 356 | FILE* file = std::fopen(patchPath.c_str(), "r"); |
| 357 | if (!file) |
| 358 | return false; |
| 359 | std::fclose(file); |
| 360 | return true; |
| 361 | } |
| 362 | |
| 363 | |
| 364 | void Manager::loadAutosave() { |