[REQUEST] Ability to reload config at runtime
solonovamax opened this issue ยท 0 comments
Description:
Ability to reload config at runtime
Reason:
Would allow users to change config values without having to relaunch the entire game.
This could be done a few ways:
FileWatcher
- Can be a pain in the ass to work with
- But also the ""correct"" solution
- Here's a few things I found as alternatives to using
FileWatcher
in kotlin (well, they useFileWatcher
internally, and make the api less shit):- https://github.com/Shengaero/komodo
- I recommend using the kotlinx.coroutines api, bc the other one is kinda yucky and has a
while (true)
lol
- I recommend using the kotlinx.coroutines api, bc the other one is kinda yucky and has a
- https://scribe.rip/kotlin-watchservice-a-better-file-watcher-using-channels-coroutines-and-sealed-classes-7ab5c9df3ada
- https://github.com/Shengaero/komodo
- Add a
/indrev reload
command, which reloads the config.