| 1893 | } |
| 1894 | |
| 1895 | bool VMManager::DoLoadState(const char* filename, Error* error) |
| 1896 | { |
| 1897 | if (GSDumpReplayer::IsReplayingDump()) |
| 1898 | { |
| 1899 | Error::SetString(error, TRANSLATE_STR("VMManager", "Cannot load state while replaying a GS dump.")); |
| 1900 | return false; |
| 1901 | } |
| 1902 | |
| 1903 | Host::OnSaveStateLoading(filename); |
| 1904 | |
| 1905 | if (!SaveState_UnzipFromDisk(filename, error)) |
| 1906 | return false; |
| 1907 | |
| 1908 | Host::OnSaveStateLoaded(filename, true); |
| 1909 | if (g_InputRecording.isActive()) |
| 1910 | { |
| 1911 | g_InputRecording.handleLoadingSavestate(); |
| 1912 | MTGS::PresentCurrentFrame(); |
| 1913 | } |
| 1914 | |
| 1915 | MemcardBusy::CheckSaveStateDependency(); |
| 1916 | return true; |
| 1917 | } |
| 1918 | |
| 1919 | void VMManager::DoSaveState(const char* filename, s32 slot_for_message, bool zip_on_thread, bool backup_old_state, std::function<void(const std::string&)> error_callback) |
| 1920 | { |
nothing calls this directly
no test coverage detected