mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 14:51:40 +00:00
Prevent important messages from being accidentally filtered.
This commit is contained in:
parent
79a4e4a0e3
commit
0e5c6e37b1
11 changed files with 13 additions and 13 deletions
|
@ -683,7 +683,7 @@ void FSerializer::ReadObjects(bool hubtravel)
|
|||
{
|
||||
r->mObjects.Clamp(size); // close all inner objects.
|
||||
// In case something in here throws an error, let's continue and deal with it later.
|
||||
Printf(PRINT_NONOTIFY, TEXTCOLOR_RED "'%s'\n while restoring %s\n", err.GetMessage(), obj ? obj->GetClass()->TypeName.GetChars() : "invalid object");
|
||||
Printf(PRINT_NONOTIFY | PRINT_BOLD, TEXTCOLOR_RED "'%s'\n while restoring %s\n", err.GetMessage(), obj ? obj->GetClass()->TypeName.GetChars() : "invalid object");
|
||||
mErrors++;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1696,6 +1696,6 @@ CCMD(fs_dir)
|
|||
auto fnid = fileSystem.GetResourceId(i);
|
||||
auto length = fileSystem.FileLength(i);
|
||||
bool hidden = fileSystem.FindFile(fn1) != i;
|
||||
Printf(PRINT_NONOTIFY, "%s%-64s %-15s (%5d) %10d %s %s\n", hidden ? TEXTCOLOR_RED : TEXTCOLOR_UNTRANSLATED, fn1, fns, fnid, length, container, hidden ? "(h)" : "");
|
||||
Printf(PRINT_HIGH | PRINT_NONOTIFY, "%s%-64s %-15s (%5d) %10d %s %s\n", hidden ? TEXTCOLOR_RED : TEXTCOLOR_UNTRANSLATED, fn1, fns, fnid, length, container, hidden ? "(h)" : "");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -925,7 +925,7 @@ void M_Init (void)
|
|||
catch (CVMAbortException &err)
|
||||
{
|
||||
err.MaybePrintMessage();
|
||||
Printf(PRINT_NONOTIFY, "%s", err.stacktrace.GetChars());
|
||||
Printf(PRINT_NONOTIFY | PRINT_BOLD, "%s", err.stacktrace.GetChars());
|
||||
I_FatalError("Failed to initialize menus");
|
||||
}
|
||||
M_CreateMenus();
|
||||
|
|
|
@ -682,7 +682,7 @@ void CVMAbortException::MaybePrintMessage()
|
|||
auto m = GetMessage();
|
||||
if (m != nullptr)
|
||||
{
|
||||
Printf(PRINT_NONOTIFY, TEXTCOLOR_RED "%s\n", m);
|
||||
Printf(PRINT_NONOTIFY | PRINT_BOLD, TEXTCOLOR_RED "%s\n", m);
|
||||
SetMessage("");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1234,7 +1234,7 @@ void D_DoomLoop ()
|
|||
catch (CVMAbortException &error)
|
||||
{
|
||||
error.MaybePrintMessage();
|
||||
Printf(PRINT_NONOTIFY, "%s", error.stacktrace.GetChars());
|
||||
Printf(PRINT_NONOTIFY | PRINT_BOLD, "%s", error.stacktrace.GetChars());
|
||||
D_ErrorCleanup();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1385,7 +1385,7 @@ void FLevelLocals::DoLoadLevel(const FString &nextmapname, int position, bool au
|
|||
{
|
||||
FString mapname = nextmapname;
|
||||
mapname.ToUpper();
|
||||
Printf(PRINT_NONOTIFY, "\n" TEXTCOLOR_NORMAL "%s\n\n" TEXTCOLOR_BOLD "%s - %s\n\n", console_bar, mapname.GetChars(), LevelName.GetChars());
|
||||
Printf(PRINT_HIGH | PRINT_NONOTIFY, "\n" TEXTCOLOR_NORMAL "%s\n\n" TEXTCOLOR_BOLD "%s - %s\n\n", console_bar, mapname.GetChars(), LevelName.GetChars());
|
||||
}
|
||||
|
||||
// Set the sky map.
|
||||
|
|
|
@ -718,7 +718,7 @@ static void TerminalResponse (const char *str)
|
|||
|
||||
if (StatusBar != NULL)
|
||||
{
|
||||
Printf(PRINT_NONOTIFY, "%s\n", str);
|
||||
Printf(PRINT_HIGH | PRINT_NONOTIFY, "%s\n", str);
|
||||
// The message is positioned a bit above the menu choices, because
|
||||
// merchants can tell you something like this but continue to show
|
||||
// their dialogue screen. I think most other conversations use this
|
||||
|
|
|
@ -538,7 +538,7 @@ bool FThinkerList::DoDestroyThinkers()
|
|||
{
|
||||
Printf("VM exception in DestroyThinkers:\n");
|
||||
exception.MaybePrintMessage();
|
||||
Printf(PRINT_NONOTIFY, "%s", exception.stacktrace.GetChars());
|
||||
Printf(PRINT_NONOTIFY | PRINT_BOLD, "%s", exception.stacktrace.GetChars());
|
||||
// forcibly delete this. Cleanup may be incomplete, though.
|
||||
node->ObjectFlags |= OF_YesReallyDelete;
|
||||
delete node;
|
||||
|
@ -546,7 +546,7 @@ bool FThinkerList::DoDestroyThinkers()
|
|||
}
|
||||
catch (CRecoverableError &exception)
|
||||
{
|
||||
Printf(PRINT_NONOTIFY, "Error in DestroyThinkers: %s\n", exception.GetMessage());
|
||||
Printf(PRINT_NONOTIFY | PRINT_BOLD, "Error in DestroyThinkers: %s\n", exception.GetMessage());
|
||||
// forcibly delete this. Cleanup may be incomplete, though.
|
||||
node->ObjectFlags |= OF_YesReallyDelete;
|
||||
delete node;
|
||||
|
|
|
@ -8770,7 +8770,7 @@ scriptwait:
|
|||
if (type & HUDMSG_LOG)
|
||||
{
|
||||
int consolecolor = color >= CR_BRICK && color < NUM_TEXT_COLORS && color != CR_UNTRANSLATED ? color + 'A' : '-';
|
||||
Printf(PRINT_NONOTIFY, "\n" TEXTCOLOR_ESCAPESTR "%c%s\n%s\n%s\n", consolecolor, console_bar, work.GetChars(), console_bar);
|
||||
Printf(PRINT_HIGH | PRINT_NONOTIFY, "\n" TEXTCOLOR_ESCAPESTR "%c%s\n%s\n%s\n", consolecolor, console_bar, work.GetChars(), console_bar);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -622,7 +622,7 @@ void P_GiveSecret(FLevelLocals *Level, AActor *actor, bool printmessage, bool pl
|
|||
C_MidPrint(nullptr, GStrings["SECRETMESSAGE"]);
|
||||
if (showsecretsector && sectornum >= 0)
|
||||
{
|
||||
Printf(PRINT_NONOTIFY, "Secret found in sector %d\n", sectornum);
|
||||
Printf(PRINT_HIGH | PRINT_NONOTIFY, "Secret found in sector %d\n", sectornum);
|
||||
}
|
||||
}
|
||||
if (playsound) S_Sound (CHAN_AUTO, CHANF_UI, "misc/secret", 1, ATTN_NORM);
|
||||
|
|
|
@ -422,7 +422,7 @@ void player_t::SetLogText (const char *text)
|
|||
if (mo && mo->CheckLocalView())
|
||||
{
|
||||
// Print log text to console
|
||||
Printf(PRINT_NONOTIFY, TEXTCOLOR_GOLD "%s\n", LogText[0] == '$' ? GStrings(text + 1) : text);
|
||||
Printf(PRINT_HIGH | PRINT_NONOTIFY, TEXTCOLOR_GOLD "%s\n", LogText[0] == '$' ? GStrings(text + 1) : text);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue