mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Some minor cleanup.
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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%.";
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user