Skip to content

Commit

Permalink
presenter: Additional log messages for QML init.
Browse files Browse the repository at this point in the history
  • Loading branch information
heinezen committed Oct 8, 2023
1 parent 3756fbc commit 863f856
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion assets/test/nyan/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
install(DIRECTORY "."
DESTINATION "${ASSET_DIR}/test/nyan"
FILES_MATCHING PATTERN "*.qml"
FILES_MATCHING PATTERN "*.nyan"
)
3 changes: 3 additions & 0 deletions libopenage/presenter/presenter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,16 +158,19 @@ void Presenter::init_gui() {
//// -- gui initialization
// TODO: Do not use test GUI
util::Path qml_root = this->root_dir / "assets" / "test" / "qml";
log::log(INFO << "Presenter: Setting QML root to " << qml_root);
if (not qml_root.is_dir()) {
throw Error{ERR << "could not find qml root folder " << qml_root};
}

util::Path qml_assets = this->root_dir / "assets";
log::log(INFO << "Presenter: Setting QML asset path to " << qml_assets);
if (not qml_assets.is_dir()) {
throw Error{ERR << "could not find asset root folder " << qml_assets};
}

util::Path qml_root_file = qml_root / "main.qml";
log::log(INFO << "Presenter: Setting QML root file to " << qml_root_file);
if (not qml_root_file.is_file()) {
throw Error{ERR << "could not find main.qml file " << qml_root_file};
}
Expand Down

0 comments on commit 863f856

Please sign in to comment.