Skip to content

Commit

Permalink
Merge Enable splashscreen snow effect during December and January (mr…
Browse files Browse the repository at this point in the history
…-620)

7803aa4 - tweak(launcher): enable splashscreen snow effect during December and January
  • Loading branch information
prikolium-cfx committed Dec 5, 2024
2 parents efc3d67 + 7803aa4 commit 67eb733
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion code/client/launcher/UpdaterUI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

#include "StdInc.h"
#include <CommCtrl.h>
#include <ctime>

#ifdef LAUNCHER_PERSONALITY_MAIN
#include <shobjidl.h>
Expand Down Expand Up @@ -1384,7 +1385,12 @@ void UI_CreateWindow()
{
auto sc = ui.FindName(L"Overlay").as<winrt::Windows::UI::Xaml::Controls::SwapChainPanel>();

if (_time64(NULL) < 1675206000)
auto time = std::time(nullptr);
auto datetime = std::localtime(&time);
auto month = datetime->tm_mon + 1;

// Snow effect for December and January
if (month == 12 || month == 1)
{
InitializeRenderOverlay(sc, g_dpi.ScaleX(wwidth), g_dpi.ScaleY(wheight));
}
Expand Down

0 comments on commit 67eb733

Please sign in to comment.