Commence VKDoom exclusivity.

This commit is contained in:
Mari the Deer 2024-11-06 13:18:57 +01:00
commit 8f4b962ed1
17 changed files with 531 additions and 148 deletions

View file

@ -12,7 +12,6 @@ Class SWWMStaticHandler : StaticEventHandler
// crash handler
ui bool wasinmap;
ui int timer, msgpick;
bool isvkdoom;
// broccoli doccoli
bool isbd;
String bdname;
@ -168,9 +167,6 @@ Class SWWMStaticHandler : StaticEventHandler
}
}
foreach ( f:fonts ) Font.GetFont(f);
// detect vkdoom (naive, may find a better method later)
lmp = Wads.FindLumpFullName("graphics/bootlogo.png",0,false);
isvkdoom = (lmp != -1);
// warn: mp no longer officially maintained
if ( multiplayer )
{
@ -682,7 +678,6 @@ Class SWWMStaticHandler : StaticEventHandler
{
msgpick = Random[UIStuff](1,8);
String str = StringTable.Localize("$CRASHMSG"..msgpick.."A");
if ( isvkdoom ) str.Replace("GZDoom","VKDoom");
Console.PrintfEx(PRINT_HIGH|PRINT_NONOTIFY,"\cf%s\c-",str);
let hnd = SWWMBrutalHandler(StaticEventHandler.Find("SWWMBrutalHandler"));
if ( hnd && hnd.detected )
@ -695,7 +690,6 @@ Class SWWMStaticHandler : StaticEventHandler
else if ( timer == 70 )
{
String str = StringTable.Localize("$CRASHMSG"..msgpick.."B");
if ( isvkdoom ) str.Replace("GZDoom","VKDoom");
Console.PrintfEx(PRINT_HIGH|PRINT_NONOTIFY,"\cf%s\c-",str);
S_StartSound("crash/curb",CHAN_YABLEWIT,CHANF_UI|CHANF_NOPAUSE|CHANF_OVERLAP,1,ATTN_NONE);
}