WoW Model Viewer
Your premiere tool for viewing, equipping and animating World of Warcraft models.
Loading...
Searching...
No Matches
GlobalSettings.cpp
Go to the documentation of this file.
1#include "GlobalSettings.h"
2#include <sstream>
3
4// if you need extra qualification on software version, move this to 1
5# define _BETAVERSION 0
6# define _ALPHAVERSION 1
7#ifndef _BUILDNUMBER
8#define _BUILDNUMBER 0
9#endif
10
12
14{
18
19 m_appName = L"WoW Model Viewer";
20 m_buildName = L"Oribos";
21
22 /*
23 --==List of Build Name ideas==-- (Feel free to add!)
24 Bouncing Baracuda
25 Hoppin Jalapeno
26 Stealthed Rogue
27 Deadly Druid
28 Killer Krakken
29 Crazy Kaelthas
30 Lonely Mastiff
31 Cold Kelthuzad
32 Jiggly Jaina
33 Vashj's Folly
34 Epic Win
35 Epic Lose
36 Lord Kezzak
37 Perky Pug
38 Great-father Winter
39
40 --== Used Build Names ==-- (So we don't repeat...)
41 Wascally Wabbit
42 Gnome Punter
43 Fickle Felguard
44 Demented Deathwing
45 Pickled Herring
46 Windrunner's Lament
47 Lost Lich King
48 Skeer the Bloodseeker
49 Thrall's revenge
50 Trip in Draenor
51 Christmas Edition ;)
52 Archimonde will survive
53 Wain's edition
54 Bilgewhizzle
55 Oribos
56 */
57
58 // platform
59 m_platform = L"Windows 64 bits";
60
61#if _BETAVERSION > 0
62 m_isBetaVersion = true;
63#else
64 m_isBetaVersion = false;
65#endif
66
67#if _ALPHAVERSION > 0
68 m_isAlphaVersion = true;
69#else
70 m_isAlphaVersion = false;
71#endif
72
73 bShowParticle = false;
74 bZeroParticle = false;
75 bInitPoseOnlyExport = false;
76}
77
79
80std::wstring core::GlobalSettings::appVersion(std::wstring a_prefix)
81{
82 std::wstring l_result = a_prefix;
83 std::wstringstream l_oss;
84 l_oss.precision(0);
85
86 l_oss << m_versionMajorNumber << "." << m_versionMinorNumber << "."
87 << m_versionRevNumber << "." << _BUILDNUMBER;
88 l_result += l_oss.str();
89
90 return l_result;
91}
92
94{
95 return m_appName;
96}
97
99{
100 return m_buildName;
101}
102
104{
105 std::wstring title = appName() + appVersion(std::wstring(L" v")) + L" " + m_platform;
106 if (m_isBetaVersion)
107 title += L" - BETA VERSION";
108 if (m_isAlphaVersion)
109 title += L" - ALPHA VERSION";
110 return title;
111}
#define _BUILDNUMBER
Singleton providing application-wide version info and global flags.
std::wstring buildName()
static GlobalSettings * m_instance
std::wstring appVersion(std::wstring a_prefix=std::wstring(L""))
std::wstring m_buildName
std::wstring m_platform