1
0
mirror of https://github.com/DanilaFe/abacus synced 2026-01-10 01:05:20 +00:00

Load definition files.

This commit is contained in:
2017-11-23 20:19:27 -08:00
parent 8f682e96af
commit 50cc51d089
2 changed files with 11 additions and 15 deletions

View File

@@ -63,13 +63,13 @@ class Abacus(val configuration: Configuration) {
* Reloads the Abacus core.
*/
fun reload(){
pluginManager.reload()
with(mutableContext) {
numberImplementation = pluginManager.numberImplementationFor(configuration.numberImplementation)
?: StandardPlugin.IMPLEMENTATION_NAIVE
with(mutableContext){
clearVariables()
clearDefinitions()
}
pluginManager.reload()
mutableContext.numberImplementation = pluginManager.numberImplementationFor(configuration.numberImplementation)
?: StandardPlugin.IMPLEMENTATION_NAIVE
}
/**
* Merges the current context with the provided one, updating