From fa6d74006fa236cc086d7819b425ebb653da6ece Mon Sep 17 00:00:00 2001 From: Maria Keating Date: Mon, 28 Mar 2022 22:06:01 +0800 Subject: [PATCH] Add winePath setting load on startup. Currently, winePath isn't loaded from the .ini file, resulting in an empty field and the custom path being cleared from the .ini file on startup. --- src/launchercore.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/launchercore.cpp b/src/launchercore.cpp index 5c85270..a24d448 100755 --- a/src/launchercore.cpp +++ b/src/launchercore.cpp @@ -332,6 +332,10 @@ void LauncherCore::readInitialInformation() { profile.winePrefixPath = getDefaultWinePrefixPath(); } + if(settings.contains("winePath") && settings.value("winePath").canConvert() && !settings.value("winePath").toString().isEmpty()) { + profile.winePath = settings.value("winePath").toString(); + } + ProfileSettings defaultSettings; // login