From dba02d1a8aed84f62ee792ceb2e662313d86d890 Mon Sep 17 00:00:00 2001 From: Tom Early Date: Mon, 6 Jul 2026 07:45:25 -0700 Subject: [PATCH] try to read defaults from local dir --- QnetConfigure.cpp | 7 ++++++- QnetGateway.cpp | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/QnetConfigure.cpp b/QnetConfigure.cpp index 3be2fc3..5193e4e 100644 --- a/QnetConfigure.cpp +++ b/QnetConfigure.cpp @@ -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); } diff --git a/QnetGateway.cpp b/QnetGateway.cpp index f08f0e3..ab93384 100644 --- a/QnetGateway.cpp +++ b/QnetGateway.cpp @@ -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 {