Fix one sceHeap func, add reporting.

This commit is contained in:
Unknown W. Brackets 2013-09-29 00:07:51 -07:00
parent 3460efe186
commit 91d73d0972

View File

@ -15,8 +15,9 @@
// Official git repository and contact information can be found at
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
#include "Core/HLE/HLE.h"
#include "Common/ChunkFile.h"
#include "Core/Reporting.h"
#include "Core/HLE/HLE.h"
#include "Core/HLE/sceHeap.h"
void __HeapDoState(PointerWrap &p) {
@ -26,60 +27,60 @@ void __HeapDoState(PointerWrap &p) {
}
int sceHeapReallocHeapMemory(u32 heapPtr, u32 memPtr, int memSize) {
ERROR_LOG(HLE,"UNIMPL sceHeapReallocHeapMemory(%d %d %d)", heapPtr, memPtr, memSize);
ERROR_LOG_REPORT(HLE,"UNIMPL sceHeapReallocHeapMemory(%d %d %d)", heapPtr, memPtr, memSize);
return 0;
}
int sceHeapReallocHeapMemoryWithOption(u32 heapPtr, u32 memPtr, int memSize, u32 paramsPtr) {
ERROR_LOG(HLE,"UNIMPL sceHeapReallocHeapMemoryWithOption(%d %d %d %d)", heapPtr, memPtr, memSize, paramsPtr);
return 0;
ERROR_LOG_REPORT(HLE,"UNIMPL sceHeapReallocHeapMemoryWithOption(%d %d %d %d)", heapPtr, memPtr, memSize, paramsPtr);
return 0;
}
int sceHeapFreeHeapMemory(u32 heapPtr, u32 memPtr) {
ERROR_LOG(HLE,"UNIMPL sceHeapFreeHeapMemory(%d %d)", heapPtr, memPtr);
ERROR_LOG_REPORT(HLE,"UNIMPL sceHeapFreeHeapMemory(%d %d)", heapPtr, memPtr);
return 0;
}
int sceHeapGetMallinfo(u32 heapPtr, u32 infoPtr) {
ERROR_LOG(HLE,"UNIMPL sceHeapGetMallinfo(%d %d)", heapPtr, infoPtr);
return 0;
ERROR_LOG_REPORT(HLE,"UNIMPL sceHeapGetMallinfo(%d %d)", heapPtr, infoPtr);
return 0;
}
int sceHeapAllocHeapMemoryWithOption(u32 heapPtr, int memSize, u32 paramsPtr) {
ERROR_LOG(HLE,"UNIMPL sceHeapAllocHeapMemoryWithOption(%08x, %08x, %08x)", heapPtr, memSize, paramsPtr);
ERROR_LOG_REPORT(HLE,"UNIMPL sceHeapAllocHeapMemoryWithOption(%08x, %08x, %08x)", heapPtr, memSize, paramsPtr);
return 0;
}
int sceHeapGetTotalFreeSize(u32 heapPtr) {
ERROR_LOG(HLE,"UNIMPL sceHeapGetTotalFreeSize(%d)", heapPtr);
return 0;
ERROR_LOG_REPORT(HLE,"UNIMPL sceHeapGetTotalFreeSize(%d)", heapPtr);
return 0;
}
int sceHeapIsAllocatedHeapMemory(u32 heapPtr, u32 memPtr) {
ERROR_LOG(HLE,"UNIMPL sceHeapIsAllocatedHeapMemory(%d %d)", heapPtr, memPtr);
return 0;
ERROR_LOG_REPORT(HLE,"UNIMPL sceHeapIsAllocatedHeapMemory(%d %d)", heapPtr, memPtr);
return 0;
}
int sceHeapDeleteHeap(u32 heapPtr) {
ERROR_LOG(HLE,"UNIMPL sceHeapDeleteHeap(%d)", heapPtr);
return 0;
ERROR_LOG_REPORT(HLE,"UNIMPL sceHeapDeleteHeap(%d)", heapPtr);
return 0;
}
int sceHeapCreateHeap(const char* name, int len, int attr, u32 paramsPtr) {
ERROR_LOG(HLE,"UNIMPL sceHeapCreateHeap(%s %d %d %d)", name, len, attr, paramsPtr);
return 0;
ERROR_LOG_REPORT(HLE,"UNIMPL sceHeapCreateHeap(%s %d %d %d)", name, len, attr, paramsPtr);
return 0;
}
int sceHeapAllocHeapMemory(u32 heapAddr, int len) {
ERROR_LOG(HLE,"UNIMPL sceHeapAllocHeapMemory(%d %d)", heapAddr, len);
return 0;
ERROR_LOG_REPORT(HLE,"UNIMPL sceHeapAllocHeapMemory(%d %d)", heapAddr, len);
return 0;
}
static const HLEFunction sceHeap[] =
{
{0x0E875980,WrapI_UUI<sceHeapReallocHeapMemory>,"sceHeapReallocHeapMemory"},
{0x2ABADC63,WrapI_UUIU<sceHeapReallocHeapMemoryWithOption>,"sceHeapReallocHeapMemoryWithOption"},
{0x1C84B58D,WrapI_UUIU<sceHeapReallocHeapMemoryWithOption>,"sceHeapReallocHeapMemoryWithOption"},
{0x2ABADC63,WrapI_UU<sceHeapFreeHeapMemory>,"sceHeapFreeHeapMemory"},
{0x2A0C2009,WrapI_UU<sceHeapGetMallinfo>,"sceHeapGetMallinfo"},
{0x2B7299D8,WrapI_UIU<sceHeapAllocHeapMemoryWithOption>,"sceHeapAllocHeapMemoryWithOption"},