mirror of
https://github.com/citra-emu/citra.git
synced 2024-12-20 03:40:07 +00:00
a487016cb4
10 slots are offered along with 'Save to Oldest Slot' and 'Load from Newest Slot'. The savestate format is similar to the movie file format. It is called CST (Citra SavesTate), and is basically a 0x100 byte header (consisting of magic, revision, creation time and title ID) followed by Zstd compressed raw savestate data. The savestate files are saved to the `states` folder in Citra's user folder. The files are named like `<Title ID>.<Slot ID>.cst`.
28 lines
530 B
C++
28 lines
530 B
C++
// Copyright 2020 Citra Emulator Project
|
|
// Licensed under GPLv2 or any later version
|
|
// Refer to the license.txt file included.
|
|
|
|
#pragma once
|
|
|
|
#include <vector>
|
|
#include "common/common_types.h"
|
|
|
|
namespace Core {
|
|
|
|
struct CSTHeader;
|
|
|
|
struct SaveStateInfo {
|
|
u32 slot;
|
|
u64 time;
|
|
enum class ValidationStatus {
|
|
OK,
|
|
RevisionDismatch,
|
|
} status;
|
|
};
|
|
|
|
constexpr u32 SaveStateSlotCount = 10; // Maximum count of savestate slots
|
|
|
|
std::vector<SaveStateInfo> ListSaveStates(u64 program_id);
|
|
|
|
} // namespace Core
|