summaryrefslogtreecommitdiff
path: root/community/teeworlds
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-17 19:27:42 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-17 19:27:42 +0000
commit049af7a95b01eba14d33586ad5852dddaf107e53 (patch)
tree3f89f26ef1ec32f03b8842f97077b7d3459ba6d0 /community/teeworlds
parent84837d89991e1e82e5aef8e297541c572ebf2efa (diff)
Fixed
Diffstat (limited to 'community/teeworlds')
-rw-r--r--community/teeworlds/fix_datadir_search.patch36
1 files changed, 0 insertions, 36 deletions
diff --git a/community/teeworlds/fix_datadir_search.patch b/community/teeworlds/fix_datadir_search.patch
deleted file mode 100644
index 19a4ae1e5..000000000
--- a/community/teeworlds/fix_datadir_search.patch
+++ /dev/null
@@ -1,36 +0,0 @@
-diff -r 9582fcee983b -r c1502459a920 src/engine/e_engine.c
---- a/src/engine/e_engine.c Sun Feb 01 20:50:22 2009 +0100
-+++ b/src/engine/e_engine.c Sun Feb 01 21:37:17 2009 +0100
-@@ -539,14 +539,15 @@
- }
-
- /* 2) use data-dir in PWD if present */
-- if(fs_is_dir("data"))
-+ /* test subdir "/mapres" to reject unrelated "data" dir in PWD */
-+ if(fs_is_dir("data/mapres"))
- {
- strcpy(datadir, "data");
- return 0;
- }
-
- /* 3) use compiled-in data-dir if present */
-- if (fs_is_dir(DATA_DIR))
-+ if (fs_is_dir(DATA_DIR "/mapres"))
- {
- strcpy(datadir, DATA_DIR);
- return 0;
-@@ -572,9 +573,11 @@
- /* 5) check for all default locations */
- {
- const char *sdirs[] = {
-- "/usr/share/teeworlds",
-- "/usr/local/share/teeworlds"
-- "/opt/teeworlds"
-+ "/usr/share/teeworlds/data",
-+ "/usr/share/games/teeworlds/data",
-+ "/usr/local/share/teeworlds/data",
-+ "/usr/local/share/games/teeworlds/data",
-+ "/opt/teeworlds/data"
- };
- const int sdirs_count = sizeof(sdirs) / sizeof(sdirs[0]);
-