This commit is contained in:
Lyelye150 2025-10-21 23:28:03 -04:00
parent ef3e4c6641
commit 97123b5f9a
2 changed files with 44 additions and 2 deletions

View File

@ -79,6 +79,48 @@
#ifdef __WIIU__
#include "wiiu/config.h"
#ifdef __WUT__
#include <stdio.h>
#include <string>
#include <whb/log.h>
#include <whb/log_cafe.h>
#include <whb/log_console.h>
#include <whb/log_file.h>
#include <whb/log_udp.h>
#include <whb/proc.h>
#endif
#endif
#ifdef __WUT__
static FILE* sdlLogFile = nullptr;
void WiiULogToFile(void* userdata, int category, SDL_LogPriority priority, const char* message)
{
if (sdlLogFile) {
fprintf(sdlLogFile, "[%d] %s\n", priority, message);
fflush(sdlLogFile);
}
}
void InitWiiULog()
{
sdlLogFile = fopen("sd:/SDL_Log.txt", "w");
if (sdlLogFile) {
SDL_LogSetOutputFunction(WiiULogToFile, nullptr);
SDL_Log("SDL logging redirected to sd:/SDL_Log.txt");
}
else {
WHBLogPrint("Failed to open sd:/SDL_Log.txt");
}
}
void CloseWiiULog()
{
if (sdlLogFile) {
fclose(sdlLogFile);
sdlLogFile = nullptr;
}
}
#endif
DECOMP_SIZE_ASSERT(IsleApp, 0x8c)

View File

@ -9,6 +9,6 @@ void WIIU_SetupDefaultConfigOverrides(dictionary* p_dictionary)
{
SDL_Log("Overriding default config for Wii U");
iniparser_set(p_dictionary, "isle:diskpath", "sdmc:/wiiu/apps/isle-U/content/isle/LEGO");
iniparser_set(p_dictionary, "isle:cdpath", "sdmc:/wiiu/apps/isle-U/content/isle");
iniparser_set(p_dictionary, "isle:diskpath", "sdmc:/wiiu/apps/isle-U/content/LEGO");
iniparser_set(p_dictionary, "isle:cdpath", "sdmc:/wiiu/apps/isle-U/content/LEGO");
}