project64/Source/Project64-core/N64System/Recompiler/FunctionMap.h

28 lines
661 B
C++

#pragma once
#include <Project64-core/N64System/Recompiler/FunctionInfo.h>
#include <Project64-core/Settings/GameSettings.h>
class CFunctionMap :
public CGameSettings
{
protected:
typedef CCompiledFunc * PCCompiledFunc;
typedef PCCompiledFunc * PCCompiledFunc_TABLE;
CFunctionMap();
~CFunctionMap();
bool AllocateMemory();
void Reset(bool bAllocate);
public:
PCCompiledFunc_TABLE * FunctionTable() const { return m_FunctionTable; }
PCCompiledFunc * JumpTable() const { return m_JumpTable; }
private:
void CleanBuffers();
PCCompiledFunc * m_JumpTable;
PCCompiledFunc_TABLE * m_FunctionTable;
};