2015-05-24 06:55:12 +02:00
|
|
|
// Copyright 2010 Dolphin Emulator Project
|
2021-07-05 03:22:19 +02:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2010-07-22 01:48:48 +00:00
|
|
|
|
2014-02-10 13:54:46 -05:00
|
|
|
#pragma once
|
2010-07-22 01:48:48 +00:00
|
|
|
|
2021-08-05 19:05:12 +02:00
|
|
|
#include <optional>
|
2017-02-09 19:22:51 -08:00
|
|
|
#include <string>
|
2014-07-27 13:37:09 -04:00
|
|
|
#include <vector>
|
2021-08-05 19:05:12 +02:00
|
|
|
|
2014-02-17 05:18:15 -05:00
|
|
|
#include "Core/GeckoCode.h"
|
2010-07-22 01:48:48 +00:00
|
|
|
|
2023-04-13 09:38:09 -04:00
|
|
|
namespace Common
|
|
|
|
|
{
|
2014-07-27 13:37:09 -04:00
|
|
|
class IniFile;
|
2023-04-13 09:38:09 -04:00
|
|
|
}
|
2014-07-27 13:37:09 -04:00
|
|
|
|
2010-07-22 01:48:48 +00:00
|
|
|
namespace Gecko
|
|
|
|
|
{
|
2023-04-13 09:38:09 -04:00
|
|
|
std::vector<GeckoCode> LoadCodes(const Common::IniFile& globalIni, const Common::IniFile& localIni);
|
2021-08-11 17:17:30 +02:00
|
|
|
std::vector<GeckoCode> DownloadCodes(std::string gametdb_id, bool* succeeded,
|
|
|
|
|
bool use_https = true);
|
2023-04-13 09:38:09 -04:00
|
|
|
void SaveCodes(Common::IniFile& inifile, const std::vector<GeckoCode>& gcodes);
|
2021-08-05 19:05:12 +02:00
|
|
|
|
|
|
|
|
std::optional<GeckoCode::Code> DeserializeLine(const std::string& line);
|
2019-05-05 23:48:12 +00:00
|
|
|
} // namespace Gecko
|