Added new shared VScript functions

This commit is contained in:
Blixibon
2020-05-24 09:41:12 -05:00
parent 1f8e32ef66
commit 6ad2745a5e
2 changed files with 71 additions and 3 deletions

View File

@@ -85,7 +85,11 @@ HSCRIPT VScriptCompileScript( const char *pszScriptName, bool bWarnMissing )
{
bool bResult = filesystem->ReadFile( scriptPath, "GAME", bufferScript );
#ifdef MAPBASE_VSCRIPT
if ( !bResult && bWarnMissing )
#else
if( !bResult )
#endif
{
Warning( "Script not found (%s) \n", scriptPath.operator const char *() );
Assert( "Error running script" );