mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-09-20 02:12:44 -06:00

Replaces them with forward declarations of used types, or removes them entirely if they aren't used at all. This also replaces certain Common headers with less inclusive ones (in terms of definitions they pull in).
48 lines
768 B
C++
48 lines
768 B
C++
// Copyright 2013 Dolphin Emulator Project
|
|
// Licensed under GPLv2
|
|
// Refer to the license.txt file included.
|
|
|
|
#pragma once
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
#include "Common/CommonTypes.h"
|
|
|
|
namespace Gecko
|
|
{
|
|
|
|
class GeckoCode
|
|
{
|
|
public:
|
|
|
|
GeckoCode() : enabled(false) {}
|
|
|
|
struct Code
|
|
{
|
|
Code() : address(0), data(0) {}
|
|
|
|
u32 address, data;
|
|
|
|
std::string original_line;
|
|
|
|
u32 GetAddress() const;
|
|
};
|
|
|
|
std::vector<Code> codes;
|
|
std::string name, creator;
|
|
std::vector<std::string> notes;
|
|
|
|
bool enabled;
|
|
bool user_defined;
|
|
|
|
bool Compare(GeckoCode compare) const;
|
|
bool Exist(u32 address, u32 data) const;
|
|
};
|
|
|
|
void SetActiveCodes(const std::vector<GeckoCode>& gcodes);
|
|
bool RunActiveCodes();
|
|
void RunCodeHandler();
|
|
|
|
} // namespace Gecko
|