Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:goupilmtos:games
duckstation-0.1+git.4915.79397426
01_program_path.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 01_program_path.diff of Package duckstation-0.1+git.4915.79397426
diff --git a/src/core/host_interface.cpp b/src/core/host_interface.cpp index 85b3df7..c5c9732 100644 --- a/src/core/host_interface.cpp +++ b/src/core/host_interface.cpp @@ -23,6 +23,7 @@ #include <cstring> #include <cwchar> #include <stdlib.h> +#include <unistd.h> Log_SetChannel(HostInterface); HostInterface* g_host_interface; @@ -33,7 +34,8 @@ HostInterface::HostInterface() g_host_interface = this; // we can get the program directory at construction time - m_program_directory = FileSystem::GetPathDirectory(FileSystem::GetProgramPath()); + char buf[4096]; + m_program_directory = getcwd(buf, 4096); //FileSystem::GetPathDirectory(FileSystem::GetProgramPath()); } HostInterface::~HostInterface() diff --git a/src/duckstation-qt/qthostinterface.cpp b/src/duckstation-qt/qthostinterface.cpp index e3f9ab2..b1c9f68 100644 --- a/src/duckstation-qt/qthostinterface.cpp +++ b/src/duckstation-qt/qthostinterface.cpp @@ -137,7 +137,8 @@ void QtHostInterface::installTranslator() const QString language(QString::fromStdString(GetStringSettingValue("Main", "Language", "en"))); // install the base qt translation first - const QString base_dir(QStringLiteral("%1/translations").arg(qApp->applicationDirPath())); + //const QString base_dir(QStringLiteral("%1/translations").arg(qApp->applicationDirPath())); + const QString base_dir(QStringLiteral("%1/translations").arg(QString::fromStdString(m_program_directory))); const QString base_path(QStringLiteral("%1/qtbase_%2.qm").arg(base_dir).arg(language)); if (QFile::exists(base_path)) {
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