2016-12-28 20:58:31 +01:00
|
|
|
From: Jan Engelhardt <jengelh@inai.de>
|
|
|
|
|
|
|
|
Search for the resource file in /usr/share/slade, and prefer ~/.slade
|
|
|
|
over anything else.
|
|
|
|
(DIR_RES is /usr/share/appinfo according to wxWidgets,
|
|
|
|
which is not used in Linux distros.)
|
|
|
|
---
|
|
|
|
src/Archive/ArchiveManager.cpp | 4 +---
|
|
|
|
1 file changed, 1 insertion(+), 3 deletions(-)
|
|
|
|
|
2024-11-27 17:39:40 +01:00
|
|
|
Index: SLADE-3.2.6/src/Archive/ArchiveManager.cpp
|
2016-12-28 20:58:31 +01:00
|
|
|
===================================================================
|
2024-11-27 17:39:40 +01:00
|
|
|
--- SLADE-3.2.6.orig/src/Archive/ArchiveManager.cpp
|
|
|
|
+++ SLADE-3.2.6/src/Archive/ArchiveManager.cpp
|
|
|
|
@@ -132,14 +132,12 @@ bool ArchiveManager::init()
|
2016-12-28 20:58:31 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
// Find slade3.pk3 directory
|
2024-11-27 17:39:40 +01:00
|
|
|
- auto dir_slade_pk3 = app::path("slade.pk3", app::Dir::Resources);
|
|
|
|
+ auto dir_slade_pk3 = app::path("slade.pk3", app::Dir::User);
|
|
|
|
if (!fileutil::fileExists(dir_slade_pk3))
|
|
|
|
dir_slade_pk3 = app::path("slade.pk3", app::Dir::Data);
|
|
|
|
if (!fileutil::fileExists(dir_slade_pk3))
|
|
|
|
dir_slade_pk3 = app::path("slade.pk3", app::Dir::Executable);
|
|
|
|
if (!fileutil::fileExists(dir_slade_pk3))
|
|
|
|
- dir_slade_pk3 = app::path("slade.pk3", app::Dir::User);
|
|
|
|
- if (!fileutil::fileExists(dir_slade_pk3))
|
2016-12-28 20:58:31 +01:00
|
|
|
dir_slade_pk3 = "slade.pk3";
|
|
|
|
|
|
|
|
// Open slade.pk3
|