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(-)
|
|
|
|
|
2020-04-18 20:36:37 +02:00
|
|
|
Index: SLADE-3.1.11/src/Archive/ArchiveManager.cpp
|
2016-12-28 20:58:31 +01:00
|
|
|
===================================================================
|
2020-04-18 20:36:37 +02:00
|
|
|
--- SLADE-3.1.11.orig/src/Archive/ArchiveManager.cpp
|
|
|
|
+++ SLADE-3.1.11/src/Archive/ArchiveManager.cpp
|
|
|
|
@@ -153,14 +153,12 @@ bool ArchiveManager::init()
|
2016-12-28 20:58:31 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
// Find slade3.pk3 directory
|
2020-04-18 20:36:37 +02:00
|
|
|
- string dir_slade_pk3 = App::path("slade.pk3", App::Dir::Resources);
|
|
|
|
+ string dir_slade_pk3 = App::path("slade.pk3", App::Dir::User);
|
2016-12-28 20:58:31 +01:00
|
|
|
if (!wxFileExists(dir_slade_pk3))
|
2020-04-18 20:36:37 +02:00
|
|
|
dir_slade_pk3 = App::path("slade.pk3", App::Dir::Data);
|
2016-12-28 20:58:31 +01:00
|
|
|
if (!wxFileExists(dir_slade_pk3))
|
2020-04-18 20:36:37 +02:00
|
|
|
dir_slade_pk3 = App::path("slade.pk3", App::Dir::Executable);
|
2016-12-28 20:58:31 +01:00
|
|
|
if (!wxFileExists(dir_slade_pk3))
|
2020-04-18 20:36:37 +02:00
|
|
|
- dir_slade_pk3 = App::path("slade.pk3", App::Dir::User);
|
2016-12-28 20:58:31 +01:00
|
|
|
- if (!wxFileExists(dir_slade_pk3))
|
|
|
|
dir_slade_pk3 = "slade.pk3";
|
|
|
|
|
|
|
|
// Open slade.pk3
|