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