HLE the ___blank(char*, ...) func. seems to show some interesting, but limited messages.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4446 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Shawn Hoffman 2009-10-21 04:26:34 +00:00
parent 68ea37f2fb
commit d33295a9c4
3 changed files with 20 additions and 3 deletions

View File

@ -54,15 +54,16 @@ static const SPatch OSPatches[] =
// speedup
{ "OSProtectRange", HLE_Misc::UnimplementedFunctionFalse },
// { "THPPlayerGetState", HLE_Misc:THPPlayerGetState },
//{ "THPPlayerGetState", HLE_Misc:THPPlayerGetState },
// debug out is very nice ;)
{ "OSReport", HLE_OS::HLE_OSReport },
{ "OSPanic", HLE_OS::HLE_OSPanic },
{ "vprintf", HLE_OS::HLE_vprintf },
{ "vprintf", HLE_OS::HLE_vprintf },
{ "printf", HLE_OS::HLE_printf },
{ "puts", HLE_OS::HLE_printf }, //gcc-optimized printf?
{ "puts", HLE_OS::HLE_printf }, //gcc-optimized printf?
{ "___blank(char *,...)", HLE_OS::HLE___blank }, // dunno, but awesome :D
// wii only
{ "__OSInitAudioSystem", HLE_Misc::UnimplementedFunction },

View File

@ -85,6 +85,21 @@ void HLE_printf()
PC = hackPC;
}
void HLE___blank()
{
std::string ReportMessage;
GetStringVA(ReportMessage);
NPC = LR;
u32 hackPC = PC;
PC = LR;
// PanicAlert("(PC=%08x) Printf: %s ", LR, ReportMessage.c_str());
NOTICE_LOG(OSREPORT, "(PC=%08x) ___blank: %s ", LR, ReportMessage.c_str());
PC = hackPC;
}
void GetStringVA(std::string& _rOutBuffer)
{
_rOutBuffer = "";

View File

@ -24,6 +24,7 @@ namespace HLE_OS
{
void HLE_vprintf();
void HLE_printf();
void HLE___blank();
void HLE_OSReport();
void HLE_OSPanic();
}