mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-16 00:54:54 +00:00
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:
parent
db58393213
commit
e917f1ea14
2 changed files with 2 additions and 2 deletions
|
|
@ -110,7 +110,7 @@ function initClient()
|
||||||
setDefaultFov( $pref::Player::defaultFov );
|
setDefaultFov( $pref::Player::defaultFov );
|
||||||
setZoomSpeed( $pref::Player::zoomSpeed );
|
setZoomSpeed( $pref::Player::zoomSpeed );
|
||||||
|
|
||||||
if( isFile( "./audioData.cs" ) )
|
if( isScriptFile( expandFilename("./audioData.cs") ) )
|
||||||
exec( "./audioData.cs" );
|
exec( "./audioData.cs" );
|
||||||
|
|
||||||
// Start up the main menu... this is separated out into a
|
// Start up the main menu... this is separated out into a
|
||||||
|
|
|
||||||
|
|
@ -124,7 +124,7 @@ function initClient()
|
||||||
setDefaultFov( $pref::Player::defaultFov );
|
setDefaultFov( $pref::Player::defaultFov );
|
||||||
setZoomSpeed( $pref::Player::zoomSpeed );
|
setZoomSpeed( $pref::Player::zoomSpeed );
|
||||||
|
|
||||||
if( isFile( "./audioData.cs" ) )
|
if( isScriptFile( expandFilename("./audioData.cs") ) )
|
||||||
exec( "./audioData.cs" );
|
exec( "./audioData.cs" );
|
||||||
|
|
||||||
// Start up the main menu... this is separated out into a
|
// Start up the main menu... this is separated out into a
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue