- adjustments

This commit is contained in:
Christoph Oelckers 2019-11-07 20:30:56 +01:00
parent e4735fdff1
commit d2cbd71dbf
3 changed files with 4 additions and 5 deletions

View file

@ -1326,13 +1326,13 @@ void C_ToggleConsole ()
HistPos = NULL;
TabbedLast = false;
TabbedList = false;
GUICapture++;
GUICapture |= 1;
}
else //if (gamestate != GS_FULLCONSOLE && gamestate != GS_STARTUP)
{
ConsoleState = c_rising;
C_FlushDisplay ();
GUICapture--;
GUICapture &= ~1;
}
}

View file

@ -68,7 +68,7 @@ static bool UncompressZipLump(char *Cache, FileReader &Reader, int Method, int L
case METHOD_LZMA:
{
FileReader frz;
if (frz.OpenDecompressor(Reader, LumpSize, Method, false, [](const char* err) { throw std::runtime_error(err); }))
if (frz.OpenDecompressor(Reader, LumpSize, Method, false, [](const char* err) { I_Error("%s", err); }))
{
frz.Read(Cache, LumpSize);
}

View file

@ -92,8 +92,7 @@ bool FShader::Load(const char * name, const char * vert_prog, const char * frag_
if (linked == 0)
{
// only print message if there's an error.
FStringf err("Init Shader '%s':\n%s\n", name, error.GetChars());
throw std::runtime_error(err); // Failing to compile a shader is fatal.
I_Error("Init Shader '%s':\n%s\n", name, error.GetChars());
}
return true;
}