mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-01-27 14:17:59 +03:00
Fixed mapspawn_addon on Linux and made related console messages more verbose
This commit is contained in:
parent
db6305fcee
commit
8da7734c0d
@ -62,7 +62,11 @@ HSCRIPT VScriptCompileScript( const char *pszScriptName, bool bWarnMissing )
|
|||||||
const char *pszIncomingExtension = V_strrchr( pszScriptName , '.' );
|
const char *pszIncomingExtension = V_strrchr( pszScriptName , '.' );
|
||||||
if ( pszIncomingExtension && V_strcmp( pszIncomingExtension, pszVMExtension ) != 0 )
|
if ( pszIncomingExtension && V_strcmp( pszIncomingExtension, pszVMExtension ) != 0 )
|
||||||
{
|
{
|
||||||
|
#ifdef MAPBASE_VSCRIPT
|
||||||
|
CGWarning( 0, CON_GROUP_VSCRIPT, "Script file type (\"%s\", from \"%s\") does not match VM type (\"%s\")\n", pszIncomingExtension, pszScriptName, pszVMExtension );
|
||||||
|
#else
|
||||||
CGWarning( 0, CON_GROUP_VSCRIPT, "Script file type does not match VM type\n" );
|
CGWarning( 0, CON_GROUP_VSCRIPT, "Script file type does not match VM type\n" );
|
||||||
|
#endif
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -187,9 +191,17 @@ HSCRIPT VScriptCompileScriptAbsolute( const char *pszScriptName, bool bWarnMissi
|
|||||||
const char *pszIncomingExtension = V_strrchr( pszScriptName , '.' );
|
const char *pszIncomingExtension = V_strrchr( pszScriptName , '.' );
|
||||||
if ( pszIncomingExtension && V_strcmp( pszIncomingExtension, pszVMExtension ) != 0 )
|
if ( pszIncomingExtension && V_strcmp( pszIncomingExtension, pszVMExtension ) != 0 )
|
||||||
{
|
{
|
||||||
CGWarning( 0, CON_GROUP_VSCRIPT, "Script file type does not match VM type\n" );
|
// Account for cases where there is no extension and the folder names just have dots (e.g. ".local")
|
||||||
|
if ( strchr( pszIncomingExtension, CORRECT_PATH_SEPARATOR ) )
|
||||||
|
{
|
||||||
|
pszIncomingExtension = NULL;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
CGWarning( 0, CON_GROUP_VSCRIPT, "Script file type (\"%s\", from \"%s\") does not match VM type (\"%s\")\n", pszIncomingExtension, pszScriptName, pszVMExtension );
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
CFmtStr scriptPath;
|
CFmtStr scriptPath;
|
||||||
if ( pszIncomingExtension )
|
if ( pszIncomingExtension )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user