🚸 chore: change default cd path so user can easily copy the assets to xbox

This commit is contained in:
Helloyunho 2025-07-05 10:36:50 +09:00
parent eb54cec31c
commit 6770db9c8b
3 changed files with 27 additions and 0 deletions

View File

@ -59,6 +59,10 @@
#include "3ds/config.h"
#endif
#ifdef WINDOWS_STORE
#include "xbox_one_series/config.h"
#endif
DECOMP_SIZE_ASSERT(IsleApp, 0x8c)
// GLOBAL: ISLE 0x410030
@ -937,6 +941,9 @@ bool IsleApp::LoadConfig()
#ifdef __3DS__
N3DS_SetupDefaultConfigOverrides(dict);
#endif
#ifdef WINDOWS_STORE
XBONE_SetupDefaultConfigOverrides(dict);
#endif
iniparser_dump_ini(dict, iniFP);
SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION, "New config written at '%s'", iniConfig);

View File

@ -0,0 +1,15 @@
#include "config.h"
#include <SDL3/SDL_log.h>
#include <iniparser.h>
void XBONE_SetupDefaultConfigOverrides(dictionary* p_dictionary)
{
SDL_Log("Overriding default config for Xbox One/Series");
// Use DevelopmentFiles path for disk and cd paths
// It's good to use that path since user can easily
// connect through SMB and copy the files
iniparser_set(p_dictionary, "isle:diskpath", "D:\\DevelopmentFiles\\isle\\");
iniparser_set(p_dictionary, "isle:cdpath", "D:\\DevelopmentFiles\\isle\\");
}

View File

@ -0,0 +1,5 @@
#pragma once
#include "dictionary.h"
void XBONE_SetupDefaultConfigOverrides(dictionary* p_dictionary);