mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2024-12-25 17:21:55 +01:00
savestates: log slot on load and save
This commit is contained in:
parent
7b8832cebb
commit
8e8c8fa37a
@ -113,9 +113,10 @@ System::ResultStatus System::RunLoop(bool tight_loop) {
|
|||||||
case Signal::Shutdown:
|
case Signal::Shutdown:
|
||||||
return ResultStatus::ShutdownRequested;
|
return ResultStatus::ShutdownRequested;
|
||||||
case Signal::Load: {
|
case Signal::Load: {
|
||||||
LOG_INFO(Core, "Begin load");
|
const u32 slot = param;
|
||||||
|
LOG_INFO(Core, "Begin load of slot {}", slot);
|
||||||
try {
|
try {
|
||||||
System::LoadState(param);
|
System::LoadState(slot);
|
||||||
LOG_INFO(Core, "Load completed");
|
LOG_INFO(Core, "Load completed");
|
||||||
} catch (const std::exception& e) {
|
} catch (const std::exception& e) {
|
||||||
LOG_ERROR(Core, "Error loading: {}", e.what());
|
LOG_ERROR(Core, "Error loading: {}", e.what());
|
||||||
@ -126,9 +127,10 @@ System::ResultStatus System::RunLoop(bool tight_loop) {
|
|||||||
return ResultStatus::Success;
|
return ResultStatus::Success;
|
||||||
}
|
}
|
||||||
case Signal::Save: {
|
case Signal::Save: {
|
||||||
LOG_INFO(Core, "Begin save");
|
const u32 slot = param;
|
||||||
|
LOG_INFO(Core, "Begin save to slot {}", slot);
|
||||||
try {
|
try {
|
||||||
System::SaveState(param);
|
System::SaveState(slot);
|
||||||
LOG_INFO(Core, "Save completed");
|
LOG_INFO(Core, "Save completed");
|
||||||
} catch (const std::exception& e) {
|
} catch (const std::exception& e) {
|
||||||
LOG_ERROR(Core, "Error saving: {}", e.what());
|
LOG_ERROR(Core, "Error saving: {}", e.what());
|
||||||
|
Loading…
Reference in New Issue
Block a user