33int main(
int argc,
char* argv[])
38 "Version: {}.{}.{}", MAYAFLUX_VERSION_MAJOR, MAYAFLUX_VERSION_MINOR, MAYAFLUX_VERSION_PATCH);
41 bool config_override =
false;
42#ifdef MAYAFLUX_CONFIG_OVERRIDE
43 config_override =
true;
46 std::string config_path;
47 for (
int i = 1; i < argc; ++i) {
48 if (std::string_view(argv[i]) ==
"--config" && i + 1 < argc) {
49 config_path = argv[++i];
50 }
else if (std::string_view(argv[i]) ==
"--config-override") {
51 config_override =
true;
55 if (config_path.empty()) {
56 namespace fs = std::filesystem;
57 auto candidate = fs::path(Config::SOURCE_DIR) /
"mayaflux.json";
58 if (fs::exists(candidate))
59 config_path = candidate.string();
62 if (config_override) {
64 "Config override active: file loads after settings()");
66 if (!config_path.empty())
69 if (!config_path.empty())
78 MF_LOG(Journal::Component::USER, Journal::Context::Init,
"=== AudioVisual Processing Active ===");
82 std::cout <<
"Press Enter [Return] to stop...\n";
87 }
catch (
const std::exception& e) {
88 std::cerr <<
"Error: " << e.what() << std::flush;
int main(int argc, char *argv[])