try to read defaults from local dir

dev
Tom Early 2 weeks ago
parent f24eac8344
commit dba02d1a8a

@ -78,7 +78,12 @@ bool CQnetConfigure::Initialize(const std::string &file)
std::string filename(CFG_DIR);
filename.append("/defaults");
if (ReadConfigFile(filename.c_str(), defaults))
return true;
{
if (ReadConfigFile("./defaults", defaults))
return true;
else
printf("Successfully read ./defaults!]n");
}
return ReadConfigFile(file, cfg);
}

@ -50,7 +50,7 @@
#include "QnetGateway.h"
#include "Utilities.h"
const std::string GW_VERSION("QnetGateway-40411");
const std::string GW_VERSION("QnetGateway-60706");
int CQnetGateway::FindIndex(const int i) const
{

Loading…
Cancel
Save

Powered by TurnKey Linux.