File basepk3.diff of Package slade

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(-)

Index: SLADE-3.1.11/src/Archive/ArchiveManager.cpp
===================================================================
--- SLADE-3.1.11.orig/src/Archive/ArchiveManager.cpp
+++ SLADE-3.1.11/src/Archive/ArchiveManager.cpp
@@ -153,14 +153,12 @@ bool ArchiveManager::init()
 	}
 
 	// Find slade3.pk3 directory
-	string dir_slade_pk3 = App::path("slade.pk3", App::Dir::Resources);
+	string dir_slade_pk3 = App::path("slade.pk3", App::Dir::User);
 	if (!wxFileExists(dir_slade_pk3))
 		dir_slade_pk3 = App::path("slade.pk3", App::Dir::Data);
 	if (!wxFileExists(dir_slade_pk3))
 		dir_slade_pk3 = App::path("slade.pk3", App::Dir::Executable);
 	if (!wxFileExists(dir_slade_pk3))
-		dir_slade_pk3 = App::path("slade.pk3", App::Dir::User);
-	if (!wxFileExists(dir_slade_pk3))
 		dir_slade_pk3 = "slade.pk3";
 
 	// Open slade.pk3
openSUSE Build Service is sponsored by