mirror of
https://github.com/nillerusr/source-engine.git
synced 2025-01-03 14:06:44 +00:00
Fix HTML MOTD (#174)
This commit is contained in:
parent
a15db00bc0
commit
f735e7a036
@ -32,7 +32,7 @@ extern INetworkStringTable *g_pStringTableInfoPanel;
|
|||||||
|
|
||||||
#define TEMP_HTML_FILE "textwindow_temp.html"
|
#define TEMP_HTML_FILE "textwindow_temp.html"
|
||||||
|
|
||||||
ConVar cl_disablehtmlmotd( "cl_disablehtmlmotd", "0", FCVAR_ARCHIVE, "Disable HTML motds." );
|
ConVar cl_disablehtmlmotd( "cl_disablehtmlmotd", "1", FCVAR_ARCHIVE, "Disable HTML motds." );
|
||||||
|
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
// HPE_BEGIN:
|
// HPE_BEGIN:
|
||||||
@ -129,6 +129,7 @@ void CTextWindow::ApplySchemeSettings( IScheme *pScheme )
|
|||||||
CTextWindow::~CTextWindow()
|
CTextWindow::~CTextWindow()
|
||||||
{
|
{
|
||||||
// remove temp file again
|
// remove temp file again
|
||||||
|
if (g_pFullFileSystem->FileExists(TEMP_HTML_FILE))
|
||||||
g_pFullFileSystem->RemoveFile( TEMP_HTML_FILE, "DEFAULT_WRITE_PATH" );
|
g_pFullFileSystem->RemoveFile( TEMP_HTML_FILE, "DEFAULT_WRITE_PATH" );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user