diff --git a/src/main.cpp b/src/main.cpp index 98b0d86..a050f0a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -4,16 +4,17 @@ #include int main(int argc, char* argv[]) { - if (argc != 2) { - std::cerr << "Usage: " << argv[0] << " " << std::endl; + std::filesystem::path config_path = std::filesystem::path(std::getenv("HOME")) / ".config/dropshell_template_registry/config.json"; + std::filesystem::create_directories(config_path.parent_path()); + + dropshell::ServerConfig config; + if (!dropshell::load_config(config_path, config)) { + std::cerr << "Failed to load configuration at "<

Dropshell Template Registry

"); return;