mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-02-03 04:21:15 +00:00
🚸 chore: change default cd path so user can easily copy the assets to xbox
This commit is contained in:
parent
eb54cec31c
commit
6770db9c8b
@ -59,6 +59,10 @@
|
|||||||
#include "3ds/config.h"
|
#include "3ds/config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef WINDOWS_STORE
|
||||||
|
#include "xbox_one_series/config.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
DECOMP_SIZE_ASSERT(IsleApp, 0x8c)
|
DECOMP_SIZE_ASSERT(IsleApp, 0x8c)
|
||||||
|
|
||||||
// GLOBAL: ISLE 0x410030
|
// GLOBAL: ISLE 0x410030
|
||||||
@ -937,6 +941,9 @@ bool IsleApp::LoadConfig()
|
|||||||
|
|
||||||
#ifdef __3DS__
|
#ifdef __3DS__
|
||||||
N3DS_SetupDefaultConfigOverrides(dict);
|
N3DS_SetupDefaultConfigOverrides(dict);
|
||||||
|
#endif
|
||||||
|
#ifdef WINDOWS_STORE
|
||||||
|
XBONE_SetupDefaultConfigOverrides(dict);
|
||||||
#endif
|
#endif
|
||||||
iniparser_dump_ini(dict, iniFP);
|
iniparser_dump_ini(dict, iniFP);
|
||||||
SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION, "New config written at '%s'", iniConfig);
|
SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION, "New config written at '%s'", iniConfig);
|
||||||
|
|||||||
15
ISLE/xbox_one_series/config.cpp
Normal file
15
ISLE/xbox_one_series/config.cpp
Normal 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\\");
|
||||||
|
}
|
||||||
5
ISLE/xbox_one_series/config.h
Normal file
5
ISLE/xbox_one_series/config.h
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "dictionary.h"
|
||||||
|
|
||||||
|
void XBONE_SetupDefaultConfigOverrides(dictionary* p_dictionary);
|
||||||
Loading…
Reference in New Issue
Block a user