Commit d9e1812d authored by salix5's avatar salix5

expansions

parent 1d2a19f2
......@@ -24,7 +24,7 @@ Game* mainGame;
bool Game::Initialize() {
_finddata_t fdata;
long fhandle;
char fpath[1000] = "expansions\\";
char fpath[1000] = "./expansions/";
srand(time(0));
LoadConfig();
irr::SIrrlichtCreationParameters params = irr::SIrrlichtCreationParameters();
......@@ -60,12 +60,12 @@ bool Game::Initialize() {
return false;
if(!dataManager.LoadStrings("strings.conf"))
return false;
fhandle = _findfirst("expansions\\*.cdb", &fdata);
fhandle = _findfirst("./expansions/*.cdb", &fdata);
if(fhandle != -1) {
strcat(fpath, fdata.name);
dataManager.LoadDB(fpath);
while(_findnext(fhandle, &fdata) != -1) {
strcpy(fpath, "expansions\\");
strcpy(fpath, "./expansions/");
strcat(fpath, fdata.name);
dataManager.LoadDB(fpath);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment