mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-24 23:11:14 +01:00
e4caace6bb
Gets this out of the global namespace and into the Common namespace
26 lines
660 B
C++
26 lines
660 B
C++
// Copyright 2010 Dolphin Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include <optional>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
#include "Core/GeckoCode.h"
|
|
|
|
namespace Common
|
|
{
|
|
class IniFile;
|
|
}
|
|
|
|
namespace Gecko
|
|
{
|
|
std::vector<GeckoCode> LoadCodes(const Common::IniFile& globalIni, const Common::IniFile& localIni);
|
|
std::vector<GeckoCode> DownloadCodes(std::string gametdb_id, bool* succeeded,
|
|
bool use_https = true);
|
|
void SaveCodes(Common::IniFile& inifile, const std::vector<GeckoCode>& gcodes);
|
|
|
|
std::optional<GeckoCode::Code> DeserializeLine(const std::string& line);
|
|
} // namespace Gecko
|