group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
UserSettings.hpp File Reference
#include "InputBindings.hpp"
#include <string>
Include dependency graph for UserSettings.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  UserSettings
 Per-user gameplay settings loaded from SDL's pref-path TOML file. More...

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.