Skip to content

Commit

Permalink
ios_mcp: improve logging of rpx loading
Browse files Browse the repository at this point in the history
  • Loading branch information
Maschell committed May 6, 2024
1 parent 88aa04a commit 26d7d87
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -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

Expand Down
6 changes: 3 additions & 3 deletions source/ios_mcp/source/mcp_loadfile.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 26d7d87

Please sign in to comment.