From e244e80844dab984be5e66952798ff939e5bfa87 Mon Sep 17 00:00:00 2001 From: Oliver Hamlet Date: Sat, 28 Nov 2015 19:55:24 +0000 Subject: [PATCH] Remove lo_set_game_master() usage It no longer does anything, except cause errors to be thrown if it's passed invalid parameters. --- src/backend/game/load_order_handler.cpp | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/src/backend/game/load_order_handler.cpp b/src/backend/game/load_order_handler.cpp index a5f3528b..02fb8d4d 100644 --- a/src/backend/game/load_order_handler.cpp +++ b/src/backend/game/load_order_handler.cpp @@ -95,28 +95,6 @@ namespace loot { lo_cleanup(); throw error(error::liblo_error, err); } - - if (game.Id() != GameSettings::tes5) { - ret = lo_set_game_master(_gh, game.Master().c_str()); - if (ret != LIBLO_OK && ret != LIBLO_WARN_BAD_FILENAME && ret != LIBLO_WARN_INVALID_LIST && ret != LIBLO_WARN_LO_MISMATCH) { - const char * e = nullptr; - string err; - lo_get_error_message(&e); - lo_destroy_handle(_gh); - _gh = nullptr; - - if (e == nullptr) { - BOOST_LOG_TRIVIAL(error) << "libloadorder failed to initialise game master file support. Details could not be fetched."; - err = lc::translate("libloadorder failed to initialise game master file support. Details could not be fetched.").str(); - } - else { - BOOST_LOG_TRIVIAL(error) << "libloadorder failed to initialise game master file support. Details: " << e; - err = lc::translate("libloadorder failed to initialise game master file support. Details:").str() + " " + e; - } - lo_cleanup(); - throw error(error::liblo_error, err); - } - } } std::unordered_set LoadOrderHandler::GetActivePlugins() const {