From 13d0ec9bea228064dcbca393c90afcb1bbf2ecea Mon Sep 17 00:00:00 2001 From: Alyssa Milburn Date: Thu, 4 Aug 2016 16:19:12 +0200 Subject: POSIX: Add #ifdef guards for DATA_PATH. Thanks to snover for pointing out they should be there. --- backends/platform/sdl/posix/posix.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backends/platform/sdl/posix/posix.cpp b/backends/platform/sdl/posix/posix.cpp index 016a9d44f8..0d5f39736a 100644 --- a/backends/platform/sdl/posix/posix.cpp +++ b/backends/platform/sdl/posix/posix.cpp @@ -142,6 +142,7 @@ Common::String OSystem_POSIX::getDefaultConfigFileName() { } void OSystem_POSIX::addSysArchivesToSearchSet(Common::SearchSet &s, int priority) { +#ifdef DATA_PATH const char *snap = getenv("SNAP"); if (snap) { Common::String dataPath = Common::String(snap) + DATA_PATH; @@ -152,6 +153,7 @@ void OSystem_POSIX::addSysArchivesToSearchSet(Common::SearchSet &s, int priority s.add(dataPath, new Common::FSDirectory(dataNode, 4), priority); } } +#endif // For now, we always add the data path, just in case SNAP doesn't make sense. OSystem_SDL::addSysArchivesToSearchSet(s, priority); -- cgit v1.2.3