[BROKEN] This build is totally broken. DONOT USE.

This commit is contained in:
Zed A. Shaw 2025-05-08 01:12:12 -04:00
parent 8dc70ad1ed
commit f3f2e90cd2
15 changed files with 123 additions and 81 deletions

19
include/sfml/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, const std::string sub_key);
std::vector<std::string> keys();
};