#include #include // #include "main_window.hpp" #include "stb_image.h" #include "demo.hpp" void setupLogging() { spdlog::cfg::load_env_levels(); spdlog::set_pattern("[%H:%M:%S %z] [%^%L%$] [thread %t] %v"); } int main(int argc, char* argv[]) { static_cast(argc); static_cast(argv); setupLogging(); fud::String filename{"Excel Saga Vol. 01/000.jpg"}; return bookmouse::demo(filename); #if 0 bookmouse::BookmouseApp bookmouse{}; QCommandLineParser parser; parser.setApplicationDescription(QApplication::translate("main", "A comic book and manga reader")); parser.addHelpOption(); parser.addVersionOption(); parser.process(app); return app.exec(); #endif return 0; } void load_levels_example() { // Set the log level to "info" and mylogger to "trace": // SPDLOG_LEVEL=info,mylogger=trace && ./example spdlog::cfg::load_env_levels(); // or from command line: // ./example SPDLOG_LEVEL=info,mylogger=trace // #include "spdlog/cfg/argv.h" // for loading levels from argv // spdlog::cfg::load_argv_levels(args, argv); }