Skip to content

Commit 6ae0f65

Browse files
committed
🎨 Use new default skin
1 parent 3365030 commit 6ae0f65

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

Client/core/CClientVariables.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,12 @@ class CClientVariables : public CCVarsInterface, public CSingleton<CClientVariab
7777
m_iRevision++;
7878
Node(strVariable)->SetTagContent(val);
7979
};
80+
void Set(const std::string& strVariable, const char* val)
81+
{
82+
SAN;
83+
m_iRevision++;
84+
Node(strVariable)->SetTagContent(val);
85+
};
8086
void Set(const std::string& strVariable, const std::string& val)
8187
{
8288
SAN;

Client/core/CCore.cpp

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1729,6 +1729,21 @@ void CCore::ApplyCoreInitSettings()
17291729
SetProcessDPIAware();
17301730
}
17311731
#endif
1732+
1733+
if (int revision = GetApplicationSettingInt("reset-settings-revision"); revision < 21486)
1734+
{
1735+
// Force users with default skin to the 2023 version by replacing "Default" with "Default 2023".
1736+
// The GUI skin "Default 2023" was introduced in commit 2d9e03324b07e355031ecb3263477477f1a91399.
1737+
std::string currentSkinName;
1738+
CVARS_GET("current_skin", currentSkinName);
1739+
1740+
if (currentSkinName == "Default")
1741+
{
1742+
CVARS_SET("current_skin", "Default 2023");
1743+
}
1744+
1745+
SetApplicationSettingInt("reset-settings-revision", 21486);
1746+
}
17321747
}
17331748

17341749
//

0 commit comments

Comments
 (0)