POSIX: Add #ifdef guards for DATA_PATH.
Thanks to snover for pointing out they should be there.
This commit is contained in:
parent
266e8e6611
commit
13d0ec9bea
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue