mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Restore a log statement, #pragma once.
This commit is contained in:
parent
a69b09a831
commit
a0cf3b9151
2 changed files with 9 additions and 6 deletions
|
@ -860,13 +860,14 @@ u32 sceIoDevctl(const char *name, int cmd, u32 argAddr, int argLen, u32 outPtr,
|
||||||
case 2: // EMULATOR_DEVCTL__SEND_OUTPUT
|
case 2: // EMULATOR_DEVCTL__SEND_OUTPUT
|
||||||
{
|
{
|
||||||
std::string data(Memory::GetCharPointer(argAddr), argLen);
|
std::string data(Memory::GetCharPointer(argAddr), argLen);
|
||||||
if (PSP_CoreParameter().printfEmuLog)
|
if (PSP_CoreParameter().printfEmuLog) {
|
||||||
{
|
|
||||||
host->SendDebugOutput(data.c_str());
|
host->SendDebugOutput(data.c_str());
|
||||||
}
|
} else {
|
||||||
if (PSP_CoreParameter().collectEmuLog)
|
if (PSP_CoreParameter().collectEmuLog) {
|
||||||
{
|
|
||||||
*PSP_CoreParameter().collectEmuLog += data;
|
*PSP_CoreParameter().collectEmuLog += data;
|
||||||
|
} else if (PSP_CoreParameter().collectEmuLog) {
|
||||||
|
DEBUG_LOG(HLE, "%s", data.c_str());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,4 +15,6 @@
|
||||||
// Official git repository and contact information can be found at
|
// Official git repository and contact information can be found at
|
||||||
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
|
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
void RunTests();
|
void RunTests();
|
||||||
|
|
Loading…
Add table
Reference in a new issue