1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
|
--- a/simple64-gui/cheats.cpp
+++ b/simple64-gui/cheats.cpp
@@ -229,7 +229,7 @@ QString getCheatGameName()
QJsonObject loadCheatData(QString gameName)
{
- QString cheats_path = QDir(QCoreApplication::applicationDirPath()).filePath("cheats.json");
+ QString cheats_path = QDir(QStringLiteral(u"/usr/share/mupen64plus")).filePath("cheats.json");
QFile file(cheats_path);
file.open(QIODevice::ReadOnly | QIODevice::Text);
--- a/simple64-gui/mainwindow.cpp
+++ b/simple64-gui/mainwindow.cpp
@@ -48,7 +48,7 @@ void MainWindow::updatePlugins()
#ifdef PLUGIN_DIR_PATH
QString pluginPath = PLUGIN_DIR_PATH;
#else
- QString pluginPath = QCoreApplication::applicationDirPath();
+ QString pluginPath = QStringLiteral(u"/usr/lib/mupen64plus");
#endif
QDir PluginDir(pluginPath);
PluginDir.setFilter(QDir::Files);
@@ -353,7 +353,7 @@ void MainWindow::updateApp()
void MainWindow::setupDiscord()
{
- QLibrary *discordLib = new QLibrary((QDir(QCoreApplication::applicationDirPath()).filePath("discord_game_sdk")), this);
+ QLibrary *discordLib = new QLibrary(QStringLiteral(u"discord_game_sdk"), this);
memset(&discord_app, 0, sizeof(discord_app));
@@ -929,7 +929,7 @@ void MainWindow::loadCoreLib()
#ifdef CORE_LIBRARY_PATH
QString corePath = CORE_LIBRARY_PATH;
#else
- QString corePath = QCoreApplication::applicationDirPath();
+ QString corePath = QStringLiteral(u"/usr/lib");
#endif
m64p_error res = osal_dynlib_open(&coreLib, QDir(corePath).filePath(OSAL_DEFAULT_DYNLIB_FILENAME).toUtf8().constData());
@@ -1022,7 +1022,7 @@ void MainWindow::loadPlugins()
#ifdef PLUGIN_DIR_PATH
QString pluginPath = PLUGIN_DIR_PATH;
#else
- QString pluginPath = QCoreApplication::applicationDirPath();
+ QString pluginPath = QStringLiteral(u"/usr/lib/mupen64plus");
#endif
QString file_path;
QString plugin_path;
--- a/simple64-gui/mainwindow.h
+++ b/simple64-gui/mainwindow.h
@@ -1,7 +1,7 @@
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
-#include "discord/discord_game_sdk.h"
+#include <discord_game_sdk.h>
#include "vkwindow.h"
#include "workerthread.h"
#include "logviewer.h"
--- a/simple64-gui/settingsdialog.cpp
+++ b/simple64-gui/settingsdialog.cpp
@@ -67,7 +67,7 @@ void SettingsDialog::initStuff()
#ifdef PLUGIN_DIR_PATH
QString pluginPath = PLUGIN_DIR_PATH;
#else
- QString pluginPath = QCoreApplication::applicationDirPath();
+ QString pluginPath = QStringLiteral(u"/usr/lib/mupen64plus");
#endif
QDir PluginDir(pluginPath);
QStringList Filter;
--- a/simple64-gui/workerthread.h
+++ b/simple64-gui/workerthread.h
@@ -7,7 +7,7 @@
#include <QVulkanInstance>
#include <QJsonObject>
#include "interface/common.h"
-#include "discord/discord_game_sdk.h"
+#include <discord_game_sdk.h>
class WorkerThread
: public QThread
--- a/simple64-input-qt/main.cpp
+++ b/simple64-input-qt/main.cpp
@@ -27,7 +27,7 @@
#include "m64p_plugin.h"
#include "main.h"
#include "configdialog.h"
-#include "vosk/vosk_api.h"
+#include <vosk_api.h>
#include "osal/osal_dynamiclib.h"
#include "vruwords.h"
#include "funcs.h"
@@ -770,7 +770,7 @@ static int setupVosk()
{
if (voskLib)
return 0;
- voskLib = new QLibrary((QDir(QCoreApplication::applicationDirPath()).filePath("vosk")));
+ voskLib = new QLibrary(QStringLiteral(u"vosk"));
VoskAcceptWaveform = (ptr_vosk_recognizer_accept_waveform) voskLib->resolve("vosk_recognizer_accept_waveform");
VoskFinalResult = (ptr_vosk_recognizer_final_result) voskLib->resolve("vosk_recognizer_final_result");
VoskNewModel = (ptr_vosk_model_new) voskLib->resolve("vosk_model_new");
|