1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-06-27 23:14:05 +00:00

GLideNUI: copy M64P_GLIDENUI fix to Config_LoadConfig() aswell

This commit is contained in:
Rosalie 2022-02-16 08:33:28 +01:00 committed by Sergey Lipskiy
parent 49373fde71
commit 941e054157

View File

@ -42,6 +42,17 @@ void Config_LoadConfig()
{
wchar_t strIniFolderPath[PLUGIN_PATH_SIZE];
api().FindPluginPath(strIniFolderPath);
#ifdef M64P_GLIDENUI
wchar_t strConfigFolderPath[PLUGIN_PATH_SIZE];
api().GetUserConfigPath(strConfigFolderPath);
if (!IsPathWriteable(strIniFolderPath)) {
CopyConfigFiles(strIniFolderPath, strConfigFolderPath);
api().GetUserConfigPath(strIniFolderPath);
}
#endif // M64P_GLIDENUI
LoadConfig(strIniFolderPath);
if (config.generalEmulation.enableCustomSettings != 0)
LoadCustomRomSettings(strIniFolderPath, RSP.romname);