MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / SaveState

Method SaveState

pcsx2/VMManager.cpp:2118–2129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2116}
2117
2118void 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
2131void VMManager::SaveStateToSlot(s32 slot, bool zip_on_thread, std::function<void(const std::string&)> error_callback)
2132{

Callers

nothing calls this directly

Calls 1

error_callbackFunction · 0.85

Tested by

no test coverage detected