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

34 lines
680 B
C
Raw Normal View History

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 :
public CGameSettings
2016-01-27 09:11:59 +00:00
{
protected:
2022-10-10 00:22:17 +00:00
typedef CCompiledFunc * PCCompiledFunc;
2016-01-27 09:11:59 +00:00
typedef PCCompiledFunc * PCCompiledFunc_TABLE;
CFunctionMap();
~CFunctionMap();
bool AllocateMemory();
void Reset(bool bAllocate);
public:
2022-10-10 00:22:17 +00:00
PCCompiledFunc_TABLE * FunctionTable() const
{
return m_FunctionTable;
}
PCCompiledFunc * JumpTable() const
{
return m_JumpTable;
}
2016-01-27 09:11:59 +00:00
private:
void CleanBuffers();
2022-10-10 00:22:17 +00:00
PCCompiledFunc * m_JumpTable;
2016-01-27 09:11:59 +00:00
PCCompiledFunc_TABLE * m_FunctionTable;
};