mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-01-11 18:41:14 +00:00
update
This commit is contained in:
parent
ef3e4c6641
commit
97123b5f9a
@ -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)
|
||||
|
||||
@ -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");
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user