WoW Model Viewer
Your premiere tool for viewing, equipping and animating World of Warcraft models.
Loading...
Searching...
No Matches
AppSettings.h
Go to the documentation of this file.
1#pragma once
2
3#include <string>
4#include <glm/glm.hpp>
5
8{
9 // ---- Paths ----
10 std::string gamePath; // WoW Data folder
11
12 // ---- Game loading ----
13 bool enableDbCache = false;
14 bool showConsole = false;
15
16 // ---- Viewport ----
17 bool drawGrid = true;
18 glm::vec3 bgColor{0.22f, 0.22f, 0.22f};
19
20 // ---- Font ----
21 int currentFont = 0;
22 float fontSize = 18.0f;
23
24 // ---- Fixed paths ----
25 static constexpr const char* configPath = "userSettings/Config.ini";
26 static constexpr const char* imguiIniPath = "userSettings/imgui_layout.ini";
27
29 void load();
30
32 void save() const;
33};
Persistent application settings backed by userSettings/Config.ini.
Definition AppSettings.h:8
static constexpr const char * configPath
Definition AppSettings.h:25
bool enableDbCache
Definition AppSettings.h:13
std::string gamePath
Definition AppSettings.h:10
glm::vec3 bgColor
Definition AppSettings.h:18
bool showConsole
Definition AppSettings.h:14
float fontSize
Definition AppSettings.h:22
static constexpr const char * imguiIniPath
Definition AppSettings.h:26
void save() const
Persist to Config.ini and save the ImGui layout to disk.
void load()
Load from Config.ini (also restores the current ThemeManager theme).