BPFunctions: Remove use of a dumb method

GetPointer serves no purpose.
This commit is contained in:
Jasper St. Pierre 2014-05-03 15:04:29 -04:00
parent 56228cea5d
commit fe645b888b
3 changed files with 2 additions and 8 deletions

View File

@ -239,11 +239,6 @@ bool GetConfig(const int &type)
}
}
u8 *GetPointer(const u32 &address)
{
return Memory::GetPointer(address);
}
void SetInterlacingMode(const BPCmd &bp)
{
// TODO

View File

@ -35,7 +35,6 @@ void CopyEFB(u32 dstAddr, unsigned int dstFormat, PEControl::PixelFormat srcForm
const EFBRectangle& srcRect, bool isIntensity, bool scaleByHalf);
void ClearScreen(const EFBRectangle &rc);
void OnPixelFormatChange();
u8 *GetPointer(const u32 &address);
bool GetConfig(const int &type);
void SetInterlacingMode(const BPCmd &bp);
};

View File

@ -273,9 +273,9 @@ void BPWritten(const BPCmd& bp)
// TODO - figure out a cleaner way.
if (GetConfig(CONFIG_ISWII))
ptr = GetPointer(bpmem.tmem_config.tlut_src << 5);
ptr = Memory::GetPointer(bpmem.tmem_config.tlut_src << 5);
else
ptr = GetPointer((bpmem.tmem_config.tlut_src & 0xFFFFF) << 5);
ptr = Memory::GetPointer((bpmem.tmem_config.tlut_src & 0xFFFFF) << 5);
if (ptr)
memcpy_gc(texMem + tlutTMemAddr, ptr, tlutXferCount);