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:
parent
68ea37f2fb
commit
d33295a9c4
|
@ -63,6 +63,7 @@ static const SPatch OSPatches[] =
|
||||||
{ "vprintf", HLE_OS::HLE_vprintf },
|
{ "vprintf", HLE_OS::HLE_vprintf },
|
||||||
{ "printf", HLE_OS::HLE_printf },
|
{ "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
|
// wii only
|
||||||
{ "__OSInitAudioSystem", HLE_Misc::UnimplementedFunction },
|
{ "__OSInitAudioSystem", HLE_Misc::UnimplementedFunction },
|
||||||
|
|
|
@ -85,6 +85,21 @@ void HLE_printf()
|
||||||
PC = hackPC;
|
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)
|
void GetStringVA(std::string& _rOutBuffer)
|
||||||
{
|
{
|
||||||
_rOutBuffer = "";
|
_rOutBuffer = "";
|
||||||
|
|
|
@ -24,6 +24,7 @@ namespace HLE_OS
|
||||||
{
|
{
|
||||||
void HLE_vprintf();
|
void HLE_vprintf();
|
||||||
void HLE_printf();
|
void HLE_printf();
|
||||||
|
void HLE___blank();
|
||||||
void HLE_OSReport();
|
void HLE_OSReport();
|
||||||
void HLE_OSPanic();
|
void HLE_OSPanic();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue