mirror of
https://github.com/J-D-K/JKSV.git
synced 2026-08-25 20:09:31 -05:00
Add Keep Local Backups to config. Addresses #284.
This commit is contained in:
@@ -9,11 +9,11 @@ namespace
|
||||
|
||||
void config::initialize()
|
||||
{
|
||||
s_context.create_directory();
|
||||
const bool configLoaded = s_context.load();
|
||||
if (configLoaded) { return; }
|
||||
|
||||
// This is needed so new config options can be added without invalidating old configurations.
|
||||
s_context.reset();
|
||||
|
||||
s_context.create_directory();
|
||||
s_context.load();
|
||||
}
|
||||
|
||||
void config::reset_to_default() { s_context.reset(); }
|
||||
|
||||
Reference in New Issue
Block a user