Small fix

This commit is contained in:
fed 2024-02-14 19:41:17 +01:00
parent 4c638a198a
commit 7efc76aca0

View File

@ -154,13 +154,6 @@ namespace language
{ {
utils::hook::call(0x14060AFFB, get_loc_language_string); utils::hook::call(0x14060AFFB, get_loc_language_string);
if (utils::io::file_exists(OLD_LANGUAGE_FILE))
{
const auto lang = utils::io::read_file(OLD_LANGUAGE_FILE);
config::set("language", lang);
utils::io::remove_file(OLD_LANGUAGE_FILE);
}
std::memcpy(languages, game::languages.get(), sizeof(game::language_values) * game::LANGUAGE_COUNT_ORIGINAL); std::memcpy(languages, game::languages.get(), sizeof(game::language_values) * game::LANGUAGE_COUNT_ORIGINAL);
languages[game::LANGUAGE_TURKISH].name = "turkish"; languages[game::LANGUAGE_TURKISH].name = "turkish";
languages[game::LANGUAGE_TURKISH].shortname = "tur"; languages[game::LANGUAGE_TURKISH].shortname = "tur";