Da config version
This commit is contained in:
parent
5ceb394462
commit
1a70f3f04f
1 changed files with 7 additions and 1 deletions
|
@ -41,7 +41,13 @@ class Config {
|
|||
}
|
||||
//Convert values from the config file to in-code variables,
|
||||
// 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
|
||||
val backendType =
|
||||
|
|
Loading…
Reference in a new issue