eb8d2941c9
* savestates: add a build_name field to the header * savestates: display build name on save/load menu * savestates: add zero member to header just in case of UB from an older save state * savestates: add legacy hash lookup * savestate_data: update hash database
28 lines
571 B
C++
28 lines
571 B
C++
// Copyright 2020 Citra Emulator Project
|
|
// Licensed under GPLv2 or any later version
|
|
// Refer to the license.txt file included.
|
|
|
|
#pragma once
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
#include "common/common_types.h"
|
|
|
|
namespace Core {
|
|
|
|
struct SaveStateInfo {
|
|
u32 slot;
|
|
u64 time;
|
|
enum class ValidationStatus {
|
|
OK,
|
|
RevisionDismatch,
|
|
} status;
|
|
std::string build_name;
|
|
};
|
|
|
|
constexpr u32 SaveStateSlotCount = 10; // Maximum count of savestate slots
|
|
|
|
std::vector<SaveStateInfo> ListSaveStates(u64 program_id, u64 movie_id);
|
|
|
|
} // namespace Core
|