Skip to content

Commit

Permalink
Merge pull request #4 from Skyline300/pr/3
Browse files Browse the repository at this point in the history
I accidentally added this in another branch but whatever
  • Loading branch information
Skyline300 authored Apr 22, 2024
2 parents d49bac8 + a2c2f89 commit 864fe83
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/main/scala/com/skyline/warlangmod/Output.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package com.skyline.warlangmod

trait Output {
def write(filename: String): Unit
}

object Output {
def apply(): Output = new Output {
import java.io.FileWriter
override def write(filename: String): Unit = {
val updatedFile = new FileWriter(filename)
updatedFile.write(uptodateModdedTranslationFile.render())
updatedFile.close()
}
}
}

0 comments on commit 864fe83

Please sign in to comment.