diff options
author | unknown <b0ris@b0ris-satellite.(none)> | 2012-01-16 02:21:03 +0200 |
---|---|---|
committer | unknown <b0ris@b0ris-satellite.(none)> | 2012-01-16 02:21:03 +0200 |
commit | d3f5a1e20f159287764d3090ad0024ef42812709 (patch) | |
tree | 8ba8415256c2c5dd8f62378b177fb5303b4497e6 /client/main.cpp | |
parent | 0822cf0b82aff2e265a78f61fcb976c300c44ace (diff) |
Proxifier's config lookup
Diffstat (limited to 'client/main.cpp')
-rw-r--r-- | client/main.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/client/main.cpp b/client/main.cpp index f7da59e..7c8be32 100644 --- a/client/main.cpp +++ b/client/main.cpp @@ -20,7 +20,6 @@ ProxyClientApp *this_app; int main(int argc, char *argv[]) { Logger::Info("Starting client application\n"); - string path = argv[0]; QString dir; size_t p = path.find_last_of(PathSlash); @@ -34,6 +33,7 @@ int main(int argc, char *argv[]) } // check if client should be update + fprintf(stderr, "%s\n", dir.toStdString().c_str()); QFileInfo newClient(dir + PathSlash + "client.bin.latest"); if (newClient.exists()) { @@ -49,14 +49,9 @@ int main(int argc, char *argv[]) Logger::Error("Can't launch updater to update client app\n"); } } - // 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"); |