From 39fa77af733934971360e8ca3419f9c77c05126e Mon Sep 17 00:00:00 2001 From: WrinklyNinja Date: Tue, 11 Jun 2013 14:31:21 +0100 Subject: [PATCH] Forgot to add file for last commit. --- README.md | 17 ++++++++---- src/backend/globals.cpp | 58 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 70 insertions(+), 5 deletions(-) create mode 100644 src/backend/globals.cpp diff --git a/README.md b/README.md index d800ad82..c49a703a 100644 --- a/README.md +++ b/README.md @@ -109,17 +109,15 @@ Leandro Conde, Psymon, Loucifer, Torrello, Malonn, Skyline, Sharlikran, Red Eye, iyumichan, Peste, Calen Ellefson, SilentSpike, Arkangel, zyp, v111, Chevenga, rowynyew -LOOT will be a self-contained installation that can be dropped anywhere. It will have an installer option that also installs some Start menu shortcuts and a Registry entry, but these will not be required for LOOT to function. - -Directory structure will be: +BOSSv3's directory structure is split between a folder in %LOCALAPPDATA% and a folder wherever the user wants it: +Program Files (or wherever): ``` -/ +BOSS/ BOSS.exe resource/ l10n/ ...translation files... - settings.yaml libespm.yaml ...CSS and JS files... docs/ @@ -127,9 +125,18 @@ Directory structure will be: ...readme images... BOSS Readme.html ...other docs... +``` + +%LOCALAPPDATA%: +``` +BOSS/ + settings.yaml + BOSSDebugLog.txt Oblivion/ masterlist.yaml userlist.yaml report.html ...other game folders with same structure as Oblivion... ``` + +BOSSv3's installer will also add some Start menu shortucts and a Registry entry, but these are not required for BOSS to function. diff --git a/src/backend/globals.cpp b/src/backend/globals.cpp new file mode 100644 index 00000000..16ade454 --- /dev/null +++ b/src/backend/globals.cpp @@ -0,0 +1,58 @@ +/* BOSS + + A plugin load order optimiser for games that use the esp/esm plugin system. + + Copyright (C) 2012 WrinklyNinja + + This file is part of BOSS. + + BOSS is free software: you can redistribute + it and/or modify it under the terms of the GNU General Public License + as published by the Free Software Foundation, either version 3 of + the License, or (at your option) any later version. + + BOSS is distributed in the hope that it will + be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with BOSS. If not, see + . +*/ + +#include "globals.h" +#include "helpers.h" + +namespace boss { + + //Game values. + const unsigned int GAME_AUTODETECT = 0; + const unsigned int GAME_TES4 = 1; + const unsigned int GAME_TES5 = 2; + const unsigned int GAME_FO3 = 3; + const unsigned int GAME_FONV = 4; + + //Message types. + const unsigned int MESSAGE_SAY = 0; + const unsigned int MESSAGE_WARN = 1; + const unsigned int MESSAGE_ERROR = 2; + const unsigned int MESSAGE_TAG = 3; + + //Languages + const unsigned int LANG_AUTO = 0; + const unsigned int LANG_ENG = 1; + + //Version numbers. + const unsigned int VERSION_MAJOR = 3; + const unsigned int VERSION_MINOR = 0; + const unsigned int VERSION_PATCH = 0; + + //Common paths. + const boost::filesystem::path readme_path = "Docs/BOSS Readme.html"; + const boost::filesystem::path libespm_options_path = "resources/libespm.yaml"; + const boost::filesystem::path svn_path = "resources/svn/svn.exe"; + const boost::filesystem::path local_path = GetLocalAppDataPath() / "BOSS"; + const boost::filesystem::path settings_path = local_path / "settings.yaml"; + const boost::filesystem::path log_path = local_path / "BOSSDebugLog.txt"; +}