From 5420c69df975d1d23e1e54c113c9f47cc49adb84 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Wed, 4 May 2022 11:08:40 -0400 Subject: [PATCH] Fix user path sometimes failing on case-sensitive filesystems. --- include/config.h | 2 +- src/launcherwindow.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/config.h b/include/config.h index a534474..802988d 100644 --- a/include/config.h +++ b/include/config.h @@ -1,3 +1,3 @@ #pragma once -constexpr const char* version = "0.4.0"; \ No newline at end of file +constexpr const char* version = "0.4.1"; \ No newline at end of file diff --git a/src/launcherwindow.cpp b/src/launcherwindow.cpp index fc3eb04..ae2e99d 100644 --- a/src/launcherwindow.cpp +++ b/src/launcherwindow.cpp @@ -54,7 +54,7 @@ LauncherWindow::LauncherWindow(LauncherCore& core, QWidget* parent) : QMainWindo // TODO: don't put this here QString searchDir; #if defined(Q_OS_LINUX) || defined(Q_OS_MAC) - searchDir = currentProfile().winePrefixPath + "/drive_c/Users"; + searchDir = currentProfile().winePrefixPath + "/drive_c/users"; #else searchDir = "C:/Users"; #endif @@ -71,7 +71,7 @@ LauncherWindow::LauncherWindow(LauncherCore& core, QWidget* parent) : QMainWindo } } - arguments.push_back({"UserPath", QString(R"(C:\Users\%1\My Documents\My Games\FINAL FANTASY XIV - A Realm Reborn)").arg(userPath)}); + arguments.push_back({"UserPath", QString(R"(C:\Users\%1\Documents\My Games\FINAL FANTASY XIV - A Realm Reborn)").arg(userPath)}); const QString argFormat = " /%1 =%2";