From aa234ebef5fd3ec7c8b21985ba03c600574ab608 Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 30 Apr 2025 21:39:07 +1200 Subject: [PATCH] . --- src/main.cpp | 15 ++++++++------- src/server.cpp | 2 +- 2 files changed, 9 insertions(+), 8 deletions(-) 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;