|
group2 0.1.0
CSE 125 Group 2
|
#include "UserSettings.hpp"#include <SDL3/SDL_error.h>#include <SDL3/SDL_filesystem.h>#include <SDL3/SDL_log.h>#include <SDL3/SDL_stdinc.h>#include <algorithm>#include <filesystem>#include <fstream>#include <toml++/toml.hpp>Namespaces | |
| namespace | user_settings |
| User-settings persistence helpers. | |
Functions | |
| std::string | user_settings::getPath () |
| Return the full path to the per-user settings TOML file. | |
| UserSettings | user_settings::load (const std::string &path) |
| Load settings from disk, falling back to defaults for missing or invalid values. | |
| bool | user_settings::save (const std::string &path, const UserSettings &settings) |
| Save settings to disk. | |