Restore a log statement, #pragma once.

This commit is contained in:
Henrik Rydgard 2013-03-07 00:27:00 +01:00
parent a69b09a831
commit a0cf3b9151
2 changed files with 9 additions and 6 deletions

View file

@ -860,13 +860,14 @@ u32 sceIoDevctl(const char *name, int cmd, u32 argAddr, int argLen, u32 outPtr,
case 2: // EMULATOR_DEVCTL__SEND_OUTPUT
{
std::string data(Memory::GetCharPointer(argAddr), argLen);
if (PSP_CoreParameter().printfEmuLog)
{
if (PSP_CoreParameter().printfEmuLog) {
host->SendDebugOutput(data.c_str());
}
if (PSP_CoreParameter().collectEmuLog)
{
*PSP_CoreParameter().collectEmuLog += data;
} else {
if (PSP_CoreParameter().collectEmuLog) {
*PSP_CoreParameter().collectEmuLog += data;
} else if (PSP_CoreParameter().collectEmuLog) {
DEBUG_LOG(HLE, "%s", data.c_str());
}
}
return 0;
}

View file

@ -15,4 +15,6 @@
// Official git repository and contact information can be found at
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
#pragma once
void RunTests();