Package: caveexpress / 2.4+git20160609-3

dataDir.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: Markus Koschany <apo@debian.org>
Date: Fri, 10 Jun 2016 07:58:21 +0200
Subject: dataDir

Fix _dataDir variable otherwise the game won't start.
---
 src/modules/common/FileSystem.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/modules/common/FileSystem.cpp b/src/modules/common/FileSystem.cpp
index 763f48d..b6a5bb5 100644
--- a/src/modules/common/FileSystem.cpp
+++ b/src/modules/common/FileSystem.cpp
@@ -24,6 +24,7 @@ FileSystem::FileSystem () :
 	if (!string::endsWith(_dataDir, "/")) {
 		_dataDir += "/";
 	}
+	_dataDir += Singleton<Application>::getInstance().getName() + "/";
 #endif
 	registerURL("maps", getMapsDir());
 	registerURL("textures", getTexturesDir());