summarylogtreecommitdiffstats
path: root/030-m64p-fix-paths.patch
diff options
context:
space:
mode:
authorDaniel Bermond2020-11-03 02:03:59 +0000
committerDaniel Bermond2020-11-03 02:03:59 +0000
commit229fb26b76eac348561fe0e6761bb52d463498d5 (patch)
tree47fd0ab860c5cc39dd448f2a20d37e76ed184ebb /030-m64p-fix-paths.patch
parent5c0ac432c12f796d56b9b5551bd8fd23b7514ca5 (diff)
downloadaur-229fb26b76eac348561fe0e6761bb52d463498d5.tar.gz
Update to version 20201101
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));
+