diff options
Diffstat (limited to 'client/main.cpp')
-rw-r--r-- | client/main.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/client/main.cpp b/client/main.cpp index f3c3d3d..f7da59e 100644 --- a/client/main.cpp +++ b/client/main.cpp @@ -33,8 +33,6 @@ int main(int argc, char *argv[]) dir = QString::fromStdString(path.substr(0, p)); } - Logger::Trace("Application path: %s\n", dir.toStdString().c_str()); - // check if client should be update QFileInfo newClient(dir + PathSlash + "client.bin.latest"); if (newClient.exists()) @@ -55,6 +53,10 @@ int main(int argc, char *argv[]) // check if initial config exists (config.cfg) // without it application is useless QFileInfo configInfo(dir + PathSlash + "config.cfg"); + + fprintf(stderr, "%s\n", configInfo.fileName().toStdString().c_str()); + + if (! configInfo.exists()) { Logger::Fatal("Initial configuration file (config.cfg) do not exist!\n"); |