WoW Model Viewer
Your premiere tool for viewing, equipping and animating World of Warcraft models.
Loading...
Searching...
No Matches
GlobalSettings.h
Go to the documentation of this file.
1#pragma once
2
3#include <string>
4
5#define GLOBALSETTINGS core::GlobalSettings::instance()
6
7namespace core
8{
11 {
12 public:
14
17 {
18 if (GlobalSettings::m_instance == nullptr)
20
21 return *m_instance;
22 }
23
24 std::wstring appVersion(std::wstring a_prefix = std::wstring(L""));
25 std::wstring appName();
26 std::wstring buildName();
27 std::wstring appTitle();
28
29 bool isBeta() { return m_isBetaVersion; }
30
34
35 private:
39
43
44 std::wstring m_appName;
45 std::wstring m_buildName;
46 std::wstring m_platform;
47
50
52 };
53}
Singleton providing application-wide version info and global flags.
std::wstring buildName()
GlobalSettings & operator=(const GlobalSettings &)=delete
static GlobalSettings * m_instance
GlobalSettings(const GlobalSettings &)=delete
std::wstring appVersion(std::wstring a_prefix=std::wstring(L""))
std::wstring m_buildName
static GlobalSettings & instance()
Access the singleton instance (created on first call).
std::wstring m_platform
Common string utility functions (split, case-insensitive search, etc.).
Definition GameLoader.h:11