Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change obnoxious header to minimal header #557

Open
wants to merge 4 commits into
base: 5.x
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 19 additions & 49 deletions YSI_Core/y_core/y_scriptinit_impl.inc
Original file line number Diff line number Diff line change
Expand Up @@ -317,38 +317,16 @@ stock bool:Server_IsOpenMP()
static stock const
YSI_gscHeader[] = " ========================================== ",
YSI_gscSpacer[] = " | | ",
YSI_gscObnoxiousHeader0[] = "\n" \
" ==============================================================\n" \
" | |\n" \
" | |\n" \
" | YYYYYYY YYYYYYY SSSSSSSSSSSSSSS IIIIIIIIII |\n" \
" | Y:::::Y Y:::::Y SS:::::::::::::::SI::::::::I |",
YSI_gscObnoxiousHeader1[] = \
" | Y:::::Y Y:::::YS:::::SSSSSS::::::SI::::::::I |\n" \
" | Y::::::Y Y::::::YS:::::S SSSSSSSII::::::II |\n" \
" | YYY:::::Y Y:::::YYYS:::::S I::::I |\n" \
" | Y:::::Y Y:::::Y S:::::S I::::I |\n" \
" | Y:::::Y:::::Y S::::SSSS I::::I |",
YSI_gscObnoxiousHeader2[] = \
" | Y:::::::::Y SS::::::SSSSS I::::I |\n" \
" | Y:::::::Y SSS::::::::SS I::::I |\n" \
" | Y:::::Y SSSSSS::::S I::::I |\n" \
" | Y:::::Y S:::::S I::::I |\n" \
" | Y:::::Y S:::::S I::::I |",
YSI_gscObnoxiousHeader3[] = \
" | Y:::::Y SSSSSSS S:::::SII::::::II |\n" \
" | YYYY:::::YYYY S::::::SSSSSS:::::SI::::::::I |\n" \
" | Y:::::::::::Y S:::::::::::::::SS I::::::::I |\n" \
" | YYYYYYYYYYYYY SSSSSSSSSSSSSSS IIIIIIIIII |\n" \
" | |",
YSI_gscObnoxiousHeader4[] = \
" | |\n" \
" | (c) 2021 MPL v1.1 |\n" \
" | Alex \"Y_Less\" Cole and contributors. |\n" \
" | |\n" \
" | |",
YSI_gscObnoxiousHeader5[] = \
" ==============================================================\n",
YSI_gscMinimalHeader0[] = "\n" \
" ==========================================\n" \
" | |\n" \
" | YSI 5.x |\n" \
" | |",
YSI_gscMinimalHeader1[] = \
" | (c) 2021 MPL v1.1 |\n" \
" | Alex \"Y_Less\" Cole and contributors. |\n" \
" | |\n" \
" ==========================================",
YSI_gscInitMsgA[] = " Dumping \"pre-init.asm\", this",
YSI_gscInitMsgB[] = " Dumping \"post-init.asm\", this",
YSI_gscInitMsgC[] = " may take a little bit of time.",
Expand All @@ -360,7 +338,7 @@ static stock const

static stock
YSI_gsStartTime,
bool:YSI_gsObnoxiousHeader = true,
bool:YSI_gsTitleHeader = true,
bool:YSI_gsFirstHeader = true,
bool:YSI_gsNewPart = true,
YSI_gsPurgeTimer = 0;
Expand Down Expand Up @@ -391,20 +369,16 @@ static stock ScriptInit_Dump(const filename[], const message[])
stock Server_PrintIntroMessage(...)
{
#if _YSI_SAFE_STARTUP
if (YSI_gsObnoxiousHeader)
if (YSI_gsTitleHeader)
{
YSI_Print(YSI_SPACE),
YSI_Print(YSI_SPACE),
YSI_Print(YSI_gscObnoxiousHeader0),
YSI_Print(YSI_gscObnoxiousHeader1),
YSI_Print(YSI_gscObnoxiousHeader2),
YSI_Print(YSI_gscObnoxiousHeader3),
YSI_Print(YSI_gscObnoxiousHeader4),
YSI_Print(YSI_gscObnoxiousHeader5),
YSI_Print(YSI_gscMinimalHeader0),
YSI_Print(YSI_gscMinimalHeader1),
YSI_Print(YSI_SPACE),
YSI_Print(YSI_SPACE),
YSI_Print(YSI_gscHeader),
YSI_gsObnoxiousHeader = false,
YSI_gsTitleHeader = false,
YSI_gsFirstHeader = false;
}
else
Expand Down Expand Up @@ -435,20 +409,16 @@ stock Server_PrintIntroMessage(...)
stock Server_PrintIntroPart(...)
{
#if _YSI_SAFE_STARTUP
if (YSI_gsObnoxiousHeader)
if (YSI_gsTitleHeader)
{
YSI_Print(YSI_SPACE),
YSI_Print(YSI_SPACE),
YSI_Print(YSI_gscObnoxiousHeader0),
YSI_Print(YSI_gscObnoxiousHeader1),
YSI_Print(YSI_gscObnoxiousHeader2),
YSI_Print(YSI_gscObnoxiousHeader3),
YSI_Print(YSI_gscObnoxiousHeader4),
YSI_Print(YSI_gscObnoxiousHeader5),
YSI_Print(YSI_gscMinimalHeader0),
YSI_Print(YSI_gscMinimalHeader1),
YSI_Print(YSI_SPACE),
YSI_Print(YSI_SPACE),
YSI_Print(YSI_gscHeader),
YSI_gsObnoxiousHeader = false,
YSI_gsTitleHeader = false,
YSI_gsFirstHeader = false;
}
else
Expand Down