From 26d7d87699273a3a3556048d59140eda691c7723 Mon Sep 17 00:00:00 2001 From: Maschell Date: Mon, 6 May 2024 10:22:26 +0200 Subject: [PATCH] ios_mcp: improve logging of rpx loading --- Dockerfile | 2 +- source/ios_mcp/source/mcp_loadfile.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0853f9a..961f86a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM ghcr.io/wiiu-env/devkitppc:20240423 +FROM ghcr.io/wiiu-env/devkitppc:20240505 COPY --from=ghcr.io/wiiu-env/libmocha:20231127 /artifacts $DEVKITPRO diff --git a/source/ios_mcp/source/mcp_loadfile.c b/source/ios_mcp/source/mcp_loadfile.c index da88ca5..392e315 100644 --- a/source/ios_mcp/source/mcp_loadfile.c +++ b/source/ios_mcp/source/mcp_loadfile.c @@ -177,11 +177,11 @@ MCP_LoadCustomFile(LoadTargetDevice target, char *path, uint32_t filesize, uint3 strncat(filepath, path, (sizeof(filepath) - 1) - strlen(filepath)); } - DEBUG_FUNCTION_LINE("Load custom path \"%s\"\n", filepath); + DEBUG_FUNCTION_LINE("Trying to load .rpx from custom path \"%s\"\n", filepath); int bytesRead = 0; int result = MCP_DoLoadFile(filepath, NULL, buffer_out, buffer_len, pos + fileoffset, &bytesRead, 0); - // DEBUG_FUNCTION_LINE("MCP_DoLoadFile returned %d, bytesRead = %d pos %u\n", result, bytesRead, pos + fileoffset); + DEBUG_FUNCTION_LINE("MCP_DoLoadFile returned %d, bytesRead = %d pos %u\n", result, bytesRead, pos + fileoffset); if (result >= 0) { if (bytesRead <= 0) { @@ -366,7 +366,7 @@ int DoReplacementByStruct(ipcmessage *msg, MCPLoadFileRequest *request, const RP return -1; } - DEBUG_FUNCTION_LINE("Load custom file %s\n", _rpxpath); + // DEBUG_FUNCTION_LINE("Load custom file %s\n", _rpxpath); return MCP_LoadCustomFile(target, _rpxpath, curReplacement->fileSize,