diff --git a/src/main/scala/com/skyline/warlangmod/App.scala b/src/main/scala/com/skyline/warlangmod/App.scala index e392f67..fd64ad4 100644 --- a/src/main/scala/com/skyline/warlangmod/App.scala +++ b/src/main/scala/com/skyline/warlangmod/App.scala @@ -4,12 +4,17 @@ import java.io.FileWriter object App { def run(inputFileName: String, originalFile: String, outputFileName: String): Unit = { + val parsingService = ParsingService.instance val translationOverwrite = TranslationOverwriteService.instance val outputService = Output.instance + + val moddedTranslations = parsingService.translations(inputFileName) val originalUpdatedTranslations = parsingService.translations(originalFile) val updatedModdedFile = translationOverwrite.overwrite(originalUpdatedTranslations, moddedTranslations) + + outputService.write(updatedModdedFile, outputFileName) } }