| 2116 | } |
| 2117 | |
| 2118 | void VMManager::SaveState( |
| 2119 | const char* filename, bool zip_on_thread, bool backup_old_state, std::function<void(const std::string&)> error_callback) |
| 2120 | { |
| 2121 | if (MemcardBusy::IsBusy()) |
| 2122 | { |
| 2123 | error_callback(TRANSLATE_STR("VMManager", |
| 2124 | "The memory card is busy, so the state save operation has been cancelled to prevent data loss.")); |
| 2125 | return; |
| 2126 | } |
| 2127 | |
| 2128 | DoSaveState(filename, -1, zip_on_thread, backup_old_state, std::move(error_callback)); |
| 2129 | } |
| 2130 | |
| 2131 | void VMManager::SaveStateToSlot(s32 slot, bool zip_on_thread, std::function<void(const std::string&)> error_callback) |
| 2132 | { |
nothing calls this directly
no test coverage detected