From 4f4a2c5e6aa961ea36f28f6693d731b452081629 Mon Sep 17 00:00:00 2001 From: NeeEoo Date: Wed, 10 Apr 2024 19:07:54 +0200 Subject: [PATCH] Small Cleanup --- source/funkin/backend/utils/TranslationUtil.hx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/funkin/backend/utils/TranslationUtil.hx b/source/funkin/backend/utils/TranslationUtil.hx index 208f77ff..47094347 100644 --- a/source/funkin/backend/utils/TranslationUtil.hx +++ b/source/funkin/backend/utils/TranslationUtil.hx @@ -124,15 +124,15 @@ class TranslationUtil if(Assets.exists(path)) { config = IniUtil.parseAsset(path, config); - langName = config["name"]; } else { // if there was no config.ini, use the file name as the language name for(file in Paths.getFolderContent(mainPath + lang).sortAlphabetically()) { if(Path.extension(path = '$lang/$file') == "xml") { - config["name"] = (langName = Path.withoutExtension(file)); + config["name"] = Path.withoutExtension(file); break; } } } + langName = config["name"]; nameMap.set(lang, langName); langConfigs.set(lang, config); foundLanguages.push('$lang/$langName');