Various miscelaneous changes (#6496)

This commit is contained in:
Vitor K
2023-05-03 12:24:10 -03:00
committed by GitHub
parent 41f13456c0
commit 34de77d429
74 changed files with 44 additions and 81 deletions

View File

@ -67,6 +67,7 @@ static bool ValidateSaveState(const CSTHeader& header, SaveStateInfo& info, u64
std::vector<SaveStateInfo> ListSaveStates(u64 program_id) {
std::vector<SaveStateInfo> result;
result.reserve(SaveStateSlotCount);
for (u32 slot = 1; slot <= SaveStateSlotCount; ++slot) {
const auto path = GetSaveStatePath(program_id, slot);
if (!FileUtil::Exists(path)) {