From 91ace03e843b5c39d83c2c9be8dd16f4a866991d Mon Sep 17 00:00:00 2001 From: Andrey Nazarov Date: Sat, 5 Feb 2011 13:14:42 +0300 Subject: Silence a warning when top-level menu script is not found. --- src/ui_script.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/ui_script.c') diff --git a/src/ui_script.c b/src/ui_script.c index 6b9a975..d8f286f 100644 --- a/src/ui_script.c +++ b/src/ui_script.c @@ -301,7 +301,10 @@ static qboolean Parse_File( const char *path, int depth ) { ret = FS_LoadFile( path, ( void ** )&raw ); if( !raw ) { - Com_Printf( "Couldn't load %s: %s\n", path, Q_ErrorString( ret ) ); + if( ret != Q_ERR_NOENT || depth ) { + Com_WPrintf( "Couldn't %s %s: %s\n", depth ? "include" : "load", + path, Q_ErrorString( ret ) ); + } return qfalse; } -- cgit v1.2.3