mirror of
https://github.com/Lime3DS/Lime3DS
synced 2024-12-28 01:52:29 -06:00
savestate.cpp: log the savestate revision on revision mismatch (#5894)
This commit is contained in:
parent
1911c9791e
commit
a515df01db
1 changed files with 3 additions and 2 deletions
|
@ -76,11 +76,12 @@ std::vector<SaveStateInfo> ListSaveStates(u64 program_id) {
|
||||||
LOG_WARNING(Core, "Save state file isn't for the current game {}", path);
|
LOG_WARNING(Core, "Save state file isn't for the current game {}", path);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
std::string revision = fmt::format("{:02x}", fmt::join(header.revision, ""));
|
const std::string revision = fmt::format("{:02x}", fmt::join(header.revision, ""));
|
||||||
if (revision == Common::g_scm_rev) {
|
if (revision == Common::g_scm_rev) {
|
||||||
info.status = SaveStateInfo::ValidationStatus::OK;
|
info.status = SaveStateInfo::ValidationStatus::OK;
|
||||||
} else {
|
} else {
|
||||||
LOG_WARNING(Core, "Save state file created from a different revision {}", path);
|
LOG_WARNING(Core, "Save state file {} created from a different revision {}", path,
|
||||||
|
revision);
|
||||||
info.status = SaveStateInfo::ValidationStatus::RevisionDismatch;
|
info.status = SaveStateInfo::ValidationStatus::RevisionDismatch;
|
||||||
}
|
}
|
||||||
result.emplace_back(std::move(info));
|
result.emplace_back(std::move(info));
|
||||||
|
|
Loading…
Reference in a new issue