Da config version

This commit is contained in:
nelle 2024-02-16 14:02:09 -07:00
parent 5ceb394462
commit 1a70f3f04f

View file

@ -41,7 +41,13 @@ class Config {
} }
//Convert values from the config file to in-code variables, //Convert values from the config file to in-code variables,
// so we can use them later, also make them public because I said so. // so we can use them later, also make them public because I said so.
val configVersion: Int = (prop.getProperty("configVersion")).toInt() val configVersion =
if ((prop.getProperty("configVersion")).toInt() == 1) {
println("Correct config version set!")
}
else {
throw Exception("The config version is not correct! Correct version is: " + 1)
}
// Possible answers: SWING, XTERM, ECMA48 // Possible answers: SWING, XTERM, ECMA48
val backendType = val backendType =