Finished the first pass of moving everything around and cleaning up as much as possible.

This commit is contained in:
Zed A. Shaw 2025-01-17 03:45:05 -05:00
parent d47f6f996d
commit adfb6367d7
9 changed files with 163 additions and 87 deletions

19
config.hpp Normal file
View file

@ -0,0 +1,19 @@
#pragma once
#include <nlohmann/json.hpp>
#include <fstream>
#include <codecvt>
struct Config {
nlohmann::json $config;
std::string $src_path;
Config(const std::string src_path);
Config(nlohmann::json config, std::string src_path)
: $config(config), $src_path(src_path) {}
nlohmann::json &operator[](const std::string &key);
nlohmann::json &json() { return $config; };
std::wstring wstring(const std::string main_key);
std::wstring wstring(const std::string main_key, const std::string sub_key);
};