Files
RMG/Source/RMG-Core/SaveState.hpp
T

38 lines
1.0 KiB
C++

/*
* Rosalie's Mupen GUI - https://github.com/Rosalie241/RMG
* Copyright (C) 2020 Rosalie Wanders <rosalie@mailbox.org>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3.
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef CORE_SAVESTATE_HPP
#define CORE_SAVESTATE_HPP
#include <filesystem>
// sets save state slot
bool CoreSetSaveStateSlot(int slot);
// retrieves current save state slot,
// returns -1 on error
int CoreGetSaveStateSlot(void);
// retrieves the file path for
// the save state in the given slot
bool CoreGetSaveStatePath(int slot, std::filesystem::path& path);
// saves state
bool CoreSaveState(void);
// saves state to file
bool CoreSaveState(std::filesystem::path file);
// loads saved state
bool CoreLoadSaveState(void);
// loads saved state from file
bool CoreLoadSaveState(std::filesystem::path file);
#endif // CORE_SAVESTATE_HPP