summarylogtreecommitdiffstats
path: root/030-m64p-fix-paths.patch
diff options
context:
space:
mode:
Diffstat (limited to '030-m64p-fix-paths.patch')
-rw-r--r--030-m64p-fix-paths.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/030-m64p-fix-paths.patch b/030-m64p-fix-paths.patch
new file mode 100644
index 000000000000..697c7bf1db3b
--- /dev/null
+++ b/030-m64p-fix-paths.patch
@@ -0,0 +1,34 @@
+--- a/mupen64plus-gui/mainwindow.cpp
++++ b/mupen64plus-gui/mainwindow.cpp
+@@ -4,6 +4,7 @@
+ #include <QCloseEvent>
+ #include <QActionGroup>
+ #include <QDesktopServices>
++#include <QStandardPaths>
+ #include "settingsdialog.h"
+ #include "plugindialog.h"
+ #include "mainwindow.h"
+@@ -407,11 +408,11 @@ MainWindow::MainWindow(QWidget *parent) :
+ updatePIF(ui);
+
+ if (!settings->contains("coreLibPath"))
+- settings->setValue("coreLibPath", "$APP_PATH$");
++ settings->setValue("coreLibPath", "/usr/lib");
+ if (!settings->contains("pluginDirPath"))
+- settings->setValue("pluginDirPath", "$APP_PATH$");
++ settings->setValue("pluginDirPath", "/usr/lib/mupen64plus");
+ if (!settings->contains("configDirPath"))
+- settings->setValue("configDirPath", "$CONFIG_PATH$");
++ settings->setValue("configDirPath", QStandardPaths::writableLocation(QStandardPaths::ConfigLocation) + "/mupen64plus");
+
+ updatePlugins();
+
+@@ -507,7 +508,7 @@ void MainWindow::setupLLE()
+
+ void MainWindow::setupDiscord()
+ {
+- QLibrary *discordLib = new QLibrary((QDir(QCoreApplication::applicationDirPath()).filePath("discord_game_sdk")), this);
++ QLibrary *discordLib = new QLibrary("/usr/lib/discord_game_sdk", this);
+
+ memset(&discord_app, 0, sizeof(discord_app));
+