Skip to content

Commit

Permalink
Move GUI2 schema into the schema directory
Browse files Browse the repository at this point in the history
  • Loading branch information
CelticMinstrel committed Mar 11, 2018
1 parent 8128614 commit 19cdacf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
File renamed without changes.
4 changes: 2 additions & 2 deletions src/gui/gui.cpp
Expand Up @@ -48,7 +48,7 @@ void init()
//
config cfg;
try {
schema_validation::schema_validator validator(filesystem::get_wml_location("gui/schema.cfg"));
schema_validation::schema_validator validator(filesystem::get_wml_location("schema/gui.cfg"));

preproc_map preproc(game_config::config_cache::instance().get_preproc_map());
filesystem::scoped_istream stream = preprocess_file(filesystem::get_wml_location("gui/_main.cfg"), &preproc);
Expand All @@ -58,7 +58,7 @@ void init()
ERR_GUI_P << e.what() << '\n';
ERR_GUI_P << "Setting: could not read file 'data/gui/_main.cfg'." << std::endl;
} catch(const abstract_validator::error& e) {
ERR_GUI_P << "Setting: could not read file 'data/gui/schema.cfg'." << std::endl;
ERR_GUI_P << "Setting: could not read file 'data/schema/gui.cfg'." << std::endl;
ERR_GUI_P << e.message;
}

Expand Down

0 comments on commit 19cdacf

Please sign in to comment.