Rename the poorly named {Read,Write}BigEData to Copy{From,To}Emu -

and change argument order to match memcpy.

Oh, and fix a lulzy buffer overflow in IOS emulation while I'm at it.
This commit is contained in:
comex
2014-10-17 20:50:15 -04:00
parent 536b8d6695
commit f8dfb2ec90
9 changed files with 35 additions and 36 deletions

View File

@ -215,9 +215,14 @@ u32 Read_Instruction(const u32 em_address)
return inst.hex;
}
void WriteBigEData(const u8 *_pData, const u32 _Address, const size_t _iSize)
void CopyFromEmu(void* data, u32 address, size_t size)
{
memcpy(GetPointer(_Address), _pData, _iSize);
memcpy(data, GetPointer(address), size);
}
void CopyToEmu(u32 address, const void* data, size_t size)
{
memcpy(GetPointer(address), data, size);
}
void Memset(const u32 _Address, const u8 _iValue, const u32 _iLength)
@ -286,12 +291,6 @@ void DMA_MemoryToLC(const u32 _CacheAddr, const u32 _MemAddr, const u32 _iNumBlo
}
}
void ReadBigEData(u8 *data, const u32 em_address, const u32 size)
{
u8 *src = GetPointer(em_address);
memcpy(data, src, size);
}
std::string GetString(u32 em_address)
{
std::string str;