mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06:00
Remove unnecessary Src/ folders
This commit is contained in:
51
Source/Core/Core/GeckoCode.h
Normal file
51
Source/Core/Core/GeckoCode.h
Normal file
@ -0,0 +1,51 @@
|
||||
// Copyright 2013 Dolphin Emulator Project
|
||||
// Licensed under GPLv2
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
#ifndef __GECKOCODE_h__
|
||||
#define __GECKOCODE_h__
|
||||
|
||||
#include "Common.h"
|
||||
|
||||
#include <vector>
|
||||
#include <string>
|
||||
#include <map>
|
||||
|
||||
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);
|
||||
};
|
||||
|
||||
void SetActiveCodes(const std::vector<GeckoCode>& gcodes);
|
||||
bool RunActiveCodes();
|
||||
void RunCodeHandler();
|
||||
|
||||
} // namespace Gecko
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user