mirror of
https://github.com/DanilaFe/abacus
synced 2026-01-26 00:25:20 +00:00
Compare commits
2 Commits
website-up
...
fix-loadin
| Author | SHA1 | Date | |
|---|---|---|---|
| 9f11fd20a2 | |||
| 5d2a988f75 |
@@ -45,7 +45,9 @@ class ExtendedConfiguration(var computationDelay: Double = 0.0,
|
|||||||
* @param tomlFile the file from disk to load.
|
* @param tomlFile the file from disk to load.
|
||||||
*/
|
*/
|
||||||
constructor(tomlFile: File) : this() {
|
constructor(tomlFile: File) : this() {
|
||||||
copyFrom(Toml(DEFAULT_TOML_READER).read(tomlFile).to(ExtendedConfiguration::class.java))
|
val toml = Toml(DEFAULT_TOML_READER)
|
||||||
|
if(tomlFile.exists()) toml.read(tomlFile)
|
||||||
|
copyFrom(toml.to(ExtendedConfiguration::class.java))
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user