From 21ccc60b87bbbaa3e0215880a7702b561bf497d0 Mon Sep 17 00:00:00 2001 From: Yn5an3 Date: Mon, 3 Dec 2012 23:37:14 +0100 Subject: [PATCH] Wrapped sceGe.cpp functions --- Core/HLE/sceGe.cpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/Core/HLE/sceGe.cpp b/Core/HLE/sceGe.cpp index 3237373e03..d2c04260d2 100644 --- a/Core/HLE/sceGe.cpp +++ b/Core/HLE/sceGe.cpp @@ -121,9 +121,9 @@ void sceGeContinue() // no arguments } -void sceGeBreak() +void sceGeBreak(u32 mode) { - u32 mode = PARAM(0); //0 : current dlist 1: all drawing + //mode => 0 : current dlist 1: all drawing ERROR_LOG(HLE,"UNIMPL sceGeBreak(mode=%d)",mode); } @@ -198,14 +198,13 @@ void sceGeGetMtx() ERROR_LOG(HLE,"UNIMPL sceGeGetMtx()"); } -void sceGeEdramSetAddrTranslation() +u32 sceGeEdramSetAddrTranslation(int new_size) { - int new_size = PARAM(0); INFO_LOG(HLE,"sceGeEdramSetAddrTranslation(%i)", new_size); static int EDRamWidth; int last = EDRamWidth; EDRamWidth = new_size; - RETURN(last); + return last; } const HLEFunction sceGe_user[] = @@ -216,12 +215,12 @@ const HLEFunction sceGe_user[] = {0xE0D68148,&WrapV_UU, "sceGeListUpdateStallAddr"}, {0x03444EB4,&WrapV_UU, "sceGeListSync"}, {0xB287BD61,&WrapU_U, "sceGeDrawSync"}, - {0xB448EC0D,sceGeBreak, "sceGeBreak"}, + {0xB448EC0D,&WrapV_U, "sceGeBreak"}, {0x4C06E472,sceGeContinue, "sceGeContinue"}, {0xA4FC06A4,&WrapU_U, "sceGeSetCallback"}, {0x05DB22CE,&WrapV_U, "sceGeUnsetCallback"}, {0x1F6752AD,&WrapU_V, "sceGeEdramGetSize"}, - {0xB77905EA,&sceGeEdramSetAddrTranslation,"sceGeEdramSetAddrTranslation"}, + {0xB77905EA,&WrapU_I,"sceGeEdramSetAddrTranslation"}, {0xDC93CFEF,0,"sceGeGetCmd"}, {0x57C8945B,&sceGeGetMtx,"sceGeGetMtx"}, {0x438A385A,&WrapU_U,"sceGeSaveContext"},