2016-01-27 09:11:59 +00:00
|
|
|
#pragma once
|
|
|
|
#include <Project64-core/N64System/Recompiler/FunctionInfo.h>
|
2016-10-05 03:19:16 +00:00
|
|
|
#include <Project64-core/Settings/GameSettings.h>
|
2016-01-27 09:11:59 +00:00
|
|
|
|
2016-09-26 11:10:11 +00:00
|
|
|
class CFunctionMap :
|
|
|
|
private CGameSettings
|
2016-01-27 09:11:59 +00:00
|
|
|
{
|
|
|
|
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;
|
|
|
|
};
|