isle-portable/ISLE/3ds/config.cpp
2026-01-08 02:10:10 +01:00

20 lines
719 B
C++

#include "config.h"
#include <iniparser.h>
#include <mortar/mortar_log.h>
void N3DS_SetupDefaultConfigOverrides(dictionary* p_dictionary)
{
MORTAR_Log("Overriding default config for 3DS");
// We are currently not bundling the assets into romfs.
// User must place assets in sdmc:/3ds/isle where
// sdmc:/3ds/isle/LEGO/SCRIPTS/CREDITS.si exists, for example.
iniparser_set(p_dictionary, "isle:diskpath", "sdmc:/3ds/isle/LEGO/disk");
iniparser_set(p_dictionary, "isle:cdpath", "sdmc:/3ds/isle");
// TODO: Save path: can we use libctru FS save data functions? Would be neat, especially for CIA install
// Extra / at the end causes some issues
iniparser_set(p_dictionary, "isle:savepath", "sdmc:/3ds/isle");
}