mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-22 13:16:23 +00:00
feat(Core/CLI): Flash WorldServer at start (Windows only) (#8477)
This commit is contained in:
@@ -147,6 +147,19 @@ void CliThread()
|
||||
if (sConfigMgr->GetOption<bool>("BeepAtStart", true))
|
||||
printf("\a"); // \a = Alert
|
||||
|
||||
#if AC_PLATFORM == AC_PLATFORM_WINDOWS
|
||||
if (sConfigMgr->GetOption<bool>("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
|
||||
|
||||
// print this here the first time
|
||||
// later it will be printed after command queue updates
|
||||
PrintCliPrefix();
|
||||
|
||||
@@ -1186,6 +1186,14 @@ Event.Announce = 0
|
||||
|
||||
BeepAtStart = 1
|
||||
|
||||
#
|
||||
# FlashAtStart
|
||||
# Description: Flashes in taskbar when the world server finished starting. (Works on Windows only)
|
||||
# Default: 1 - (Enabled)
|
||||
# 0 - (Disabled)
|
||||
|
||||
FlashAtStart = 1
|
||||
|
||||
#
|
||||
# Motd
|
||||
# Description: Message of the Day, displayed at login.
|
||||
|
||||
Reference in New Issue
Block a user