32int main(
int argc,
char* argv[])
37 "Version: {}.{}.{}", MAYAFLUX_VERSION_MAJOR, MAYAFLUX_VERSION_MINOR, MAYAFLUX_VERSION_PATCH);
40 bool config_override =
false;
41#ifdef MAYAFLUX_CONFIG_OVERRIDE
42 config_override =
true;
45 std::string config_path;
46 for (
int i = 1; i < argc; ++i) {
47 if (std::string_view(argv[i]) ==
"--config" && i + 1 < argc) {
48 config_path = argv[++i];
49 }
else if (std::string_view(argv[i]) ==
"--config-override") {
50 config_override =
true;
54 if (config_path.empty()) {
55 namespace fs = std::filesystem;
56 auto candidate = fs::path(Config::SOURCE_DIR) /
"mayaflux.json";
57 if (fs::exists(candidate))
58 config_path = candidate.string();
61 if (config_override) {
63 "Config override active: file loads after settings()");
65 if (!config_path.empty())
68 if (!config_path.empty())
77 MF_LOG(Journal::Component::USER, Journal::Context::Init,
"=== AudioVisual Processing Active ===");
81 std::cout <<
"Press Ctrl-C to stop...\n";
86 }
catch (
const std::exception& e) {
87 std::cerr <<
"Error: " << e.what() << std::flush;
int main(int argc, char *argv[])