From 6770db9c8bd4bd2469fc8ec62c9e79dccaa74dbe Mon Sep 17 00:00:00 2001 From: Helloyunho Date: Sat, 5 Jul 2025 10:36:50 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=B8=20chore:=20change=20default=20cd?= =?UTF-8?q?=20path=20so=20user=20can=20easily=20copy=20the=20assets=20to?= =?UTF-8?q?=20xbox?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ISLE/isleapp.cpp | 7 +++++++ ISLE/xbox_one_series/config.cpp | 15 +++++++++++++++ ISLE/xbox_one_series/config.h | 5 +++++ 3 files changed, 27 insertions(+) create mode 100644 ISLE/xbox_one_series/config.cpp create mode 100644 ISLE/xbox_one_series/config.h diff --git a/ISLE/isleapp.cpp b/ISLE/isleapp.cpp index b30a43ce..d578b68b 100644 --- a/ISLE/isleapp.cpp +++ b/ISLE/isleapp.cpp @@ -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); diff --git a/ISLE/xbox_one_series/config.cpp b/ISLE/xbox_one_series/config.cpp new file mode 100644 index 00000000..0b6b0fc6 --- /dev/null +++ b/ISLE/xbox_one_series/config.cpp @@ -0,0 +1,15 @@ +#include "config.h" + +#include +#include + +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\\"); +} diff --git a/ISLE/xbox_one_series/config.h b/ISLE/xbox_one_series/config.h new file mode 100644 index 00000000..eb61a898 --- /dev/null +++ b/ISLE/xbox_one_series/config.h @@ -0,0 +1,5 @@ +#pragma once + +#include "dictionary.h" + +void XBONE_SetupDefaultConfigOverrides(dictionary* p_dictionary); \ No newline at end of file