diff --git a/GLideN64/src/GLideNUI/Config_GLideNUI.cpp b/GLideN64/src/GLideNUI/Config_GLideNUI.cpp index 0cb21c4..0847976 100644 --- a/GLideN64/src/GLideNUI/Config_GLideNUI.cpp +++ b/GLideN64/src/GLideNUI/Config_GLideNUI.cpp @@ -6,6 +6,7 @@ #include "../mupenplus/GLideN64_mupenplus.h" #include #include +#include Config config; @@ -15,7 +16,8 @@ void Config_DoConfig(/*HWND hParent*/) return; wchar_t strIniFolderPath[PLUGIN_PATH_SIZE]; - mbstowcs(&strIniFolderPath[0], ConfigGetUserConfigPath(), PLUGIN_PATH_SIZE); + QString configPath = QString::fromUtf8(ConfigGetUserConfigPath()); + configPath.toWCharArray(&strIniFolderPath[0]); wchar_t strCustomFolderPath[PLUGIN_PATH_SIZE]; api().FindPluginPath(strCustomFolderPath); @@ -35,7 +37,8 @@ void Config_LoadConfig() config.netplay = 0; wchar_t strIniFolderPath[PLUGIN_PATH_SIZE]; - mbstowcs(&strIniFolderPath[0], ConfigGetUserConfigPath(), PLUGIN_PATH_SIZE); + QString configPath = QString::fromUtf8(ConfigGetUserConfigPath()); + configPath.toWCharArray(&strIniFolderPath[0]); wchar_t strCustomFolderPath[PLUGIN_PATH_SIZE]; api().FindPluginPath(strCustomFolderPath); LoadConfig(strIniFolderPath);