Some minor cleanup.

This commit is contained in:
WrinklyNinja
2014-01-12 11:29:49 +00:00
parent b2a602113a
commit 8cf966fa20
3 changed files with 5 additions and 14 deletions
-7
View File
@@ -264,11 +264,6 @@ 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.
/**
@brief Loads the masterlist and userlist from the paths specified.
@details Can be called multiple times, each time replacing the previously-loaded data.
@@ -350,8 +345,6 @@ BOSS_API unsigned int boss_get_plugin_messages (boss_db db, const char * const p
@returns A return code.
*/
// Outputs the first warning message found for the given plugin that warns about dirty edits (ie. no message, in which case *message == NULL). needsCleaning is one of the plugin cleanliness codes above.
BOSS_API unsigned int boss_get_dirty_message (boss_db db, const char * const plugin,
boss_message * const message,
unsigned int * const needsCleaning);
+1 -1
View File
@@ -211,7 +211,7 @@ namespace boss {
boost::filesystem::path GetLocalAppDataPath() {
#if _WIN32 || _WIN64
HWND owner;
HWND owner = 0;
TCHAR path[MAX_PATH];
BOOST_LOG_TRIVIAL(trace) << "Getting path to %LOCALAPPDATA%.";
+4 -6
View File
@@ -78,16 +78,14 @@ namespace YAML {
if (!node.IsMap() || !node["folder"] || !node["type"])
return false;
boss::Game game(node["folder"].as<std::string>());
if (node["type"].as<std::string>() == boss::Game(boss::g_game_tes4).FolderName())
rhs = boss::Game(boss::g_game_tes4, game.FolderName());
rhs = boss::Game(boss::g_game_tes4, node["folder"].as<std::string>());
else if (node["type"].as<std::string>() == boss::Game(boss::g_game_tes5).FolderName())
rhs = boss::Game(boss::g_game_tes5, game.FolderName());
rhs = boss::Game(boss::g_game_tes5, node["folder"].as<std::string>());
else if (node["type"].as<std::string>() == boss::Game(boss::g_game_fo3).FolderName())
rhs = boss::Game(boss::g_game_fo3, game.FolderName());
rhs = boss::Game(boss::g_game_fo3, node["folder"].as<std::string>());
else if (node["type"].as<std::string>() == boss::Game(boss::g_game_fonv).FolderName())
rhs = boss::Game(boss::g_game_fonv, game.FolderName());
rhs = boss::Game(boss::g_game_fonv, node["folder"].as<std::string>());
else
return false;