diff --git a/src/api/api.cpp b/src/api/api.cpp
index 9413fc65..b2fefe08 100644
--- a/src/api/api.cpp
+++ b/src/api/api.cpp
@@ -1,24 +1,24 @@
-/* BOSS
+/* LOOT
A load order optimisation tool for Oblivion, Skyrim, Fallout 3 and
Fallout: New Vegas.
Copyright (C) 2013-2014 WrinklyNinja
- This file is part of BOSS.
+ This file is part of LOOT.
- BOSS is free software: you can redistribute
+ LOOT 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
+ LOOT 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
+ along with LOOT. If not, see
.
*/
@@ -67,13 +67,13 @@ const unsigned int boss_game_tes5 = boss::g_game_tes5;
const unsigned int boss_game_fo3 = boss::g_game_fo3;
const unsigned int boss_game_fonv = boss::g_game_fonv;
-// BOSS message types.
+// LOOT message types.
const unsigned int boss_message_say = boss::g_message_say;
const unsigned int boss_message_warn = boss::g_message_warn;
const unsigned int boss_message_error = boss::g_message_error;
const unsigned int boss_message_tag = boss::g_message_tag;
-// BOSS message languages.
+// LOOT message languages.
const unsigned int boss_lang_any = boss::g_lang_any;
const unsigned int boss_lang_english = boss::g_lang_english;
const unsigned int boss_lang_spanish = boss::g_lang_spanish;
@@ -83,7 +83,7 @@ const unsigned int boss_lang_chinese = boss::g_lang_chinese;
const unsigned int boss_lang_polish = boss::g_lang_polish;
const unsigned int boss_lang_brazilian_portuguese = boss::g_lang_brazilian_portuguese;
-// BOSS cleanliness codes.
+// LOOT cleanliness codes.
const unsigned int boss_needs_cleaning_no = 0;
const unsigned int boss_needs_cleaning_yes = 1;
const unsigned int boss_needs_cleaning_unknown = 2;
@@ -166,7 +166,7 @@ unsigned int c_error(const unsigned int code, const std::string& what) {
// Outputs a string giving the details of the last time an error or
// warning return code was returned by a function. The string exists
// until this function is called again or until CleanUpAPI is called.
-BOSS_API unsigned int boss_get_error_message (const char ** const message) {
+LOOT_API unsigned int boss_get_error_message (const char ** const message) {
if (message == NULL)
return c_error(boss_error_invalid_args, "Null message pointer passed.");
@@ -176,7 +176,7 @@ BOSS_API unsigned int boss_get_error_message (const char ** const message) {
}
// Frees memory allocated to error string.
-BOSS_API void boss_cleanup () {
+LOOT_API void boss_cleanup () {
delete [] extMessageStr;
extMessageStr = NULL;
}
@@ -186,16 +186,16 @@ BOSS_API void boss_cleanup () {
// Version Functions
//////////////////////////////
-// Returns whether this version of BOSS supports the API from the given
-// BOSS version. Abstracts BOSS API stability policy away from clients.
-BOSS_API bool boss_is_compatible (const unsigned int versionMajor, const unsigned int versionMinor, const unsigned int versionPatch) {
+// Returns whether this version of LOOT supports the API from the given
+// LOOT version. Abstracts LOOT API stability policy away from clients.
+LOOT_API bool boss_is_compatible (const unsigned int versionMajor, const unsigned int versionMinor, const unsigned int versionPatch) {
return versionMajor == boss::g_version_major && versionMinor == boss::g_version_minor;
}
-// Returns the version string for this version of BOSS.
+// Returns the version string for this version of LOOT.
// The string exists until this function is called again or until
// CleanUpAPI is called.
-BOSS_API unsigned int boss_get_version (unsigned int * const versionMajor, unsigned int * const versionMinor, unsigned int * const versionPatch) {
+LOOT_API unsigned int boss_get_version (unsigned int * const versionMajor, unsigned int * const versionMinor, unsigned int * const versionPatch) {
if (versionMajor == NULL || versionMinor == NULL || versionPatch == NULL)
return c_error(boss_error_invalid_args, "Null pointer passed.");
@@ -218,7 +218,7 @@ BOSS_API unsigned int boss_get_version (unsigned int * const versionMajor, unsig
// plugins.txt and loadorder.txt (if they both exist) are in sync. If
// dataPath == NULL then the API will attempt to detect the data path of
// the specified game.
-BOSS_API unsigned int boss_create_db (boss_db * const db, const unsigned int clientGame, const char * const gamePath) {
+LOOT_API unsigned int boss_create_db (boss_db * const db, const unsigned int clientGame, const char * const gamePath) {
if (db == NULL || (clientGame != boss_game_tes4 && clientGame != boss_game_tes5 && clientGame != boss_game_fo3 && clientGame != boss_game_fonv))
return c_error(boss_error_invalid_args, "Null pointer passed.");
@@ -255,7 +255,7 @@ BOSS_API unsigned int boss_create_db (boss_db * const db, const unsigned int cli
}
// Destroys the given DB, freeing any memory allocated as part of its use.
-BOSS_API void boss_destroy_db (boss_db db) {
+LOOT_API void boss_destroy_db (boss_db db) {
delete db;
}
@@ -268,7 +268,7 @@ BOSS_API void boss_destroy_db (boss_db db) {
// Can be called multiple times. On error, the database is unchanged.
// Paths are case-sensitive if the underlying filesystem is case-sensitive.
// masterlistPath and userlistPath are files.
-BOSS_API unsigned int boss_load_lists (boss_db db, const char * const masterlistPath,
+LOOT_API unsigned int boss_load_lists (boss_db db, const char * const masterlistPath,
const char * const userlistPath) {
if (db == NULL || masterlistPath == NULL)
return c_error(boss_error_invalid_args, "Null pointer passed.");
@@ -345,7 +345,7 @@ BOSS_API unsigned int boss_load_lists (boss_db db, const char * const masterlist
// is called. Repeated calls re-evaluate the masterlist from scratch each time,
// ignoring the results of any previous evaluations. Paths are case-sensitive
// if the underlying filesystem is case-sensitive.
-BOSS_API unsigned int boss_eval_lists (boss_db db, const unsigned int language) {
+LOOT_API unsigned int boss_eval_lists (boss_db db, const unsigned int language) {
if (db == NULL)
return c_error(boss_error_invalid_args, "Null pointer passed.");
@@ -421,7 +421,7 @@ BOSS_API unsigned int boss_eval_lists (boss_db db, const unsigned int language)
// Returns an array of the Bash Tags encounterred when loading the masterlist
// and userlist, and the number of tags in the returned array. The array and
// its contents are static and should not be freed by the client.
-BOSS_API unsigned int boss_get_tag_map (boss_db db, char *** const tagMap, size_t * const numTags) {
+LOOT_API unsigned int boss_get_tag_map (boss_db db, char *** const tagMap, size_t * const numTags) {
if (db == NULL || tagMap == NULL || numTags == NULL)
return c_error(boss_error_invalid_args, "Null pointer passed.");
@@ -481,13 +481,13 @@ BOSS_API unsigned int boss_get_tag_map (boss_db db, char *** const tagMap, size_
}
// Returns arrays of Bash Tag UIDs for Bash Tags suggested for addition and removal
-// by BOSS's masterlist and userlist, and the number of tags in each array.
+// by LOOT's masterlist and userlist, and the number of tags in each array.
// The returned arrays are valid until the db is destroyed or until the Load
// function is called. The arrays should not be freed by the client. modName is
// case-insensitive. If no Tags are found for an array, the array pointer (*tagIds)
// will be NULL. The userlistModified bool is true if the userlist contains Bash Tag
// suggestion message additions.
-BOSS_API unsigned int boss_get_plugin_tags (boss_db db, const char * const plugin,
+LOOT_API unsigned int boss_get_plugin_tags (boss_db db, const char * const plugin,
unsigned int ** const tagIds_added,
size_t * const numTags_added,
unsigned int ** const tagIds_removed,
@@ -581,7 +581,7 @@ BOSS_API unsigned int boss_get_plugin_tags (boss_db db, const char * const plugi
// Returns the messages attached to the given plugin. Messages are valid until Load,
// DestroyBossDb or GetPluginMessages are next called. plugin is case-insensitive.
// If no messages are attached, *messages will be NULL and numMessages will equal 0.
-BOSS_API unsigned int boss_get_plugin_messages (boss_db db, const char * const plugin,
+LOOT_API unsigned int boss_get_plugin_messages (boss_db db, const char * const plugin,
boss_message ** const messages,
size_t * const numMessages) {
if (db == NULL || plugin == NULL || messages == NULL || numMessages == NULL)
@@ -630,7 +630,7 @@ BOSS_API unsigned int boss_get_plugin_messages (boss_db db, const char * const p
return boss_ok;
}
-BOSS_API unsigned int boss_get_dirty_info(boss_db db, const char * const plugin, unsigned int * const needsCleaning) {
+LOOT_API unsigned int boss_get_dirty_info(boss_db db, const char * const plugin, unsigned int * const needsCleaning) {
if (db == NULL || plugin == NULL || needsCleaning == NULL)
return c_error(boss_error_invalid_args, "Null pointer passed.");
@@ -660,7 +660,7 @@ BOSS_API unsigned int boss_get_dirty_info(boss_db db, const char * const plugin,
// and/or dirty messages, plus the Tag suggestions and/or messages themselves and their
// conditions, in order to create the Wrye Bash taglist. outputFile is the path to use
// for output. If outputFile already exists, it will only be overwritten if overwrite is true.
-BOSS_API unsigned int boss_write_minimal_list (boss_db db, const char * const outputFile, const bool overwrite) {
+LOOT_API unsigned int boss_write_minimal_list (boss_db db, const char * const outputFile, const bool overwrite) {
if (db == NULL || outputFile == NULL)
return c_error(boss_error_invalid_args, "Null pointer passed.");
diff --git a/src/api/api.h b/src/api/api.h
index 5fb27242..98b22f5f 100644
--- a/src/api/api.h
+++ b/src/api/api.h
@@ -1,24 +1,24 @@
-/* BOSS
+/* LOOT
A load order optimisation tool for Oblivion, Skyrim, Fallout 3 and
Fallout: New Vegas.
Copyright (C) 2013-2014 WrinklyNinja
- This file is part of BOSS.
+ This file is part of LOOT.
- BOSS is free software: you can redistribute
+ LOOT 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
+ LOOT 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
+ along with LOOT. If not, see
.
*/
@@ -26,11 +26,11 @@
@file api.h
@brief This file contains the API frontend.
- @note The BOSS API is *not* thread safe. Thread safety is a goal, but one that has not yet been achieved. Bear this in mind if using it in a multi-threaded client.
+ @note The LOOT API is *not* thread safe. Thread safety is a goal, but one that has not yet been achieved. Bear this in mind if using it in a multi-threaded client.
@section var_sec Variable Types
- The BOSS API uses character strings and integers for information input/output.
+ The LOOT API uses character strings and integers for information input/output.
- All strings are null-terminated byte character strings encoded in UTF-8.
- All codes are unsigned integers at least 16 bits in size.
- All array sizes are unsigned integers at least 16 bits in size.
@@ -38,15 +38,15 @@
@section memory_sec Memory Management
- The BOSS API manages the memory of strings and arrays it returns internally, so such strings and arrays should not be deallocated by the client.
+ The LOOT API manages the memory of strings and arrays it returns internally, so such strings and arrays should not be deallocated by the client.
Data returned by a function lasts until a function is called which returns data of the same type (eg. a string is stored until the client calls another function which returns a string, an integer array lasts until another integer array is returned, etc.).
All allocated memory is freed when boss_destroy_db() is called, except the string allocated by boss_get_error_message(), which must be freed by calling boss_cleanup().
*/
-#ifndef __BOSS_API_H__
-#define __BOSS_API_H__
+#ifndef __LOOT_API_H__
+#define __LOOT_API_H__
#include
@@ -65,19 +65,19 @@
#endif
// set up dll import/export decorators
-// when compiling the dll on windows, ensure BOSS_EXPORT is defined. clients
+// when compiling the dll on windows, ensure LOOT_EXPORT is defined. clients
// that use this header do not need to define anything to import the symbols
// properly.
#if defined(_WIN32) || defined(_WIN64)
-# ifdef BOSS_STATIC
-# define BOSS_API
-# elif defined BOSS_EXPORT
-# define BOSS_API __declspec(dllexport)
+# ifdef LOOT_STATIC
+# define LOOT_API
+# elif defined LOOT_EXPORT
+# define LOOT_API __declspec(dllexport)
# else
-# define BOSS_API __declspec(dllimport)
+# define LOOT_API __declspec(dllimport)
# endif
#else
-# define BOSS_API
+# define LOOT_API
#endif
#ifdef __cplusplus
@@ -91,7 +91,7 @@ extern "C"
////////////////////////
/**
- @brief A structure that holds all game-specific data used by the BOSS API.
+ @brief A structure that holds all game-specific data used by the LOOT API.
@details Used to keep each game's data independent. Abstracts the definition of the API's internal state while still providing type safety across the library. Multiple handles can also be made for each game, though it should be kept in mind that the API is not thread-safe.
*/
typedef struct _boss_db_int * boss_db;
@@ -113,25 +113,25 @@ typedef struct {
*************************/
///@{
-BOSS_API extern const unsigned int boss_ok; ///< The function completed successfully.
-BOSS_API extern const unsigned int boss_error_liblo_error; ///< There was an error in performing a load order operation.
-BOSS_API extern const unsigned int boss_error_file_write_fail; ///< A file could not be written to.
-BOSS_API extern const unsigned int boss_error_parse_fail; ///< There was an error parsing the file.
-BOSS_API extern const unsigned int boss_error_condition_eval_fail; ///< There was an error evaluating the conditionals in a metadata file.
-BOSS_API extern const unsigned int boss_error_regex_eval_fail; ///< There was an error evaluating the regular expressions in a metadata file.
-BOSS_API extern const unsigned int boss_error_no_mem; ///< The API was unable to allocate the required memory.
-BOSS_API extern const unsigned int boss_error_invalid_args; ///< Invalid arguments were given for the function.
-BOSS_API extern const unsigned int boss_error_no_tag_map; ///< No Bash Tag map has been generated yet.
-BOSS_API extern const unsigned int boss_error_path_not_found; ///< A file or folder path could not be found.
-BOSS_API extern const unsigned int boss_error_no_game_detected; ///< The given game could not be found.
-BOSS_API extern const unsigned int boss_error_windows_error; ///< An error occurred during a call to the Windows API.
-BOSS_API extern const unsigned int boss_error_sorting_error; ///< An error occurred while sorting plugins.
+LOOT_API extern const unsigned int boss_ok; ///< The function completed successfully.
+LOOT_API extern const unsigned int boss_error_liblo_error; ///< There was an error in performing a load order operation.
+LOOT_API extern const unsigned int boss_error_file_write_fail; ///< A file could not be written to.
+LOOT_API extern const unsigned int boss_error_parse_fail; ///< There was an error parsing the file.
+LOOT_API extern const unsigned int boss_error_condition_eval_fail; ///< There was an error evaluating the conditionals in a metadata file.
+LOOT_API extern const unsigned int boss_error_regex_eval_fail; ///< There was an error evaluating the regular expressions in a metadata file.
+LOOT_API extern const unsigned int boss_error_no_mem; ///< The API was unable to allocate the required memory.
+LOOT_API extern const unsigned int boss_error_invalid_args; ///< Invalid arguments were given for the function.
+LOOT_API extern const unsigned int boss_error_no_tag_map; ///< No Bash Tag map has been generated yet.
+LOOT_API extern const unsigned int boss_error_path_not_found; ///< A file or folder path could not be found.
+LOOT_API extern const unsigned int boss_error_no_game_detected; ///< The given game could not be found.
+LOOT_API extern const unsigned int boss_error_windows_error; ///< An error occurred during a call to the Windows API.
+LOOT_API extern const unsigned int boss_error_sorting_error; ///< An error occurred while sorting plugins.
/**
@brief Matches the value of the highest-numbered return code.
@details Provided in case clients wish to incorporate additional return codes in their implementation and desire some method of avoiding value conflicts.
*/
-BOSS_API extern const unsigned int boss_return_max;
+LOOT_API extern const unsigned int boss_return_max;
///@}
@@ -141,10 +141,10 @@ BOSS_API extern const unsigned int boss_return_max;
***********************/
///@{
-BOSS_API extern const unsigned int boss_game_tes4; ///< Game code for The Elder Scrolls IV: Oblivion.
-BOSS_API extern const unsigned int boss_game_tes5; ///< Game code for The Elder Scrolls V: Skyrim.
-BOSS_API extern const unsigned int boss_game_fo3; ///< Game code for Fallout 3.
-BOSS_API extern const unsigned int boss_game_fonv; ///< Game code for Fallout: New Vegas.
+LOOT_API extern const unsigned int boss_game_tes4; ///< Game code for The Elder Scrolls IV: Oblivion.
+LOOT_API extern const unsigned int boss_game_tes5; ///< Game code for The Elder Scrolls V: Skyrim.
+LOOT_API extern const unsigned int boss_game_fo3; ///< Game code for Fallout 3.
+LOOT_API extern const unsigned int boss_game_fonv; ///< Game code for Fallout: New Vegas.
///@}
@@ -153,15 +153,15 @@ BOSS_API extern const unsigned int boss_game_fonv; ///< Game code for Fallout:
@brief Used with the boss_message structure.
*******************************/
///@{
-BOSS_API extern const unsigned int boss_message_say; ///< Denotes a generic note-type message.
-BOSS_API extern const unsigned int boss_message_warn; ///< Denotes a warning message.
-BOSS_API extern const unsigned int boss_message_error; ///< Denotes an error message.
+LOOT_API extern const unsigned int boss_message_say; ///< Denotes a generic note-type message.
+LOOT_API extern const unsigned int boss_message_warn; ///< Denotes a warning message.
+LOOT_API extern const unsigned int boss_message_error; ///< Denotes an error message.
/**
@brief Denites a Bash Tag suggestion message.
@details This type should never be seen client-side as it is only used during conversion between internal Bash Tag and message structures, but it is provided just in case.
*/
-BOSS_API extern const unsigned int boss_message_tag;
+LOOT_API extern const unsigned int boss_message_tag;
///@}
@@ -170,14 +170,14 @@ BOSS_API extern const unsigned int boss_message_tag;
@brief Used with boss_eval_lists().
***********************************/
///@{
-BOSS_API extern const unsigned int boss_lang_any; ///< Tells the API to select messages of any language.
-BOSS_API extern const unsigned int boss_lang_english; ///< Tells the API to preferentially select English messages.
-BOSS_API extern const unsigned int boss_lang_spanish; ///< Tells the API to preferentially select Spanish messages.
-BOSS_API extern const unsigned int boss_lang_russian; ///< Tells the API to preferentially select Russian messages.
-BOSS_API extern const unsigned int boss_lang_french; ///< Tells the API to preferentially select French messages.
-BOSS_API extern const unsigned int boss_lang_chinese; ///< Tells the API to preferentially select Chinese messages.
-BOSS_API extern const unsigned int boss_lang_polish; ///< Tells the API to preferentially select Polish messages.
-BOSS_API extern const unsigned int boss_lang_brazilian_portuguese; ///< Tells the API to preferentially select Polish messages.
+LOOT_API extern const unsigned int boss_lang_any; ///< Tells the API to select messages of any language.
+LOOT_API extern const unsigned int boss_lang_english; ///< Tells the API to preferentially select English messages.
+LOOT_API extern const unsigned int boss_lang_spanish; ///< Tells the API to preferentially select Spanish messages.
+LOOT_API extern const unsigned int boss_lang_russian; ///< Tells the API to preferentially select Russian messages.
+LOOT_API extern const unsigned int boss_lang_french; ///< Tells the API to preferentially select French messages.
+LOOT_API extern const unsigned int boss_lang_chinese; ///< Tells the API to preferentially select Chinese messages.
+LOOT_API extern const unsigned int boss_lang_polish; ///< Tells the API to preferentially select Polish messages.
+LOOT_API extern const unsigned int boss_lang_brazilian_portuguese; ///< Tells the API to preferentially select Polish messages.
///@}
/*********************************//**
@@ -185,9 +185,9 @@ BOSS_API extern const unsigned int boss_lang_brazilian_portuguese; ///< Tells t
@brief Used with boss_get_dirty_message().
*************************************/
///@{
-BOSS_API extern const unsigned int boss_needs_cleaning_no; ///< Denotes that the plugin queried does not need cleaning.
-BOSS_API extern const unsigned int boss_needs_cleaning_yes; ///< Denotes that the plugin queried needs cleaning.
-BOSS_API extern const unsigned int boss_needs_cleaning_unknown; ///< Denotes that the API is unable to determine whether or not the plugin queried needs cleaning.
+LOOT_API extern const unsigned int boss_needs_cleaning_no; ///< Denotes that the plugin queried does not need cleaning.
+LOOT_API extern const unsigned int boss_needs_cleaning_yes; ///< Denotes that the plugin queried needs cleaning.
+LOOT_API extern const unsigned int boss_needs_cleaning_unknown; ///< Denotes that the API is unable to determine whether or not the plugin queried needs cleaning.
///@}
@@ -203,12 +203,12 @@ BOSS_API extern const unsigned int boss_needs_cleaning_unknown; ///< Denotes th
@param details A pointer to the error details string outputted by the function.
@returns A return code.
*/
-BOSS_API unsigned int boss_get_error_message (const char ** const message);
+LOOT_API unsigned int boss_get_error_message (const char ** const message);
/**
@brief Frees the memory allocated to the last error details string.
*/
-BOSS_API void boss_cleanup ();
+LOOT_API void boss_cleanup ();
///@}
@@ -226,7 +226,7 @@ BOSS_API void boss_cleanup ();
@param versionPatch The patch version number to check.
@returns True if the API versions are compatible, false otherwise.
*/
-BOSS_API bool boss_is_compatible (const unsigned int versionMajor, const unsigned int versionMinor, const unsigned int versionPatch);
+LOOT_API bool boss_is_compatible (const unsigned int versionMajor, const unsigned int versionMinor, const unsigned int versionPatch);
/**
@brief Gets the API version.
@@ -235,7 +235,7 @@ BOSS_API bool boss_is_compatible (const unsigned int versionMajor, const unsigne
@param versionMinor A pointer to the minor version number.
@param versionPatch A pointer to the patch version number.
*/
-BOSS_API unsigned int boss_get_version (unsigned int * const versionMajor, unsigned int * const versionMinor, unsigned int * const versionPatch);
+LOOT_API unsigned int boss_get_version (unsigned int * const versionMajor, unsigned int * const versionMinor, unsigned int * const versionPatch);
/***************************************//**
@@ -251,14 +251,14 @@ BOSS_API unsigned int boss_get_version (unsigned int * const versionMajor, unsig
@param gamePath The relative or absolute path to the game folder, ot `NULL`. If `NULL`, the API will attempt to detect the data path of the specified game.
@returns A return code.
*/
-BOSS_API unsigned int boss_create_db (boss_db * const db, const unsigned int clientGame, const char * const gamePath);
+LOOT_API unsigned int boss_create_db (boss_db * const db, const unsigned int clientGame, const char * const gamePath);
/**
@brief Destroy an existing database handle.
@details Destroys the given database handle, freeing up memory allocated during its use, excluding any memory allocated to error messages.
@param db The database handle to destroy.
*/
-BOSS_API void boss_destroy_db (boss_db db);
+LOOT_API void boss_destroy_db (boss_db db);
///@}
@@ -276,7 +276,7 @@ BOSS_API void boss_destroy_db (boss_db db);
@param userlistPath A string containing the relative or absolute path to the userlist file that should be loaded, or `NULL`. If `NULL`, no userlist will be loaded. The API only upports loading v3 userlists.
@returns A return code.
*/
-BOSS_API unsigned int boss_load_lists (boss_db db, const char * const masterlistPath,
+LOOT_API unsigned int boss_load_lists (boss_db db, const char * const masterlistPath,
const char * const userlistPath);
/**
@@ -286,7 +286,7 @@ BOSS_API unsigned int boss_load_lists (boss_db db, const char * const masterlist
@param language The language code that is used for message language comparisons.
@returns A return code.
*/
-BOSS_API unsigned int boss_eval_lists (boss_db db, const unsigned int language);
+LOOT_API unsigned int boss_eval_lists (boss_db db, const unsigned int language);
///@}
@@ -304,7 +304,7 @@ BOSS_API unsigned int boss_eval_lists (boss_db db, const unsigned int language);
@param numTags A pointer to the size of the outputted array. If no Bash Tags are suggested, this will be `0`.
@returns A return code.
*/
-BOSS_API unsigned int boss_get_tag_map (boss_db db, char *** const tagMap, size_t * const numTags);
+LOOT_API unsigned int boss_get_tag_map (boss_db db, char *** const tagMap, size_t * const numTags);
/**
@brief Outputs the Bash Tags suggested for addition and removal by the database for the given plugin.
@@ -318,7 +318,7 @@ BOSS_API unsigned int boss_get_tag_map (boss_db db, char *** const tagMap, size_
@param userlistModified `true` if the Bash Tag suggestions were modified by the data in the userlist, `false` otherwise.
@returns A return code.
*/
-BOSS_API unsigned int boss_get_plugin_tags (boss_db db, const char * const plugin,
+LOOT_API unsigned int boss_get_plugin_tags (boss_db db, const char * const plugin,
unsigned int ** const tags_added,
size_t * const numTags_added,
unsigned int ** const tags_removed,
@@ -333,7 +333,7 @@ BOSS_API unsigned int boss_get_plugin_tags (boss_db db, const char * const plugi
@param numMessages A pointer to the size of the outputted array. If no messages are outputted, this will be `0`.
@returns A return code.
*/
-BOSS_API unsigned int boss_get_plugin_messages (boss_db db, const char * const plugin,
+LOOT_API unsigned int boss_get_plugin_messages (boss_db db, const char * const plugin,
boss_message ** const messages,
size_t * const numMessages);
@@ -347,7 +347,7 @@ BOSS_API unsigned int boss_get_plugin_messages (boss_db db, const char * const p
@returns A return code.
*/
-BOSS_API unsigned int boss_get_dirty_info (boss_db db, const char * const plugin,
+LOOT_API unsigned int boss_get_dirty_info (boss_db db, const char * const plugin,
unsigned int * const needsCleaning);
/**
@@ -357,7 +357,7 @@ BOSS_API unsigned int boss_get_dirty_info (boss_db db, const char * const plugin
@param overwrite If `false` and `outputFile` already exists, no data will be written. Otherwise, data will be written.
@returns A return code.
*/
-BOSS_API unsigned int boss_write_minimal_list (boss_db db, const char * const outputFile, const bool overwrite);
+LOOT_API unsigned int boss_write_minimal_list (boss_db db, const char * const outputFile, const bool overwrite);
///@}
diff --git a/src/backend/error.h b/src/backend/error.h
index 496e66ed..393f275e 100644
--- a/src/backend/error.h
+++ b/src/backend/error.h
@@ -1,29 +1,29 @@
-/* BOSS
+/* LOOT
A load order optimisation tool for Oblivion, Skyrim, Fallout 3 and
Fallout: New Vegas.
Copyright (C) 2012-2014 WrinklyNinja
- This file is part of BOSS.
+ This file is part of LOOT.
- BOSS is free software: you can redistribute
+ LOOT 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
+ LOOT 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
+ along with LOOT. If not, see
.
*/
-#ifndef __BOSS_ERROR__
-#define __BOSS_ERROR__
+#ifndef __LOOT_ERROR__
+#define __LOOT_ERROR__
#include
#include
diff --git a/src/backend/game.cpp b/src/backend/game.cpp
index b9366ef8..ed9ada03 100644
--- a/src/backend/game.cpp
+++ b/src/backend/game.cpp
@@ -1,24 +1,24 @@
-/* BOSS
+/* LOOT
A load order optimisation tool for Oblivion, Skyrim, Fallout 3 and
Fallout: New Vegas.
Copyright (C) 2012-2014 WrinklyNinja
- This file is part of BOSS.
+ This file is part of LOOT.
- BOSS is free software: you can redistribute
+ LOOT 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
+ LOOT 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
+ along with LOOT. If not, see
.
*/
@@ -160,7 +160,7 @@ namespace boss {
}
RefreshActivePluginsList();
- CreateBOSSGameFolder();
+ CreateLOOTGameFolder();
return *this;
}
@@ -480,14 +480,14 @@ namespace boss {
lo_destroy_handle(gh);
}
- void Game::CreateBOSSGameFolder() {
- //Make sure that the BOSS game path exists.
+ void Game::CreateLOOTGameFolder() {
+ //Make sure that the LOOT game path exists.
try {
if (fs::exists(g_path_local) && !fs::exists(g_path_local / bossFolderName))
fs::create_directory(g_path_local / bossFolderName);
} catch (fs::filesystem_error& e) {
- BOOST_LOG_TRIVIAL(error) << "Could not create BOSS folder for game. Details: " << e.what();
- throw error(error::path_write_fail, lc::translate("Could not create BOSS folder for game. Details:").str() + " " + e.what());
+ BOOST_LOG_TRIVIAL(error) << "Could not create LOOT folder for game. Details: " << e.what();
+ throw error(error::path_write_fail, lc::translate("Could not create LOOT folder for game. Details:").str() + " " + e.what());
}
}
}
diff --git a/src/backend/game.h b/src/backend/game.h
index 77f1bdb6..adfb1fd9 100644
--- a/src/backend/game.h
+++ b/src/backend/game.h
@@ -1,29 +1,29 @@
-/* BOSS
+/* LOOT
A load order optimisation tool for Oblivion, Skyrim, Fallout 3 and
Fallout: New Vegas.
Copyright (C) 2012-2014 WrinklyNinja
- This file is part of BOSS.
+ This file is part of LOOT.
- BOSS is free software: you can redistribute
+ LOOT 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
+ LOOT 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
+ along with LOOT. If not, see
.
*/
-#ifndef __BOSS_GAME__
-#define __BOSS_GAME__
+#ifndef __LOOT_GAME__
+#define __LOOT_GAME__
#include
@@ -44,7 +44,7 @@ namespace boss {
class Game {
public:
- Game(); //Sets game to BOSS_g_game_autodetect, with all other vars being empty.
+ Game(); //Sets game to LOOT_g_game_autodetect, with all other vars being empty.
Game(const unsigned int baseGameCode, const std::string& bossFolder = "");
Game& SetDetails(const std::string& name, const std::string& masterFile,
@@ -98,8 +98,8 @@ namespace boss {
boost::filesystem::path gamePath; //Path to the game's folder.
boost::unordered_set activePlugins; //Holds lowercased strings.
- //Creates directory in BOSS folder for BOSS's game-specific files.
- void CreateBOSSGameFolder();
+ //Creates directory in LOOT folder for LOOT's game-specific files.
+ void CreateLOOTGameFolder();
};
std::vector GetGames(const YAML::Node& settings);
diff --git a/src/backend/generators.h b/src/backend/generators.h
index 8ee29c53..bc97f3de 100644
--- a/src/backend/generators.h
+++ b/src/backend/generators.h
@@ -1,28 +1,28 @@
-/* BOSS
+/* LOOT
A load order optimisation tool for Oblivion, Skyrim, Fallout 3 and
Fallout: New Vegas.
Copyright (C) 2013-2014 WrinklyNinja
- This file is part of BOSS.
+ This file is part of LOOT.
- BOSS is free software: you can redistribute
+ LOOT 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
+ LOOT 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
+ along with LOOT. If not, see
.
*/
-#ifndef __BOSS_GENERATORS__
-#define __BOSS_GENERATORS__
+#ifndef __LOOT_GENERATORS__
+#define __LOOT_GENERATORS__
#include "helpers.h"
#include "metadata.h"
@@ -41,7 +41,7 @@
namespace boss {
- //BOSS Report generation stuff.
+ //LOOT Report generation stuff.
struct xml_string_writer: pugi::xml_writer {
std::string result;
@@ -102,7 +102,7 @@ namespace boss {
}
inline void GenerateHead(pugi::xml_document& doc) {
- BOOST_LOG_TRIVIAL(trace) << "Creating BOSS report head.";
+ BOOST_LOG_TRIVIAL(trace) << "Creating LOOT report head.";
//Add DOCTYPE node.
doc.append_child(pugi::node_doctype).set_value("html");
@@ -125,7 +125,7 @@ namespace boss {
node = head.append_child();
node.set_name("title");
- node.text().set(boost::locale::translate("BOSS Report").str().c_str());
+ node.text().set(boost::locale::translate("LOOT Report").str().c_str());
node = head.append_child();
node.set_name("link");
@@ -139,7 +139,7 @@ namespace boss {
}
inline void AppendNav(pugi::xml_node& body) {
- BOOST_LOG_TRIVIAL(trace) << "Appending navigation bar to BOSS report.";
+ BOOST_LOG_TRIVIAL(trace) << "Appending navigation bar to LOOT report.";
pugi::xml_node nav, div;
@@ -203,7 +203,7 @@ namespace boss {
int errorNo,
std::list& messages) {
- BOOST_LOG_TRIVIAL(trace) << "Appending summary tab to BOSS report.";
+ BOOST_LOG_TRIVIAL(trace) << "Appending summary tab to LOOT report.";
pugi::xml_node summary = main.append_child();
summary.set_name("div");
@@ -227,7 +227,7 @@ namespace boss {
row.set_name("tr");
cell = row.append_child();
cell.set_name("td");
- cell.text().set(boost::locale::translate("BOSS Version").str().c_str());
+ cell.text().set(boost::locale::translate("LOOT Version").str().c_str());
cell = row.append_child();
cell.set_name("td");
cell.text().set((IntToString(g_version_major)+"."+IntToString(g_version_minor)+"."+IntToString(g_version_patch)).c_str());
@@ -254,13 +254,13 @@ namespace boss {
cell.text().set(boost::locale::translate("Disabled").str().c_str());
if (!hasChanged) {
- BOOST_LOG_TRIVIAL(info) << "No changes in the BOSS report details tab since the last run.";
+ BOOST_LOG_TRIVIAL(info) << "No changes in the LOOT report details tab since the last run.";
/*pugi::xml_node note = summary.append_child();
note.set_name("div");
note.append_attribute("id").set_value("noChanges");
note.text().set(boost::locale::translate("No change in details since last run.").str().c_str());
*/
- messages.push_front(boss::Message(boss::g_message_say, boost::locale::translate("There have been no changes in the Details tab since BOSS was last run for this game.").str()));
+ messages.push_front(boss::Message(boss::g_message_say, boost::locale::translate("There have been no changes in the Details tab since LOOT was last run for this game.").str()));
}
if (!messages.empty()) {
@@ -306,7 +306,7 @@ namespace boss {
inline bool AppendDetails(pugi::xml_node& main, const std::list& plugins, int& messageNo, int& warnNo, int& errorNo, const std::string& oldDetails) {
- BOOST_LOG_TRIVIAL(trace) << "Appending details tab to BOSS report.";
+ BOOST_LOG_TRIVIAL(trace) << "Appending details tab to LOOT report.";
pugi::xml_node details = main.append_child();
details.set_name("div");
@@ -415,7 +415,7 @@ namespace boss {
int& pluginMessageNo
) {
- BOOST_LOG_TRIVIAL(trace) << "Appending main content to BOSS report.";
+ BOOST_LOG_TRIVIAL(trace) << "Appending main content to LOOT report.";
pugi::xml_node main = body.append_child();
main.set_name("div");
@@ -427,7 +427,7 @@ namespace boss {
noscript.set_name("noscript");
div = noscript.append_child();
div.set_name("div");
- div.text().set(boost::locale::translate("The BOSS Report requires Javascript to be enabled in order to function.").str().c_str());
+ div.text().set(boost::locale::translate("The LOOT Report requires Javascript to be enabled in order to function.").str().c_str());
int messageNo=0, warnNo=0, errorNo=0;
bool hasChanged = AppendDetails(main, plugins, messageNo, warnNo, errorNo, oldDetails);
@@ -438,7 +438,7 @@ namespace boss {
inline void AppendFilters(pugi::xml_node& body, int messageNo, int pluginNo) {
- BOOST_LOG_TRIVIAL(trace) << "Appending filters to BOSS report.";
+ BOOST_LOG_TRIVIAL(trace) << "Appending filters to LOOT report.";
pugi::xml_node filters = body.append_child();
filters.set_name("div");
@@ -527,7 +527,7 @@ namespace boss {
inline void AppendScripts(pugi::xml_node& body) {
- BOOST_LOG_TRIVIAL(trace) << "Appending scripts to BOSS report.";
+ BOOST_LOG_TRIVIAL(trace) << "Appending scripts to LOOT report.";
pugi::xml_node node;
diff --git a/src/backend/globals.cpp b/src/backend/globals.cpp
index 5aeff660..8a370409 100644
--- a/src/backend/globals.cpp
+++ b/src/backend/globals.cpp
@@ -1,24 +1,24 @@
-/* BOSS
+/* LOOT
A load order optimisation tool for Oblivion, Skyrim, Fallout 3 and
Fallout: New Vegas.
Copyright (C) 2012-2014 WrinklyNinja
- This file is part of BOSS.
+ This file is part of LOOT.
- BOSS is free software: you can redistribute
+ LOOT 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
+ LOOT 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
+ along with LOOT. If not, see
.
*/
@@ -56,12 +56,12 @@ namespace boss {
const unsigned int g_version_patch = 0;
//Common paths.
- const boost::filesystem::path g_path_readme = boost::filesystem::current_path() / "docs" / "BOSS Readme.html";
+ const boost::filesystem::path g_path_readme = boost::filesystem::current_path() / "docs" / "LOOT Readme.html";
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_local = GetLocalAppDataPath() / "BOSS";
+ const boost::filesystem::path g_path_local = GetLocalAppDataPath() / "LOOT";
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_log = g_path_local / "LOOTDebugLog.txt";
}
diff --git a/src/backend/globals.h b/src/backend/globals.h
index 6ad31458..afcbb3b9 100644
--- a/src/backend/globals.h
+++ b/src/backend/globals.h
@@ -1,28 +1,28 @@
-/* BOSS
+/* LOOT
A load order optimisation tool for Oblivion, Skyrim, Fallout 3 and
Fallout: New Vegas.
Copyright (C) 2012-2014 WrinklyNinja
- This file is part of BOSS.
+ This file is part of LOOT.
- BOSS is free software: you can redistribute
+ LOOT 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
+ LOOT 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
+ along with LOOT. If not, see
.
*/
-#ifndef __BOSS_GLOBALS__
-#define __BOSS_GLOBALS__
+#ifndef __LOOT_GLOBALS__
+#define __LOOT_GLOBALS__
#include
diff --git a/src/backend/graph.cpp b/src/backend/graph.cpp
index 5f8ce4e8..8c750bbd 100644
--- a/src/backend/graph.cpp
+++ b/src/backend/graph.cpp
@@ -1,24 +1,24 @@
-/* BOSS
+/* LOOT
A load order optimisation tool for Oblivion, Skyrim, Fallout 3 and
Fallout: New Vegas.
Copyright (C) 2012-2014 WrinklyNinja
- This file is part of BOSS.
+ This file is part of LOOT.
- BOSS is free software: you can redistribute
+ LOOT 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
+ LOOT 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
+ along with LOOT. If not, see
.
*/
diff --git a/src/backend/graph.h b/src/backend/graph.h
index 2a97bf63..672dcf3a 100644
--- a/src/backend/graph.h
+++ b/src/backend/graph.h
@@ -1,29 +1,29 @@
-/* BOSS
+/* LOOT
A load order optimisation tool for Oblivion, Skyrim, Fallout 3 and
Fallout: New Vegas.
Copyright (C) 2012-2014 WrinklyNinja
- This file is part of BOSS.
+ This file is part of LOOT.
- BOSS is free software: you can redistribute
+ LOOT 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
+ LOOT 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
+ along with LOOT. If not, see
.
*/
-#ifndef __BOSS_GRAPH__
-#define __BOSS_GRAPH__
+#ifndef __LOOT_GRAPH__
+#define __LOOT_GRAPH__
#include "metadata.h"
#include "error.h"
diff --git a/src/backend/helpers.cpp b/src/backend/helpers.cpp
index d01b9691..db09eb95 100644
--- a/src/backend/helpers.cpp
+++ b/src/backend/helpers.cpp
@@ -1,24 +1,24 @@
-/* BOSS
+/* LOOT
A load order optimisation tool for Oblivion, Skyrim, Fallout 3 and
Fallout: New Vegas.
Copyright (C) 2012-2014 WrinklyNinja
- This file is part of BOSS.
+ This file is part of LOOT.
- BOSS is free software: you can redistribute
+ LOOT 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
+ LOOT 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
+ along with LOOT. If not, see
.
*/
diff --git a/src/backend/helpers.h b/src/backend/helpers.h
index 9ae23b5e..5d98ef3d 100644
--- a/src/backend/helpers.h
+++ b/src/backend/helpers.h
@@ -1,29 +1,29 @@
-/* BOSS
+/* LOOT
A load order optimisation tool for Oblivion, Skyrim, Fallout 3 and
Fallout: New Vegas.
Copyright (C) 2012-2014 WrinklyNinja
- This file is part of BOSS.
+ This file is part of LOOT.
- BOSS is free software: you can redistribute
+ LOOT 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
+ LOOT 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
+ along with LOOT. If not, see
.
*/
-#ifndef __BOSS_HELPERS__
-#define __BOSS_HELPERS__
+#ifndef __LOOT_HELPERS__
+#define __LOOT_HELPERS__
#include "metadata.h"
diff --git a/src/backend/legacy-parser.h b/src/backend/legacy-parser.h
index 8ad0e89a..70e0a663 100644
--- a/src/backend/legacy-parser.h
+++ b/src/backend/legacy-parser.h
@@ -1,29 +1,29 @@
-/* BOSS
+/* LOOT
A load order optimisation tool for Oblivion, Skyrim, Fallout 3 and
Fallout: New Vegas.
Copyright (C) 2012-2014 WrinklyNinja
- This file is part of BOSS.
+ This file is part of LOOT.
- BOSS is free software: you can redistribute
+ LOOT 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
+ LOOT 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
+ along with LOOT. If not, see
.
*/
-#ifndef __BOSS_LEGACY_PARSER__
-#define __BOSS_LEGACY_PARSER__
+#ifndef __LOOT_LEGACY_PARSER__
+#define __LOOT_LEGACY_PARSER__
// This file holds the code necessary for inputting a v2 masterlist and getting a list of plugins and a list of global messages from it.
@@ -400,7 +400,7 @@ namespace boss {
if (it == varConditionMap.end()) {
BOOST_LOG_TRIVIAL(error) << "The variable \"" << var << "\" was not previously defined.";
- throw boss::error(boss::error::condition_eval_fail, "The variable \"" + var + "\" was not previously defined."); //Isn't used by BOSS application, so don't need to translate.
+ throw boss::error(boss::error::condition_eval_fail, "The variable \"" + var + "\" was not previously defined."); //Isn't used by LOOT application, so don't need to translate.
}
if (ifIfnotStr == "if ")
@@ -716,7 +716,7 @@ namespace boss {
}
}
- //BOSSv2 supports Chinese and German in addition to English, Russian and Spanish, but they aren't used in any of the masterlists so don't bother mapping them.
+ //LOOT supports Chinese and German in addition to English, Russian and Spanish, but they aren't used in any of the masterlists so don't bother mapping them.
unsigned int langInt;
if (lang == "english" || lang == "chinese" || lang == "german")
langInt = g_lang_english;
@@ -728,7 +728,7 @@ namespace boss {
langInt = g_lang_any;
- /* Now convert the temporary message types into say or warning messages as appropriate. Translations were obtained from the BOSSv2 translation files. Thanks to the translators for them. */
+ /* Now convert the temporary message types into say or warning messages as appropriate. Translations were obtained from the LOOT translation files. Thanks to the translators for them. */
if (type == message_dirty) {
@@ -792,7 +792,7 @@ namespace boss {
boost::trim(context);
BOOST_LOG_TRIVIAL(error) << "Error parsing at \"" << context << "\", expected \"" << what.tag << "\".";
- throw boss::error(boss::error::condition_eval_fail, "Expected \"" + what.tag + "\" at \"" + context + "\"."); //Isn't used by BOSS application, so don't need to translate.
+ throw boss::error(boss::error::condition_eval_fail, "Expected \"" + what.tag + "\" at \"" + context + "\"."); //Isn't used by LOOT application, so don't need to translate.
}
};
diff --git a/src/backend/metadata.cpp b/src/backend/metadata.cpp
index 761f79c1..7bc66d03 100644
--- a/src/backend/metadata.cpp
+++ b/src/backend/metadata.cpp
@@ -1,24 +1,24 @@
-/* BOSS
+/* LOOT
A load order optimisation tool for Oblivion, Skyrim, Fallout 3 and
Fallout: New Vegas.
Copyright (C) 2012-2014 WrinklyNinja
- This file is part of BOSS.
+ This file is part of LOOT.
- BOSS is free software: you can redistribute
+ LOOT 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
+ LOOT 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
+ along with LOOT. If not, see
.
*/
diff --git a/src/backend/metadata.h b/src/backend/metadata.h
index 4e78957c..38964ea7 100644
--- a/src/backend/metadata.h
+++ b/src/backend/metadata.h
@@ -1,28 +1,28 @@
-/* BOSS
+/* LOOT
A load order optimisation tool for Oblivion, Skyrim, Fallout 3 and
Fallout: New Vegas.
Copyright (C) 2012-2014 WrinklyNinja
- This file is part of BOSS.
+ This file is part of LOOT.
- BOSS is free software: you can redistribute
+ LOOT 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
+ LOOT 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
+ along with LOOT. If not, see
.
*/
-#ifndef __BOSS_METADATA__
-#define __BOSS_METADATA__
+#ifndef __LOOT_METADATA__
+#define __LOOT_METADATA__
#include "game.h"
#include "globals.h"
diff --git a/src/backend/network.cpp b/src/backend/network.cpp
index bc3272a0..7233ab5d 100644
--- a/src/backend/network.cpp
+++ b/src/backend/network.cpp
@@ -1,24 +1,24 @@
-/* BOSS
+/* LOOT
A load order optimisation tool for Oblivion, Skyrim, Fallout 3 and
Fallout: New Vegas.
Copyright (C) 2012-2014 WrinklyNinja
- This file is part of BOSS.
+ This file is part of LOOT.
- BOSS is free software: you can redistribute
+ LOOT 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
+ LOOT 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
+ along with LOOT. If not, see
.
*/
@@ -103,16 +103,16 @@ namespace boss {
/* List of Git operations (porcelain commands shown, will need to implement using plumbing in the API though):
- 1. Check if there is already a Git repository in the game's BOSS subfolder.
+ 1. Check if there is already a Git repository in the game's LOOT subfolder.
Since the masterlists will each be in the root of a separate repository, just check if there is a `.git` folder present.
- 2a. If there is, compare its remote URL with the URL that BOSS is currently set to use.
+ 2a. If there is, compare its remote URL with the URL that LOOT is currently set to use.
The current remote can be gotten using `git config --get remote.origin.url`.
- 3a. If the URLs are different, then update the remote URL to the one given by BOSS.
+ 3a. If the URLs are different, then update the remote URL to the one given by LOOT.
The remote URL can be changed using `git remote set-url origin `
@@ -122,7 +122,7 @@ namespace boss {
`git remote add origin `
- 3b. Now set up sparse checkout support, so that even if the repository has other files, the user's BOSS install only gets the masterlist added to it.
+ 3b. Now set up sparse checkout support, so that even if the repository has other files, the user's LOOT install only gets the masterlist added to it.
`git config core.sparseCheckout true`
`echo masterlist.yaml >> .git/info/sparse-checkout`
@@ -173,7 +173,7 @@ namespace boss {
BOOST_LOG_TRIVIAL(info) << "Remote URL in repository settings: " << url;
if (url != game.RepoURL()) {
BOOST_LOG_TRIVIAL(trace) << "URLs do not match, setting repository URL to URL in settings.";
- //The URLs don't match. Change the remote URL to match the one BOSS has.
+ //The URLs don't match. Change the remote URL to match the one LOOT has.
handle_error(git_remote_set_url(ptrs.remote, game.RepoURL().c_str()), ptrs);
//Now save change.
diff --git a/src/backend/network.h b/src/backend/network.h
index a88ae818..7c2607f2 100644
--- a/src/backend/network.h
+++ b/src/backend/network.h
@@ -1,29 +1,29 @@
-/* BOSS
+/* LOOT
A load order optimisation tool for Oblivion, Skyrim, Fallout 3 and
Fallout: New Vegas.
Copyright (C) 2012-2014 WrinklyNinja
- This file is part of BOSS.
+ This file is part of LOOT.
- BOSS is free software: you can redistribute
+ LOOT 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
+ LOOT 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
+ along with LOOT. If not, see
.
*/
-#ifndef __BOSS_NETWORK__
-#define __BOSS_NETWORK__
+#ifndef __LOOT_NETWORK__
+#define __LOOT_NETWORK__
#include
#include
diff --git a/src/backend/parsers.h b/src/backend/parsers.h
index 25d07f1b..b5c12078 100644
--- a/src/backend/parsers.h
+++ b/src/backend/parsers.h
@@ -1,29 +1,29 @@
-/* BOSS
+/* LOOT
A load order optimisation tool for Oblivion, Skyrim, Fallout 3 and
Fallout: New Vegas.
Copyright (C) 2012-2014 WrinklyNinja
- This file is part of BOSS.
+ This file is part of LOOT.
- BOSS is free software: you can redistribute
+ LOOT 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
+ LOOT 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
+ along with LOOT. If not, see
.
*/
-#ifndef __BOSS_PARSERS__
-#define __BOSS_PARSERS__
+#ifndef __LOOT_PARSERS__
+#define __LOOT_PARSERS__
#ifndef BOOST_SPIRIT_UNICODE
#define BOOST_SPIRIT_UNICODE
@@ -460,7 +460,7 @@ namespace boss {
BOOST_LOG_TRIVIAL(trace) << "Checking to see if the file \"" << file << "\" exists.";
- if (file == "BOSS") {
+ if (file == "LOOT") {
result = true;
return;
}
@@ -559,8 +559,8 @@ namespace boss {
if (it != game->crcCache.end())
crc = it->second;
else {
- if (file == "BOSS")
- crc = GetCrc32(boost::filesystem::absolute("BOSS.exe"));
+ if (file == "LOOT")
+ crc = GetCrc32(boost::filesystem::absolute("LOOT.exe"));
if (boost::filesystem::exists(game->DataPath() / file))
crc = GetCrc32(game->DataPath() / file);
else if (IsPlugin(file) && boost::filesystem::exists(game->DataPath() / (file + ".ghost")))
@@ -590,8 +590,8 @@ namespace boss {
Version givenVersion = Version(version);
Version trueVersion;
- if (file == "BOSS")
- trueVersion = Version(boost::filesystem::absolute("BOSS.exe"));
+ if (file == "LOOT")
+ trueVersion = Version(boost::filesystem::absolute("LOOT.exe"));
else if (IsPlugin(file)) {
Plugin plugin(*game, file, true);
trueVersion = Version(plugin.Version());
@@ -612,7 +612,7 @@ namespace boss {
}
void CheckActive(bool& result, const std::string& file) {
- if (file == "BOSS")
+ if (file == "LOOT")
result = false;
else
result = game->IsActive(file);
diff --git a/src/backend/streams.h b/src/backend/streams.h
index 55daf4dc..d2e5aec0 100644
--- a/src/backend/streams.h
+++ b/src/backend/streams.h
@@ -1,28 +1,28 @@
-/* BOSS
+/* LOOT
A load order optimisation tool for Oblivion, Skyrim, Fallout 3 and
Fallout: New Vegas.
Copyright (C) 2013-2014 WrinklyNinja
- This file is part of BOSS.
+ This file is part of LOOT.
- BOSS is free software: you can redistribute
+ LOOT 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
+ LOOT 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
+ along with LOOT. If not, see
.
*/
-#ifndef __BOSS_STREAMS__
-#define __BOSS_STREAMS__
+#ifndef __LOOT_STREAMS__
+#define __LOOT_STREAMS__
#include
#include
diff --git a/src/gui/editor.cpp b/src/gui/editor.cpp
index 87987f45..c53fc49a 100644
--- a/src/gui/editor.cpp
+++ b/src/gui/editor.cpp
@@ -1,24 +1,24 @@
-/* BOSS
+/* LOOT
A load order optimisation tool for Oblivion, Skyrim, Fallout 3 and
Fallout: New Vegas.
Copyright (C) 2013-2014 WrinklyNinja
- This file is part of BOSS.
+ This file is part of LOOT.
- BOSS is free software: you can redistribute
+ LOOT 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
+ LOOT 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
+ along with LOOT. If not, see
.
*/
@@ -156,7 +156,7 @@ MiniEditor::MiniEditor(wxWindow *parent, const wxString& title, const std::list<
//Initialise controls.
pluginText = new wxStaticText(editingPanel, wxID_ANY, "");
- descText = new wxStaticText(this, wxID_ANY, translate("Please submit any edits made for reasons other than personal preference to the BOSS team so that they may be included in the masterlist."));
+ descText = new wxStaticText(this, wxID_ANY, translate("Please submit any edits made for reasons other than personal preference to the LOOT team so that they may be included in the masterlist."));
prioritySpin = new wxSpinCtrl(editingPanel, wxID_ANY, "0");
prioritySpin->SetRange(std::numeric_limits::min(), std::numeric_limits::max());
filterCheckbox = new wxCheckBox(editingPanel, wxID_ANY, translate("Show only conflicting plugins"));
@@ -255,7 +255,7 @@ MiniEditor::MiniEditor(wxWindow *parent, const wxString& title, const std::list<
descText->Wrap(pluginList->GetClientSize().GetWidth());
SetBackgroundColour(wxColour(255, 255, 255));
- SetIcon(wxIconLocation("BOSS.exe"));
+ SetIcon(wxIconLocation("LOOT.exe"));
editingPanel->Hide();
SetSizerAndFit(bigBox);
@@ -323,7 +323,7 @@ void MiniEditor::OnPluginSelect(wxListEvent& event) {
Fit();
}
else {
- descText->SetLabel(translate("Please submit any edits made for reasons other than personal preference to the BOSS team so that they may be included in the masterlist."));
+ descText->SetLabel(translate("Please submit any edits made for reasons other than personal preference to the LOOT team so that they may be included in the masterlist."));
descText->Wrap(GetClientSize().GetWidth() - 30);
}
}
@@ -461,7 +461,7 @@ boss::Plugin MiniEditor::GetNewData(const wxString& plugin) const {
}
void MiniEditor::OnResize(wxSizeEvent& event) {
- descText->SetLabel(translate("Please submit any edits made for reasons other than personal preference to the BOSS team so that they may be included in the masterlist."));
+ descText->SetLabel(translate("Please submit any edits made for reasons other than personal preference to the LOOT team so that they may be included in the masterlist."));
descText->Wrap(GetClientSize().GetWidth()-30);
event.Skip();
}
@@ -653,7 +653,7 @@ Editor::Editor(wxWindow *parent, const wxString& title, const std::string userli
pluginList->SetColumnWidth(0, wxLIST_AUTOSIZE);
SetBackgroundColour(wxColour(255,255,255));
- SetIcon(wxIconLocation("BOSS.exe"));
+ SetIcon(wxIconLocation("LOOT.exe"));
SetSizerAndFit(bigBox);
Layout();
@@ -811,7 +811,7 @@ void Editor::OnPluginCopyMetadata(wxCommandEvent& event) {
void Editor::OnPluginClearMetadata(wxCommandEvent& event) {
wxMessageDialog dialog(this,
translate("Are you sure you want to clear all existing user-added metadata from this plugin?"),
- translate("BOSS: Warning"),
+ translate("LOOT: Warning"),
wxYES_NO | wxCANCEL | wxICON_EXCLAMATION);
if (dialog.ShowModal() == wxID_YES) {
@@ -874,7 +874,7 @@ void Editor::OnAddRow(wxCommandEvent& event) {
if (listBook->GetSelection() < 3) {
BOOST_LOG_TRIVIAL(debug) << "Adding new file row.";
- FileEditDialog * rowDialog = new FileEditDialog(this, translate("BOSS: Add File/Plugin"));
+ FileEditDialog * rowDialog = new FileEditDialog(this, translate("LOOT: Add File/Plugin"));
if (rowDialog->ShowModal() != wxID_OK) {
BOOST_LOG_TRIVIAL(debug) << "Cancelled adding new file row.";
@@ -896,7 +896,7 @@ void Editor::OnAddRow(wxCommandEvent& event) {
} else if (listBook->GetSelection() == 3) {
BOOST_LOG_TRIVIAL(debug) << "Adding new message row.";
- MessageEditDialog * rowDialog = new MessageEditDialog(this, translate("BOSS: Add Message"));
+ MessageEditDialog * rowDialog = new MessageEditDialog(this, translate("LOOT: Add Message"));
if (rowDialog->ShowModal() != wxID_OK) {
BOOST_LOG_TRIVIAL(debug) << "Cancelled adding new message row.";
@@ -907,7 +907,7 @@ void Editor::OnAddRow(wxCommandEvent& event) {
BOOST_LOG_TRIVIAL(error) << "No content specified. Row will not be added.";
wxMessageBox(
translate("Error: No content specified. Row will not be added."),
- translate("BOSS: Error"),
+ translate("LOOT: Error"),
wxOK | wxICON_ERROR,
this);
return;
@@ -917,7 +917,7 @@ void Editor::OnAddRow(wxCommandEvent& event) {
} else if (listBook->GetSelection() == 4) {
BOOST_LOG_TRIVIAL(debug) << "Adding new tag row.";
- TagEditDialog * rowDialog = new TagEditDialog(this, translate("BOSS: Add Tag"));
+ TagEditDialog * rowDialog = new TagEditDialog(this, translate("LOOT: Add Tag"));
if (rowDialog->ShowModal() != wxID_OK) {
BOOST_LOG_TRIVIAL(debug) << "Cancelled adding new tag row.";
@@ -931,7 +931,7 @@ void Editor::OnAddRow(wxCommandEvent& event) {
} else if (listBook->GetSelection() == 5) {
BOOST_LOG_TRIVIAL(debug) << "Adding new dirty info row.";
- DirtInfoEditDialog * rowDialog = new DirtInfoEditDialog(this, translate("BOSS: Add Dirty Info"));
+ DirtInfoEditDialog * rowDialog = new DirtInfoEditDialog(this, translate("LOOT: Add Dirty Info"));
if (rowDialog->ShowModal() != wxID_OK) {
BOOST_LOG_TRIVIAL(debug) << "Cancelled adding dirty info row.";
@@ -950,7 +950,7 @@ void Editor::OnAddRow(wxCommandEvent& event) {
void Editor::OnEditRow(wxCommandEvent& event) {
if (listBook->GetSelection() < 3) {
BOOST_LOG_TRIVIAL(debug) << "Editing file row.";
- FileEditDialog * rowDialog = new FileEditDialog(this, translate("BOSS: Edit File/Plugin"));
+ FileEditDialog * rowDialog = new FileEditDialog(this, translate("LOOT: Edit File/Plugin"));
wxListView * list;
if (listBook->GetSelection() == 0)
@@ -974,7 +974,7 @@ void Editor::OnEditRow(wxCommandEvent& event) {
list->SetItem(i, 2, rowDialog->GetCondition());
} else if (listBook->GetSelection() == 3) {
BOOST_LOG_TRIVIAL(debug) << "Editing message row.";
- MessageEditDialog * rowDialog = new MessageEditDialog(this, translate("BOSS: Edit Message"));
+ MessageEditDialog * rowDialog = new MessageEditDialog(this, translate("LOOT: Edit Message"));
long i = messageList->GetFirstSelected();
@@ -989,7 +989,7 @@ void Editor::OnEditRow(wxCommandEvent& event) {
BOOST_LOG_TRIVIAL(error) << "No content specified. Row will not be edited.";
wxMessageBox(
translate("Error: No content specified. Row will not be edited."),
- translate("BOSS: Error"),
+ translate("LOOT: Error"),
wxOK | wxICON_ERROR,
this);
return;
@@ -998,7 +998,7 @@ void Editor::OnEditRow(wxCommandEvent& event) {
messageList->SetItem(i, rowDialog->GetMessage());
} else if (listBook->GetSelection() == 4) {
BOOST_LOG_TRIVIAL(debug) << "Editing tag row.";
- TagEditDialog * rowDialog = new TagEditDialog(this, translate("BOSS: Edit Tag"));
+ TagEditDialog * rowDialog = new TagEditDialog(this, translate("LOOT: Edit Tag"));
long i = tagsList->GetFirstSelected();
@@ -1020,7 +1020,7 @@ void Editor::OnEditRow(wxCommandEvent& event) {
tagsList->SetItem(i, 2, rowDialog->GetCondition());
} else if (listBook->GetSelection() == 5) {
BOOST_LOG_TRIVIAL(debug) << "Editing dirty info row.";
- DirtInfoEditDialog * rowDialog = new DirtInfoEditDialog(this, translate("BOSS: Edit Dirty Info"));
+ DirtInfoEditDialog * rowDialog = new DirtInfoEditDialog(this, translate("LOOT: Edit Dirty Info"));
long i = tagsList->GetFirstSelected();
diff --git a/src/gui/editor.h b/src/gui/editor.h
index 0c3e672f..e87e9620 100644
--- a/src/gui/editor.h
+++ b/src/gui/editor.h
@@ -1,28 +1,28 @@
-/* BOSS
+/* LOOT
A load order optimisation tool for Oblivion, Skyrim, Fallout 3 and
Fallout: New Vegas.
Copyright (C) 2013-2014 WrinklyNinja
- This file is part of BOSS.
+ This file is part of LOOT.
- BOSS is free software: you can redistribute
+ LOOT 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
+ LOOT 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
+ along with LOOT. If not, see
.
*/
-#ifndef __BOSS_GUI_EDITOR__
-#define __BOSS_GUI_EDITOR__
+#ifndef __LOOT_GUI_EDITOR__
+#define __LOOT_GUI_EDITOR__
#include "ids.h"
#include "misc.h"
diff --git a/src/gui/ids.cpp b/src/gui/ids.cpp
index f4d70a16..df8b08a8 100644
--- a/src/gui/ids.cpp
+++ b/src/gui/ids.cpp
@@ -1,24 +1,24 @@
-/* BOSS
+/* LOOT
A load order optimisation tool for Oblivion, Skyrim, Fallout 3 and
Fallout: New Vegas.
Copyright (C) 2013-2014 WrinklyNinja
- This file is part of BOSS.
+ This file is part of LOOT.
- BOSS is free software: you can redistribute
+ LOOT 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
+ LOOT 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
+ along with LOOT. If not, see
.
*/
diff --git a/src/gui/ids.h b/src/gui/ids.h
index 43fb795e..9e6076b6 100644
--- a/src/gui/ids.h
+++ b/src/gui/ids.h
@@ -1,29 +1,29 @@
-/* BOSS
+/* LOOT
A load order optimisation tool for Oblivion, Skyrim, Fallout 3 and
Fallout: New Vegas.
Copyright (C) 2013-2014 WrinklyNinja
- This file is part of BOSS.
+ This file is part of LOOT.
- BOSS is free software: you can redistribute
+ LOOT 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
+ LOOT 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
+ along with LOOT. If not, see
.
*/
-#ifndef __BOSS_GUI_IDS__
-#define __BOSS_GUI_IDS__
+#ifndef __LOOT_GUI_IDS__
+#define __LOOT_GUI_IDS__
#include
#include
diff --git a/src/gui/main.cpp b/src/gui/main.cpp
index a7452b58..e3720209 100644
--- a/src/gui/main.cpp
+++ b/src/gui/main.cpp
@@ -1,24 +1,24 @@
-/* BOSS
+/* LOOT
A load order optimisation tool for Oblivion, Skyrim, Fallout 3 and
Fallout: New Vegas.
Copyright (C) 2013-2014 WrinklyNinja
- This file is part of BOSS.
+ This file is part of LOOT.
- BOSS is free software: you can redistribute
+ LOOT 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
+ LOOT 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
+ along with LOOT. If not, see
.
*/
#include "main.h"
@@ -164,8 +164,8 @@ bool BossGUI::OnInit() {
if (checker->IsAnotherRunning()) {
wxMessageBox(
- translate("Error: BOSS is already running. This instance will now quit."),
- translate("BOSS: Error"),
+ translate("Error: LOOT is already running. This instance will now quit."),
+ translate("LOOT: Error"),
wxOK | wxICON_ERROR,
NULL);
delete checker; // OnExit() won't be called if we return false
@@ -181,8 +181,8 @@ bool BossGUI::OnInit() {
fs::create_directory(g_path_settings.parent_path());
} catch (fs::filesystem_error& e) {
wxMessageBox(
- translate("Error: Could not create local app data BOSS folder."),
- translate("BOSS: Error"),
+ translate("Error: Could not create local app data LOOT folder."),
+ translate("LOOT: Error"),
wxOK | wxICON_ERROR,
NULL);
return false;
@@ -197,7 +197,7 @@ bool BossGUI::OnInit() {
} catch (YAML::ParserException& e) {
wxMessageBox(
FromUTF8(format(loc::translate("Error: Settings parsing failed. %1%")) % e.what()),
- translate("BOSS: Error"),
+ translate("LOOT: Error"),
wxOK | wxICON_ERROR,
NULL);
return false;
@@ -280,7 +280,7 @@ bool BossGUI::OnInit() {
BOOST_LOG_TRIVIAL(error) << "Could not load translations.";
wxMessageBox(
translate("Error: Could not apply translation."),
- translate("BOSS: Error"),
+ translate("LOOT: Error"),
wxOK | wxICON_ERROR,
NULL);
}
@@ -290,7 +290,7 @@ bool BossGUI::OnInit() {
BOOST_LOG_TRIVIAL(error) << "The selected language is not available on this system.";
wxMessageBox(
translate("Error: The selected language is not available on this system."),
- translate("BOSS: Error"),
+ translate("LOOT: Error"),
wxOK | wxICON_ERROR,
NULL);
}
@@ -303,7 +303,7 @@ bool BossGUI::OnInit() {
BOOST_LOG_TRIVIAL(error) << "Game-specific settings could not be initialised. " << e.what();
wxMessageBox(
FromUTF8(format(loc::translate("Error: Game-specific settings could not be initialised. %1%")) % e.what()),
- translate("BOSS: Error"),
+ translate("LOOT: Error"),
wxOK | wxICON_ERROR,
NULL);
return false;
@@ -311,7 +311,7 @@ bool BossGUI::OnInit() {
BOOST_LOG_TRIVIAL(error) << "Games' settings parsing failed. " << e.what();
wxMessageBox(
FromUTF8(format(loc::translate("Error: Games' settings parsing failed. %1%")) % e.what()),
- translate("BOSS: Error"),
+ translate("LOOT: Error"),
wxOK | wxICON_ERROR,
NULL);
return false;
@@ -342,7 +342,7 @@ bool BossGUI::OnInit() {
BOOST_LOG_TRIVIAL(error) << "None of the supported games were detected.";
wxMessageBox(
translate("Error: None of the supported games were detected."),
- translate("BOSS: Error"),
+ translate("LOOT: Error"),
wxOK | wxICON_ERROR,
NULL);
return false;
@@ -359,17 +359,17 @@ bool BossGUI::OnInit() {
BOOST_LOG_TRIVIAL(error) << "Game-specific settings could not be initialised. " << e.what();
wxMessageBox(
FromUTF8(format(loc::translate("Error: Game-specific settings could not be initialised. %1%")) % e.what()),
- translate("BOSS: Error"),
+ translate("LOOT: Error"),
wxOK | wxICON_ERROR,
NULL);
return false;
}
//Create launcher window.
- BOOST_LOG_TRIVIAL(debug) << "Opening the main BOSS window.";
- Launcher * launcher = new Launcher(wxT("BOSS"), _settings, _game, _games);
+ BOOST_LOG_TRIVIAL(debug) << "Opening the main LOOT window.";
+ Launcher * launcher = new Launcher(wxT("LOOT"), _settings, _game, _games);
- launcher->SetIcon(wxIconLocation("BOSS.exe"));
+ launcher->SetIcon(wxIconLocation("LOOT.exe"));
launcher->Show();
SetTopWindow(launcher);
@@ -459,7 +459,7 @@ Launcher::Launcher(const wxChar *title, YAML::Node& settings, Game& game, vector
RedatePluginsItem->Enable(false);
//Set title bar text.
- SetTitle(FromUTF8("BOSS - " + _game.Name()));
+ SetTitle(FromUTF8("LOOT - " + _game.Name()));
//Now set the layout and sizes.
SetMenuBar(MenuBar);
@@ -477,14 +477,14 @@ void Launcher::OnQuit(wxCommandEvent& event) {
}
void Launcher::OnClose(wxCloseEvent& event) {
- BOOST_LOG_TRIVIAL(debug) << "Quiting BOSS.";
+ BOOST_LOG_TRIVIAL(debug) << "Quiting LOOT.";
_settings["Last Game"] = _game.FolderName();
_settings["Games"] = _games;
//Save settings.
- BOOST_LOG_TRIVIAL(debug) << "Saving BOSS settings.";
+ BOOST_LOG_TRIVIAL(debug) << "Saving LOOT settings.";
YAML::Emitter yout;
yout.SetIndent(2);
yout << _settings;
@@ -504,7 +504,7 @@ void Launcher::OnViewLastReport(wxCommandEvent& event) {
else {
//Create viewer window.
BOOST_LOG_TRIVIAL(debug) << "Opening viewer window...";
- Viewer *viewer = new Viewer(this, translate("BOSS: Report Viewer"), FromUTF8(ToFileURL(_game.ReportPath().string())));
+ Viewer *viewer = new Viewer(this, translate("LOOT: Report Viewer"), FromUTF8(ToFileURL(_game.ReportPath().string())));
viewer->Show();
}
BOOST_LOG_TRIVIAL(debug) << "Report displayed.";
@@ -512,7 +512,7 @@ void Launcher::OnViewLastReport(wxCommandEvent& event) {
void Launcher::OnOpenSettings(wxCommandEvent& event) {
BOOST_LOG_TRIVIAL(debug) << "Opening settings window...";
- SettingsFrame *settings = new SettingsFrame(this, translate("BOSS: Settings"), _settings, _games);
+ SettingsFrame *settings = new SettingsFrame(this, translate("LOOT: Settings"), _settings, _games);
settings->ShowModal();
BOOST_LOG_TRIVIAL(debug) << "Settings window opened.";
}
@@ -529,11 +529,11 @@ void Launcher::OnGameChange(wxCommandEvent& event) {
BOOST_LOG_TRIVIAL(error) << "Game-specific settings could not be initialised." << e.what();
wxMessageBox(
FromUTF8(format(loc::translate("Error: Game-specific settings could not be initialised. %1%")) % e.what()),
- translate("BOSS: Error"),
+ translate("LOOT: Error"),
wxOK | wxICON_ERROR,
NULL);
}
- SetTitle(FromUTF8("BOSS - " + _game.Name()));
+ SetTitle(FromUTF8("LOOT - " + _game.Name()));
if (_game.Id() == boss::g_game_tes5)
RedatePluginsItem->Enable(true);
else
@@ -550,7 +550,7 @@ void Launcher::OnHelp(wxCommandEvent& event) {
BOOST_LOG_TRIVIAL(error) << "File \"" << g_path_readme.string() << "\" could not be found.";
wxMessageBox(
FromUTF8(format(loc::translate("Error: \"%1%\" cannot be found.")) % g_path_readme.string()),
- translate("BOSS: Error"),
+ translate("LOOT: Error"),
wxOK | wxICON_ERROR,
this);
}
@@ -566,7 +566,7 @@ void Launcher::OnOpenDebugLog(wxCommandEvent& event) {
BOOST_LOG_TRIVIAL(error) << "File \"" << g_path_log.string() << "\" could not be found.";
wxMessageBox(
FromUTF8(format(loc::translate("Error: \"%1%\" cannot be found.")) % g_path_log.string()),
- translate("BOSS: Error"),
+ translate("LOOT: Error"),
wxOK | wxICON_ERROR,
this);
}
@@ -575,11 +575,11 @@ void Launcher::OnOpenDebugLog(wxCommandEvent& event) {
void Launcher::OnAbout(wxCommandEvent& event) {
BOOST_LOG_TRIVIAL(debug) << "Opening About dialog.";
wxAboutDialogInfo aboutInfo;
- aboutInfo.SetName("BOSS");
+ aboutInfo.SetName("LOOT");
aboutInfo.SetVersion(IntToString(g_version_major) + "." + IntToString(g_version_minor) + "." + IntToString(g_version_patch));
aboutInfo.SetDescription(translate("Load order optimisation for Oblivion, Skyrim, Fallout 3 and Fallout: New Vegas."));
- aboutInfo.SetCopyright("Copyright (C) 2009-2014 BOSS Development Team.");
- aboutInfo.SetWebSite("http://boss-developers.github.io");
+ aboutInfo.SetCopyright("Copyright (C) 2009-2014 LOOT Team.");
+ aboutInfo.SetWebSite("http://loot.github.io");
aboutInfo.SetLicence("This program is free software: you can redistribute it and/or modify\n"
"it under the terms of the GNU General Public License as published by\n"
"the Free Software Foundation, either version 3 of the License, or\n"
@@ -592,7 +592,7 @@ void Launcher::OnAbout(wxCommandEvent& event) {
"\n"
"You should have received a copy of the GNU General Public License\n"
"along with this program. If not, see .");
- aboutInfo.SetIcon(wxIconLocation("BOSS.exe"));
+ aboutInfo.SetIcon(wxIconLocation("LOOT.exe"));
wxAboutBox(aboutInfo);
}
@@ -608,7 +608,7 @@ void Launcher::OnSortPlugins(wxCommandEvent& event) {
boss::PluginGraph graph;
string revision;
- wxProgressDialog *progDia = new wxProgressDialog(translate("BOSS: Working..."),translate("BOSS working..."), 1000, this, wxPD_APP_MODAL|wxPD_AUTO_HIDE|wxPD_ELAPSED_TIME);
+ wxProgressDialog *progDia = new wxProgressDialog(translate("LOOT: Working..."),translate("LOOT working..."), 1000, this, wxPD_APP_MODAL|wxPD_AUTO_HIDE|wxPD_ELAPSED_TIME);
///////////////////////////////////////////////////////
// Load Plugins & Lists
@@ -765,13 +765,13 @@ void Launcher::OnSortPlugins(wxCommandEvent& event) {
///////////////////////////////////////////////////////
/* Need to loop this section. There are 3 ways to exit the loop:
-
+
1. Accept the load order at the preview with no changes.
- 2. Cancel at the preview.
+ 2. Cancel at the preview.
3. Cancel making changes.
Otherwise, the sorting must loop.
-
+
*/
//Check for back-edges, then perform a topological sort.
@@ -803,7 +803,7 @@ void Launcher::OnSortPlugins(wxCommandEvent& event) {
progDia = NULL;
BOOST_LOG_TRIVIAL(debug) << "Displaying load order preview.";
- MiniEditor editor(this, translate("BOSS: Calculated Load Order"), plugins, _game);
+ MiniEditor editor(this, translate("LOOT: Calculated Load Order"), plugins, _game);
long ret = editor.ShowModal();
const std::list edits = editor.GetEditedPlugins();
@@ -811,14 +811,14 @@ void Launcher::OnSortPlugins(wxCommandEvent& event) {
if (ret != wxID_APPLY) {
applyLoadOrder = false;
break;
- }
+ }
else if (edits.empty()) {
applyLoadOrder = true;
break;
}
else {
//Recreate progress dialog.
- progDia = new wxProgressDialog(translate("BOSS: Working..."), translate("Recalculating load order..."), 1000, this, wxPD_APP_MODAL | wxPD_AUTO_HIDE | wxPD_ELAPSED_TIME);
+ progDia = new wxProgressDialog(translate("LOOT: Working..."), translate("Recalculating load order..."), 1000, this, wxPD_APP_MODAL | wxPD_AUTO_HIDE | wxPD_ELAPSED_TIME);
//User accepted edits, now apply them, then loop.
//Apply edits to the graph vertices.
@@ -937,7 +937,7 @@ void Launcher::OnSortPlugins(wxCommandEvent& event) {
} catch (boss::error& e) {
wxMessageBox(
FromUTF8(format(loc::translate("Error: %1%")) % e.what()),
- translate("BOSS: Error"),
+ translate("LOOT: Error"),
wxOK | wxICON_ERROR,
this);
if (progDia != NULL)
@@ -953,7 +953,7 @@ void Launcher::OnSortPlugins(wxCommandEvent& event) {
wxLaunchDefaultBrowser(FromUTF8(ToFileURL(_game.ReportPath().string())));
} else {
//Create viewer window.
- Viewer *viewer = new Viewer(this, translate("BOSS: Report Viewer"), FromUTF8(ToFileURL(_game.ReportPath().string())));
+ Viewer *viewer = new Viewer(this, translate("LOOT: Report Viewer"), FromUTF8(ToFileURL(_game.ReportPath().string())));
viewer->Show();
}
@@ -965,7 +965,7 @@ void Launcher::OnEditMetadata(wxCommandEvent& event) {
//Should probably check for masterlist updates before opening metadata editor.
list installed, mlist_plugins, ulist_plugins;
- wxProgressDialog *progDia = new wxProgressDialog(translate("BOSS: Working..."),translate("BOSS working..."), 1000, this, wxPD_APP_MODAL|wxPD_AUTO_HIDE|wxPD_ELAPSED_TIME);
+ wxProgressDialog *progDia = new wxProgressDialog(translate("LOOT: Working..."),translate("LOOT working..."), 1000, this, wxPD_APP_MODAL|wxPD_AUTO_HIDE|wxPD_ELAPSED_TIME);
//Scan for installed plugins.
BOOST_LOG_TRIVIAL(debug) << "Reading installed plugins' headers.";
@@ -989,7 +989,7 @@ void Launcher::OnEditMetadata(wxCommandEvent& event) {
BOOST_LOG_TRIVIAL(error) << "Masterlist parsing failed. " << e.what();
wxMessageBox(
FromUTF8(format(loc::translate("Error: Masterlist parsing failed. %1%")) % e.what()),
- translate("BOSS: Error"),
+ translate("LOOT: Error"),
wxOK | wxICON_ERROR,
this);
}
@@ -1011,7 +1011,7 @@ void Launcher::OnEditMetadata(wxCommandEvent& event) {
BOOST_LOG_TRIVIAL(error) << "Userlist parsing failed. " << e.what();
wxMessageBox(
FromUTF8(format(loc::translate("Error: Userlist parsing failed. %1%")) % e.what()),
- translate("BOSS: Error"),
+ translate("LOOT: Error"),
wxOK | wxICON_ERROR,
this);
}
@@ -1056,7 +1056,7 @@ void Launcher::OnEditMetadata(wxCommandEvent& event) {
//Create editor window.
BOOST_LOG_TRIVIAL(debug) << "Opening editor window.";
- Editor *editor = new Editor(this, translate("BOSS: Metadata Editor"), _game.UserlistPath().string(), installed, ulist_plugins, lang, _game);
+ Editor *editor = new Editor(this, translate("LOOT: Metadata Editor"), _game.UserlistPath().string(), installed, ulist_plugins, lang, _game);
progDia->Destroy();
@@ -1065,7 +1065,7 @@ void Launcher::OnEditMetadata(wxCommandEvent& event) {
}
void Launcher::OnRedatePlugins(wxCommandEvent& event) {
- wxMessageDialog * dia = new wxMessageDialog(this, translate("This feature is provided so that modders using the Creation Kit may set the load order it uses. A side-effect is that any subscribed Steam Workshop mods will be re-downloaded by Steam. Do you wish to continue?"), translate("BOSS: Warning"), wxYES_NO|wxCANCEL|wxICON_EXCLAMATION);
+ wxMessageDialog * dia = new wxMessageDialog(this, translate("This feature is provided so that modders using the Creation Kit may set the load order it uses. A side-effect is that any subscribed Steam Workshop mods will be re-downloaded by Steam. Do you wish to continue?"), translate("LOOT: Warning"), wxYES_NO|wxCANCEL|wxICON_EXCLAMATION);
if (dia->ShowModal() == wxID_YES) {
BOOST_LOG_TRIVIAL(debug) << "Redating plugins.";
@@ -1076,7 +1076,7 @@ void Launcher::OnRedatePlugins(wxCommandEvent& event) {
BOOST_LOG_TRIVIAL(error) << "Failed to get load order. " << e.what();
wxMessageBox(
FromUTF8(format(loc::translate("Error: Failed to get load order. %1%")) % e.what()),
- translate("BOSS: Error"),
+ translate("LOOT: Error"),
wxOK | wxICON_ERROR,
this);
}
@@ -1113,14 +1113,14 @@ void Launcher::OnRedatePlugins(wxCommandEvent& event) {
BOOST_LOG_TRIVIAL(error) << "Failed to set plugin timestamps. " << e.what();
wxMessageBox(
FromUTF8(format(loc::translate("Error: Failed to set plugin timestamps. %1%")) % e.what()),
- translate("BOSS: Error"),
+ translate("LOOT: Error"),
wxOK | wxICON_ERROR,
this);
}
wxMessageBox(
translate("Plugins were successfully redated."),
- translate("BOSS: Plugin Redate"),
+ translate("LOOT: Plugin Redate"),
wxOK|wxCENTRE,
this);
}
diff --git a/src/gui/main.h b/src/gui/main.h
index 4a5a1ab0..bc7eca97 100644
--- a/src/gui/main.h
+++ b/src/gui/main.h
@@ -1,29 +1,29 @@
-/* BOSS
+/* LOOT
A load order optimisation tool for Oblivion, Skyrim, Fallout 3 and
Fallout: New Vegas.
Copyright (C) 2013-2014 WrinklyNinja
- This file is part of BOSS.
+ This file is part of LOOT.
- BOSS is free software: you can redistribute
+ LOOT 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
+ LOOT 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
+ along with LOOT. If not, see
.
*/
-#ifndef __BOSS_GUI_MAIN__
-#define __BOSS_GUI_MAIN__
+#ifndef __LOOT_GUI_MAIN__
+#define __LOOT_GUI_MAIN__
#include "ids.h"
#include "../backend/game.h"
@@ -35,7 +35,7 @@
//Program class.
class BossGUI : public wxApp {
public:
- bool OnInit(); //Load settings, apply logging and language settings, check if BOSS is already running, detect games, set game to last game or to first detected game if auto, create launcher window.
+ bool OnInit(); //Load settings, apply logging and language settings, check if LOOT is already running, detect games, set game to last game or to first detected game if auto, create launcher window.
private:
wxLocale * wxLoc;
@@ -67,7 +67,7 @@ private:
wxButton * ViewButton;
boss::Game& _game;
- YAML::Node& _settings; //BOSS Settings.
+ YAML::Node& _settings; //LOOT Settings.
std::vector& _games;
};
diff --git a/src/gui/misc.cpp b/src/gui/misc.cpp
index 3daff6ad..920e2279 100644
--- a/src/gui/misc.cpp
+++ b/src/gui/misc.cpp
@@ -1,24 +1,24 @@
-/* BOSS
+/* LOOT
A load order optimisation tool for Oblivion, Skyrim, Fallout 3 and
Fallout: New Vegas.
Copyright (C) 2013-2014 WrinklyNinja
-This file is part of BOSS.
+This file is part of LOOT.
-BOSS is free software: you can redistribute
+LOOT 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
+LOOT 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
+along with LOOT. If not, see
.
*/
@@ -134,7 +134,7 @@ FileEditDialog::FileEditDialog(wxWindow *parent, const wxString& title) : wxDial
bigBox->Add(sizer, 0, wxEXPAND | wxLEFT | wxBOTTOM | wxRIGHT, 15);
SetBackgroundColour(wxColour(255, 255, 255));
- SetIcon(wxIconLocation("BOSS.exe"));
+ SetIcon(wxIconLocation("LOOT.exe"));
SetSizerAndFit(bigBox);
}
@@ -245,7 +245,7 @@ MessageEditDialog::MessageEditDialog(wxWindow *parent, const wxString& title) :
removeBtn->Enable(false);
SetBackgroundColour(wxColour(255, 255, 255));
- SetIcon(wxIconLocation("BOSS.exe"));
+ SetIcon(wxIconLocation("LOOT.exe"));
SetSizerAndFit(bigBox);
}
@@ -310,7 +310,7 @@ void MessageEditDialog::OnEdit(wxCommandEvent& event) {
BOOST_LOG_TRIVIAL(error) << "Attempting to edit message content, but no content row selected.";
wxMessageBox(
translate("Error: No content row selected."),
- translate("BOSS: Error"),
+ translate("LOOT: Error"),
wxOK | wxICON_ERROR,
NULL);
return;
@@ -325,7 +325,7 @@ void MessageEditDialog::OnRemove(wxCommandEvent& event) {
BOOST_LOG_TRIVIAL(error) << "Attempting to remove message content, but no content row selected.";
wxMessageBox(
translate("Error: No content row selected."),
- translate("BOSS: Error"),
+ translate("LOOT: Error"),
wxOK | wxICON_ERROR,
NULL);
return;
@@ -377,7 +377,7 @@ TagEditDialog::TagEditDialog(wxWindow *parent, const wxString& title) : wxDialog
_state->SetSelection(0);
SetBackgroundColour(wxColour(255, 255, 255));
- SetIcon(wxIconLocation("BOSS.exe"));
+ SetIcon(wxIconLocation("LOOT.exe"));
SetSizerAndFit(bigBox);
}
@@ -448,7 +448,7 @@ DirtInfoEditDialog::DirtInfoEditDialog(wxWindow * parent, const wxString& title)
bigBox->Add(sizer, 0, wxEXPAND | wxLEFT | wxBOTTOM | wxRIGHT, 15);
SetBackgroundColour(wxColour(255, 255, 255));
- SetIcon(wxIconLocation("BOSS.exe"));
+ SetIcon(wxIconLocation("LOOT.exe"));
SetSizerAndFit(bigBox);
}
diff --git a/src/gui/misc.h b/src/gui/misc.h
index 5cb6584b..4835a0b9 100644
--- a/src/gui/misc.h
+++ b/src/gui/misc.h
@@ -1,28 +1,28 @@
-/* BOSS
+/* LOOT
A load order optimisation tool for Oblivion, Skyrim, Fallout 3 and
Fallout: New Vegas.
Copyright (C) 2013-2014 WrinklyNinja
-This file is part of BOSS.
+This file is part of LOOT.
-BOSS is free software: you can redistribute
+LOOT 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
+LOOT 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
+along with LOOT. If not, see
.
*/
-#ifndef __BOSS_GUI_MISC__
-#define __BOSS_GUI_MISC__
+#ifndef __LOOT_GUI_MISC__
+#define __LOOT_GUI_MISC__
#include "ids.h"
#include "../backend/metadata.h"
diff --git a/src/gui/settings.cpp b/src/gui/settings.cpp
index 3f3df857..e83483a9 100644
--- a/src/gui/settings.cpp
+++ b/src/gui/settings.cpp
@@ -1,24 +1,24 @@
-/* BOSS
+/* LOOT
A load order optimisation tool for Oblivion, Skyrim, Fallout 3 and
Fallout: New Vegas.
Copyright (C) 2013-2014 WrinklyNinja
- This file is part of BOSS.
+ This file is part of LOOT.
- BOSS is free software: you can redistribute
+ LOOT 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
+ LOOT 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
+ along with LOOT. If not, see
.
*/
@@ -74,7 +74,7 @@ SettingsFrame::SettingsFrame(wxWindow *parent, const wxString& title, YAML::Node
//Set up list columns.
gamesList->AppendColumn(translate("Name"));
gamesList->AppendColumn(translate("Base Game Type"));
- gamesList->AppendColumn(translate("BOSS Folder Name"));
+ gamesList->AppendColumn(translate("LOOT Folder Name"));
gamesList->AppendColumn(translate("Master File"));
gamesList->AppendColumn(translate("Masterlist Repository URL"));
gamesList->AppendColumn(translate("Masterlist Repository Branch"));
@@ -128,7 +128,7 @@ SettingsFrame::SettingsFrame(wxWindow *parent, const wxString& title, YAML::Node
bigBox->AddSpacer(10);
- bigBox->Add(new wxStaticText(this, wxID_ANY, translate("Language and game changes will be applied after BOSS is restarted.")), wholeItem);
+ bigBox->Add(new wxStaticText(this, wxID_ANY, translate("Language and game changes will be applied after LOOT is restarted.")), wholeItem);
//Need to add 'OK' and 'Cancel' buttons.
wxSizer * sizer = CreateSeparatedButtonSizer(wxOK|wxCANCEL);
@@ -141,17 +141,17 @@ SettingsFrame::SettingsFrame(wxWindow *parent, const wxString& title, YAML::Node
SetDefaultValues();
//Tooltips.
- DebugVerbosityChoice->SetToolTip(translate("The output is logged to the BOSSDebugLog.txt file."));
+ DebugVerbosityChoice->SetToolTip(translate("The output is logged to the LOOTDebugLog.txt file."));
//Now set the layout and sizes.
SetBackgroundColour(wxColour(255,255,255));
- SetIcon(wxIconLocation("BOSS.exe"));
+ SetIcon(wxIconLocation("LOOT.exe"));
SetSizerAndFit(bigBox);
}
void SettingsFrame::SetDefaultValues() {
- BOOST_LOG_TRIVIAL(debug) << "Setting default values for BOSS's settings.";
+ BOOST_LOG_TRIVIAL(debug) << "Setting default values for LOOT's settings.";
if (_settings["Language"]) {
LanguageChoice->SetSelection(boss::Language(_settings["Language"].as()).Code());
@@ -277,7 +277,7 @@ void SettingsFrame::OnGameSelect(wxListEvent& event) {
void SettingsFrame::OnAddGame(wxCommandEvent& event) {
BOOST_LOG_TRIVIAL(debug) << "Adding new game to settings.";
- GameEditDialog * rowDialog = new GameEditDialog(this, translate("BOSS: Add Game"));
+ GameEditDialog * rowDialog = new GameEditDialog(this, translate("LOOT: Add Game"));
if (rowDialog->ShowModal() == wxID_OK) {
@@ -285,7 +285,7 @@ void SettingsFrame::OnAddGame(wxCommandEvent& event) {
BOOST_LOG_TRIVIAL(error) << "Tried to add a new game with no path or registry key given.";
wxMessageBox(
translate("Error: A path and/or registry key is required. Row will not be added."),
- translate("BOSS: Error"),
+ translate("LOOT: Error"),
wxOK | wxICON_ERROR,
this);
return;
@@ -297,7 +297,7 @@ void SettingsFrame::OnAddGame(wxCommandEvent& event) {
BOOST_LOG_TRIVIAL(error) << "Tried to add a new game with the same name as one that is already defined.";
wxMessageBox(
translate("Error: A game with this name is already defined. Row will not be added."),
- translate("BOSS: Error"),
+ translate("LOOT: Error"),
wxOK | wxICON_ERROR,
this);
return;
@@ -305,7 +305,7 @@ void SettingsFrame::OnAddGame(wxCommandEvent& event) {
BOOST_LOG_TRIVIAL(error) << "Tried to add a new game with the same folder as one that is already defined.";
wxMessageBox(
translate("Error: A game with this folder name is already defined. Row will not be added."),
- translate("BOSS: Error"),
+ translate("LOOT: Error"),
wxOK | wxICON_ERROR,
this);
return;
@@ -327,7 +327,7 @@ void SettingsFrame::OnAddGame(wxCommandEvent& event) {
void SettingsFrame::OnEditGame(wxCommandEvent& event) {
BOOST_LOG_TRIVIAL(debug) << "Editing game settings.";
- GameEditDialog * rowDialog = new GameEditDialog(this, translate("BOSS: Edit Game"));
+ GameEditDialog * rowDialog = new GameEditDialog(this, translate("LOOT: Edit Game"));
long i = gamesList->GetFirstSelected();
@@ -349,7 +349,7 @@ void SettingsFrame::OnEditGame(wxCommandEvent& event) {
BOOST_LOG_TRIVIAL(error) << "Tried to blank a game's name field.";
wxMessageBox(
translate("Error: Name is required. Row will not be added."),
- translate("BOSS: Error"),
+ translate("LOOT: Error"),
wxOK | wxICON_ERROR,
this);
return;
@@ -357,7 +357,7 @@ void SettingsFrame::OnEditGame(wxCommandEvent& event) {
BOOST_LOG_TRIVIAL(error) << "Tried to blank a game's folder field.";
wxMessageBox(
translate("Error: Folder is required. Row will not be added."),
- translate("BOSS: Error"),
+ translate("LOOT: Error"),
wxOK | wxICON_ERROR,
this);
return;
@@ -365,7 +365,7 @@ void SettingsFrame::OnEditGame(wxCommandEvent& event) {
BOOST_LOG_TRIVIAL(error) << "Tried to edit a game with no path or registry key given.";
wxMessageBox(
translate("Error: A path and/or registry key is required. Row will not be added."),
- translate("BOSS: Error"),
+ translate("LOOT: Error"),
wxOK | wxICON_ERROR,
this);
return;
@@ -429,7 +429,7 @@ GameEditDialog::GameEditDialog(wxWindow *parent, const wxString& title) : wxDial
GridSizer->Add(new wxStaticText(this, wxID_ANY, translate("Type:")), leftItem);
GridSizer->Add(_type, rightItem);
- GridSizer->Add(new wxStaticText(this, wxID_ANY, translate("BOSS Folder Name (required):")), leftItem);
+ GridSizer->Add(new wxStaticText(this, wxID_ANY, translate("LOOT Folder Name (required):")), leftItem);
GridSizer->Add(_folderName, rightItem);
GridSizer->Add(new wxStaticText(this, wxID_ANY, translate("Master File:")), leftItem);
@@ -461,7 +461,7 @@ GameEditDialog::GameEditDialog(wxWindow *parent, const wxString& title) : wxDial
_type->SetSelection(0);
SetBackgroundColour(wxColour(255,255,255));
- SetIcon(wxIconLocation("BOSS.exe"));
+ SetIcon(wxIconLocation("LOOT.exe"));
SetSizerAndFit(bigBox);
}
diff --git a/src/gui/settings.h b/src/gui/settings.h
index e7aefe14..c08c8cac 100644
--- a/src/gui/settings.h
+++ b/src/gui/settings.h
@@ -1,29 +1,29 @@
-/* BOSS
+/* LOOT
A load order optimisation tool for Oblivion, Skyrim, Fallout 3 and
Fallout: New Vegas.
Copyright (C) 2013-2014 WrinklyNinja
- This file is part of BOSS.
+ This file is part of LOOT.
- BOSS is free software: you can redistribute
+ LOOT 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
+ LOOT 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
+ along with LOOT. If not, see
.
*/
-#ifndef __BOSS_GUI_SETTINGS__
-#define __BOSS_GUI_SETTINGS__
+#ifndef __LOOT_GUI_SETTINGS__
+#define __LOOT_GUI_SETTINGS__
#include "ids.h"
#include "../backend/game.h"
diff --git a/src/gui/viewer.cpp b/src/gui/viewer.cpp
index 9d5d94f6..1eb8fae5 100644
--- a/src/gui/viewer.cpp
+++ b/src/gui/viewer.cpp
@@ -1,24 +1,24 @@
-/* BOSS
+/* LOOT
A load order optimisation tool for Oblivion, Skyrim, Fallout 3 and
Fallout: New Vegas.
Copyright (C) 2013-2014 WrinklyNinja
- This file is part of BOSS.
+ This file is part of LOOT.
- BOSS is free software: you can redistribute
+ LOOT 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
+ LOOT 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
+ along with LOOT. If not, see
.
*/
@@ -38,7 +38,7 @@ Viewer::Viewer(wxWindow *parent, const wxString& title, const wxString& url) : w
SetSizer(topsizer);
SetSize(800,600);
- SetIcon(wxIconLocation("BOSS.exe"));
+ SetIcon(wxIconLocation("LOOT.exe"));
}
void Viewer::OnNavigationStart(wxWebViewEvent& event) {
diff --git a/src/gui/viewer.h b/src/gui/viewer.h
index 39f96d4f..2bde5c2e 100644
--- a/src/gui/viewer.h
+++ b/src/gui/viewer.h
@@ -1,29 +1,29 @@
-/* BOSS
+/* LOOT
A load order optimisation tool for Oblivion, Skyrim, Fallout 3 and
Fallout: New Vegas.
Copyright (C) 2013-2014 WrinklyNinja
- This file is part of BOSS.
+ This file is part of LOOT.
- BOSS is free software: you can redistribute
+ LOOT 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
+ LOOT 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
+ along with LOOT. If not, see
.
*/
-#ifndef __BOSS_GUI_VIEWER__
-#define __BOSS_GUI_VIEWER__
+#ifndef __LOOT_GUI_VIEWER__
+#define __LOOT_GUI_VIEWER__
#include "ids.h"