AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
Acore::Banner Namespace Reference

Functions

AC_COMMON_API void Show (std::string_view applicationName, void(*log)(std::string_view text), void(*logExtraInfo)())
 

Function Documentation

◆ Show()

void Acore::Banner::Show ( std::string_view  applicationName,
void(*)(std::string_view text)  log,
void(*)()  logExtraInfo 
)
23{
24 log(Acore::StringFormatFmt("{} ({})", GitRevision::GetFullVersion(), applicationName));
25 log("<Ctrl-C> to stop.\n");
26 log(" █████╗ ███████╗███████╗██████╗ ██████╗ ████████╗██╗ ██╗");
27 log(" ██╔══██╗╚══███╔╝██╔════╝██╔══██╗██╔═══██╗╚══██╔══╝██║ ██║");
28 log(" ███████║ ███╔╝ █████╗ ██████╔╝██║ ██║ ██║ ███████║");
29 log(" ██╔══██║ ███╔╝ ██╔══╝ ██╔══██╗██║ ██║ ██║ ██╔══██║");
30 log(" ██║ ██║███████╗███████╗██║ ██║╚██████╔╝ ██║ ██║ ██║");
31 log(" ╚═╝ ╚═╝╚══════╝╚══════╝╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝ ╚═╝");
32 log(" ██████╗ ██████╗ ██████╗ ███████╗");
33 log(" ██╔════╝██╔═══██╗██╔══██╗██╔════╝");
34 log(" ██║ ██║ ██║██████╔╝█████╗");
35 log(" ██║ ██║ ██║██╔══██╗██╔══╝");
36 log(" ╚██████╗╚██████╔╝██║ ██║███████╗");
37 log(" ╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚══════╝\n");
38 log(" AzerothCore 3.3.5a - www.azerothcore.org\n");
39
40 if (logExtraInfo)
41 {
42 logExtraInfo();
43 }
44
45 log(" ");
46}
std::string StringFormatFmt(FormatString< Args... > fmt, Args &&... args)
Definition: StringFormat.h:48
AC_COMMON_API char const * GetFullVersion()
Definition: GitRevision.cpp:82

References GitRevision::GetFullVersion(), and Acore::StringFormatFmt().

Referenced by main().