Skip to content

Commit

Permalink
Update App.scala
Browse files Browse the repository at this point in the history
  • Loading branch information
Skyline300 committed Jul 17, 2024
1 parent 257013e commit 9dc2624
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/scala/com/skyline/warlangmod/App.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

0 comments on commit 9dc2624

Please sign in to comment.