From 53af3dc6700a6e7686fbf2e88cea283d6e335124 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Mon, 28 Jun 2004 00:06:31 +0000 Subject: Enhanced default directory support in the File class; now one can specify arbitrary many default search directories svn-id: r14095 --- sword2/sword2.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'sword2') diff --git a/sword2/sword2.cpp b/sword2/sword2.cpp index 873efcd851..e91ead0895 100644 --- a/sword2/sword2.cpp +++ b/sword2/sword2.cpp @@ -22,6 +22,7 @@ #include "base/gameDetector.h" #include "base/plugins.h" #include "common/config-manager.h" +#include "common/file.h" #include "sword2/sword2.h" #include "sword2/console.h" #include "sword2/controls.h" @@ -101,6 +102,14 @@ Sword2Engine *g_sword2 = NULL; Sword2Engine::Sword2Engine(GameDetector *detector, OSystem *syst) : Engine(syst) { + // Add default file directories + File::addDefaultDirectory(_gameDataPath + "/CLUSTERS/"); + File::addDefaultDirectory(_gameDataPath + "/SWORD2/"); + File::addDefaultDirectory(_gameDataPath + "/VIDEO/"); + File::addDefaultDirectory(_gameDataPath + "/clusters/"); + File::addDefaultDirectory(_gameDataPath + "/sword2/"); + File::addDefaultDirectory(_gameDataPath + "/video/"); + g_sword2 = this; _debugger = NULL; _sound = NULL; -- cgit v1.2.3