Remove lo_set_game_master() usage

It no longer does anything, except cause errors to be thrown if it's
passed invalid parameters.
This commit is contained in:
Oliver Hamlet
2015-11-28 19:55:24 +00:00
parent 442a94718f
commit e244e80844
-22
View File
@@ -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<std::string> LoadOrderHandler::GetActivePlugins() const {