2
0
Эх сурвалжийг харах

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.
DavidWyand-GG 12 жил өмнө
parent
commit
e917f1ea14

+ 1 - 1
Templates/Empty/game/scripts/client/init.cs

@@ -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

+ 1 - 1
Templates/Full/game/scripts/client/init.cs

@@ -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