Actually load the platform config rather than the default config twice

This commit is contained in:
Thomas Goyne 2014-06-27 17:55:59 -07:00
parent c9608ab610
commit 13fe4fe9ff

View file

@ -197,7 +197,7 @@ bool AegisubApp::OnInit() {
try {
if (!config::opt)
config::opt = new agi::Options(config::path->Decode("?user/config.json"), GET_DEFAULT_CONFIG(default_config));
boost::interprocess::ibufferstream stream((const char *)default_config, sizeof(default_config));
boost::interprocess::ibufferstream stream((const char *)default_config_platform, sizeof(default_config_platform));
config::opt->ConfigNext(stream);
} catch (agi::Exception& e) {
LOG_E("config/init") << "Caught exception: " << e.GetMessage();