mirror of
https://github.com/Rosalie241/RMG.git
synced 2026-07-25 08:04:01 +02:00
34 lines
928 B
C++
34 lines
928 B
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);
|
|
|
|
// 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
|