From 489fa21a57e8716028e3159551f04841f0366171 Mon Sep 17 00:00:00 2001 From: WrinklyNinja Date: Tue, 13 Aug 2013 14:19:12 +0100 Subject: [PATCH] Tidied up global path definitions. --- src/backend/globals.cpp | 13 +++++++------ src/backend/globals.h | 1 + 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/backend/globals.cpp b/src/backend/globals.cpp index 7f8d530a..a75961f0 100644 --- a/src/backend/globals.cpp +++ b/src/backend/globals.cpp @@ -51,15 +51,16 @@ namespace boss { const unsigned int g_version_patch = 0; //Common paths. - const boost::filesystem::path g_path_readme = "docs/BOSS Readme.html"; - const boost::filesystem::path g_path_libespm_settings = "resources/libespm.yaml"; - const boost::filesystem::path g_path_svn = "resources/svn/svn.exe"; - const boost::filesystem::path g_path_local = GetLocalAppDataPath() / "BOSS"; + const boost::filesystem::path g_path_readme = boost::filesystem::current_path() / "docs" / "BOSS Readme.html"; + const boost::filesystem::path g_path_libespm_settings = boost::filesystem::current_path() / "resources" / "libespm.yaml"; const boost::filesystem::path g_path_css = boost::filesystem::current_path() / "resources" / "style.css"; const boost::filesystem::path g_path_js = boost::filesystem::current_path() / "resources" / "script.js"; const boost::filesystem::path g_path_polyfill = boost::filesystem::current_path() / "resources" / "polyfill.js"; + const boost::filesystem::path g_path_l10n = boost::filesystem::current_path() / "resources" / "l10n"; + const boost::filesystem::path g_path_svn = boost::filesystem::current_path() / "resources" / "svn" / "svn.exe"; + const boost::filesystem::path g_path_graphvis = boost::filesystem::current_path() / "resources" / "graphvis" / "dot.exe"; + const boost::filesystem::path g_path_svgweb = boost::filesystem::current_path() / "resources" / "svgweb" / "svg.js"; + const boost::filesystem::path g_path_local = GetLocalAppDataPath() / "BOSS"; const boost::filesystem::path g_path_settings = g_path_local / "settings.yaml"; const boost::filesystem::path g_path_log = g_path_local / "BOSSDebugLog.txt"; - const boost::filesystem::path g_path_l10n = "resources/l10n"; - const boost::filesystem::path g_path_graphvis = "resources/graphvis/dot.exe"; } diff --git a/src/backend/globals.h b/src/backend/globals.h index 7768efa4..b0433339 100644 --- a/src/backend/globals.h +++ b/src/backend/globals.h @@ -63,6 +63,7 @@ namespace boss { extern const boost::filesystem::path g_path_log; extern const boost::filesystem::path g_path_l10n; extern const boost::filesystem::path g_path_graphvis; + extern const boost::filesystem::path g_path_svgweb; } #endif