From 397b9a764b435a7b8c410bd9edc445009a7a9564 Mon Sep 17 00:00:00 2001 From: Dominik Geyer Date: Wed, 1 Oct 2008 17:16:22 +0000 Subject: data-dir autodetection; data-dir override; compiled-in data-dir; messagebox if detection fails; does chdir into data-dir --- src/game/client/components/skins.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/game/client/components/skins.cpp') diff --git a/src/game/client/components/skins.cpp b/src/game/client/components/skins.cpp index eae45c4d..b12bc1cf 100644 --- a/src/game/client/components/skins.cpp +++ b/src/game/client/components/skins.cpp @@ -24,7 +24,7 @@ void SKINS::skinscan(const char *name, int is_dir, void *user) return; char buf[512]; - str_format(buf, sizeof(buf), "data/skins/%s", name); + str_format(buf, sizeof(buf), "skins/%s", name); IMAGE_INFO info; if(!gfx_load_png(&info, buf)) { @@ -119,7 +119,7 @@ void SKINS::init() { // load skins num_skins = 0; - fs_listdir("data/skins", skinscan, this); + fs_listdir("skins", skinscan, this); } int SKINS::num() -- cgit 1.4.1