Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:rydia
duckstation
02-data-root.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 02-data-root.diff of Package duckstation
diff -ur duckstation-273979405d4730491ac094c008a0e567ce3ccaad.orig/src/duckstation-qt/qthost.cpp duckstation-273979405d4730491ac094c008a0e567ce3ccaad/src/duckstation-qt/qthost.cpp --- duckstation-273979405d4730491ac094c008a0e567ce3ccaad.orig/src/duckstation-qt/qthost.cpp 2023-11-24 22:49:52.000000000 +0800 +++ duckstation-273979405d4730491ac094c008a0e567ce3ccaad/src/duckstation-qt/qthost.cpp 2023-11-27 20:38:32.540091000 +0800 @@ -261,7 +261,8 @@ { #ifndef __APPLE__ // On Windows/Linux, these are in the binary directory. - EmuFolders::Resources = Path::Combine(EmuFolders::AppRoot, "resources"); + char buf[4096]; + EmuFolders::Resources = Path::Combine(getcwd(buf, 4096), "resources"); #else // On macOS, this is in the bundle resources directory. EmuFolders::Resources = Path::Canonicalize(Path::Combine(EmuFolders::AppRoot, "../Resources")); Only in duckstation-273979405d4730491ac094c008a0e567ce3ccaad/src/duckstation-qt: qthost.cpp.orig diff -ur duckstation-273979405d4730491ac094c008a0e567ce3ccaad.orig/src/duckstation-qt/qttranslations.cpp duckstation-273979405d4730491ac094c008a0e567ce3ccaad/src/duckstation-qt/qttranslations.cpp --- duckstation-273979405d4730491ac094c008a0e567ce3ccaad.orig/src/duckstation-qt/qttranslations.cpp 2023-11-24 22:49:52.000000000 +0800 +++ duckstation-273979405d4730491ac094c008a0e567ce3ccaad/src/duckstation-qt/qttranslations.cpp 2023-11-27 20:39:35.435931972 +0800 @@ -19,6 +19,7 @@ #include <QtGui/QGuiApplication> #include <QtWidgets/QMessageBox> #include <vector> +#include "unistd.h" #ifdef _WIN32 #include "common/windows_headers.h" @@ -74,7 +75,9 @@ // install the base qt translation first #ifndef __APPLE__ - const QString base_dir = QStringLiteral("%1/translations").arg(qApp->applicationDirPath()); + char dpath[4096]; + getcwd(dpath, 4096); + const QString base_dir(QStringLiteral("%1/translations").arg(dpath)); #else const QString base_dir = QStringLiteral("%1/../Resources/translations").arg(qApp->applicationDirPath()); #endif @@ -307,4 +310,4 @@ } return nullptr; -} \ No newline at end of file +}
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor