update gliden64

This commit is contained in:
Logan McNaughton committed 2021-05-31 12:27:37 -06:00
1 parent cf239f6637
commit 99fe2c94fb
1 file changed
+5 -2
+5 -2
View File
@@ -6,6 +6,7 @@
#include "../mupenplus/GLideN64_mupenplus.h"
#include <DisplayWindow.h>
#include <cstring>
#include <QString>
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);