Allow audioData.cs.dso to execute

When using only compiled scripts, the isFile( "./audioData.cs" ) would
fail for audioData.cs.dso causing none of the audio data to load.  The
correct method is to use isScriptFile(), along with a fully qualified
file path, to check for either the .dso or .cs files.
This commit is contained in:
DavidWyand-GG 2013-09-04 19:02:46 -04:00
parent db58393213
commit e917f1ea14
2 changed files with 2 additions and 2 deletions

View file

@ -110,7 +110,7 @@ function initClient()
setDefaultFov( $pref::Player::defaultFov );
setZoomSpeed( $pref::Player::zoomSpeed );
if( isFile( "./audioData.cs" ) )
if( isScriptFile( expandFilename("./audioData.cs") ) )
exec( "./audioData.cs" );
// Start up the main menu... this is separated out into a

View file

@ -124,7 +124,7 @@ function initClient()
setDefaultFov( $pref::Player::defaultFov );
setZoomSpeed( $pref::Player::zoomSpeed );
if( isFile( "./audioData.cs" ) )
if( isScriptFile( expandFilename("./audioData.cs") ) )
exec( "./audioData.cs" );
// Start up the main menu... this is separated out into a