dolphin/Source/Core/Core/Src/GeckoCode.h
Glenn Rice cdce0ec322 Build fix on linux.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5933 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-07-22 02:46:15 +00:00

68 lines
808 B
C++

#ifndef __GECKOCODE_h__
#define __GECKOCODE_h__
#include "Common.h"
#include <vector>
#include <string>
namespace Gecko
{
class GeckoCode
{
public:
GeckoCode() : enabled(false) {}
struct Code
{
union
{
u32 address;
struct
{
u32 gcaddress : 25;
u32 subtype: 3;
u32 use_po : 1;
u32 type: 3;
};
struct
{
u32 n : 4;
u32 z : 12;
u32 y : 4;
u32 t : 4;
//u32 s : 4;
//u32 : 4;
};// subsubtype;
};
union
{
u32 data;
//struct
//{
//
//};
};
u32 GetAddress() const;
};
std::vector<Code> codes;
std::string name, description, creator;
bool enabled;
};
void SetActiveCodes(const std::vector<GeckoCode>& gcodes);
bool RunActiveCodes();
} // namespace Gecko
#endif