aboutsummaryrefslogtreecommitdiff
path: root/src/server/worldserver/CommandLine
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/worldserver/CommandLine')
-rw-r--r--src/server/worldserver/CommandLine/CliRunnable.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/server/worldserver/CommandLine/CliRunnable.cpp b/src/server/worldserver/CommandLine/CliRunnable.cpp
index ef1c12f9b67..c5a14c9dcc2 100644
--- a/src/server/worldserver/CommandLine/CliRunnable.cpp
+++ b/src/server/worldserver/CommandLine/CliRunnable.cpp
@@ -127,6 +127,18 @@ void CliThread()
if (sConfigMgr->GetBoolDefault("BeepAtStart", true))
printf("\a"); // \a = Alert
+#if TRINITY_PLATFORM == TRINITY_PLATFORM_WINDOWS
+ if (sConfigMgr->GetBoolDefault("FlashAtStart", true))
+ {
+ FLASHWINFO fInfo;
+ fInfo.cbSize = sizeof(FLASHWINFO);
+ fInfo.dwFlags = FLASHW_TRAY | FLASHW_TIMERNOFG;
+ fInfo.hwnd = GetConsoleWindow();
+ fInfo.uCount = 0;
+ fInfo.dwTimeout = 0;
+ FlashWindowEx(&fInfo);
+ }
+#endif
///- As long as the World is running (no World::m_stopEvent), get the command line and handle it
while (!World::IsStopped())
{