mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-09 00:11:24 +12:00
rpcs3: Fix the DATADIR path for AppImage
Even when DATADIR is defined the other paths may still be correct. Fixes: https://github.com/RPCS3/rpcs3/issues/11195
This commit is contained in:
parent
4df1a938b1
commit
a84223bdc6
3 changed files with 22 additions and 13 deletions
|
@ -518,12 +518,13 @@ void gui_application::OnChangeStyleSheetRequest()
|
|||
locs << m_gui_settings->GetSettingsDir();
|
||||
|
||||
#if !defined(_WIN32)
|
||||
#if defined(DATADIR)
|
||||
const QString dataPath = (DATADIR);
|
||||
locs << dataPath + "/GuiConfigs/";
|
||||
#elif defined(__APPLE__)
|
||||
#ifdef __APPLE__
|
||||
locs << QCoreApplication::applicationDirPath() + "/../Resources/GuiConfigs/";
|
||||
#else
|
||||
#ifdef DATADIR
|
||||
const QString data_dir = (DATADIR);
|
||||
locs << data_dir + "/GuiConfigs/";
|
||||
#endif
|
||||
locs << QCoreApplication::applicationDirPath() + "/../share/rpcs3/GuiConfigs/";
|
||||
#endif
|
||||
locs << QCoreApplication::applicationDirPath() + "/GuiConfigs/";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue