mirror of
https://github.com/Rosalie241/RMG.git
synced 2026-11-13 09:38:43 +01:00
40 lines
1.4 KiB
C++
40 lines
1.4 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_CACHEDROMHEADERANDSETTINGS_HPP
|
|
#define CORE_CACHEDROMHEADERANDSETTINGS_HPP
|
|
|
|
#include <string>
|
|
|
|
#include "RomHeader.hpp"
|
|
#include "RomSettings.hpp"
|
|
|
|
#ifdef CORE_INTERNAL
|
|
// attempts to read rom header & settings cache
|
|
void CoreReadRomHeaderAndSettingsCache(void);
|
|
|
|
// returns whether saving the rom header & settings cache
|
|
// succeeds
|
|
bool CoreSaveRomHeaderAndSettingsCache(void);
|
|
#endif // CORE_INTERNAL
|
|
|
|
// returns whether rom header & settings have been cached
|
|
// for given filename
|
|
bool CoreHasRomHeaderAndSettingsCached(std::string file);
|
|
|
|
// returns whether retrieving the rom header & settings
|
|
// for given filename succeeds
|
|
bool CoreGetCachedRomHeaderAndSettings(std::string file, CoreRomHeader& header, CoreRomSettings& settings);
|
|
|
|
// returns whether adding cached rom header & settings
|
|
// for given filename succeeds
|
|
bool CoreAddCachedRomHeaderAndSettings(std::string file, CoreRomHeader header, CoreRomSettings settings);
|
|
|
|
#endif // CORE_CACHEDROMHEADERANDSETTINGS_HPP
|