From 99fe2c94fbcc8346bf51901c7ddf82b69c3071ec Mon Sep 17 00:00:00 2001 From: Logan McNaughton Date: Mon, 31 May 2021 12:27:37 -0600 Subject: [PATCH] update gliden64 --- GLideN64/src/GLideNUI/Config_GLideNUI.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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);