mirror of
https://github.com/wiiu-env/MochaPayload.git
synced 2024-10-01 08:59:49 +02:00
Only enable logging once
This commit is contained in:
parent
f6682e293e
commit
097260b0ee
@ -28,6 +28,7 @@ int (*const MCP_DoLoadFile)(const char *path, const char *path2, void *outputBuf
|
|||||||
|
|
||||||
static int MCP_LoadCustomFile(int target, char *path, int filesize, int fileoffset, void *out_buffer, int buffer_len, int pos);
|
static int MCP_LoadCustomFile(int target, char *path, int filesize, int fileoffset, void *out_buffer, int buffer_len, int pos);
|
||||||
|
|
||||||
|
static bool usbLoggingEnabled = false;
|
||||||
static bool replace_valid = false;
|
static bool replace_valid = false;
|
||||||
static bool skipPPCSetup = false;
|
static bool skipPPCSetup = false;
|
||||||
static bool doWantReplaceRPX = false;
|
static bool doWantReplaceRPX = false;
|
||||||
@ -295,7 +296,7 @@ int _MCP_ioctl100_patch(ipcmessage *msg) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
case IPC_CUSTOM_START_USB_LOGGING: {
|
case IPC_CUSTOM_START_USB_LOGGING: {
|
||||||
if (*((uint32_t *) 0x050290dc) == 0x42424242) {
|
if (usbLoggingEnabled || *((uint32_t *) 0x050290dc) == 0x42424242) {
|
||||||
// Skip syslog after a reload
|
// Skip syslog after a reload
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -316,6 +317,8 @@ int _MCP_ioctl100_patch(ipcmessage *msg) {
|
|||||||
bufferPtr[0] = 0;
|
bufferPtr[0] = 0;
|
||||||
bufferPtr[1] = 0;
|
bufferPtr[1] = 0;
|
||||||
|
|
||||||
|
usbLoggingEnabled = true;
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default: {
|
default: {
|
||||||
|
Loading…
Reference in New Issue
Block a user