ios_mcp: improve logging of rpx loading

This commit is contained in:
Maschell 2024-05-06 10:22:26 +02:00
parent 88aa04a8d8
commit 26d7d87699
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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,