Browse Source

Merge pull request #477 from DavidWyand-GG/AudioData

Allow audioData.cs.dso to execute
David Wyand 12 năm trước cách đây
mục cha
commit
1684501ad0

+ 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