mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-25 06:15:36 +00:00
be sure to executte defaults prior to clientprefs to ensure nothing gets missed
This commit is contained in:
parent
e3b8c7b001
commit
eb365fc866
3 changed files with 3 additions and 6 deletions
|
|
@ -27,11 +27,10 @@ function CoreModule::onCreate(%this)
|
||||||
ModuleDatabase.LoadExplicit( "Core_PostFX" );
|
ModuleDatabase.LoadExplicit( "Core_PostFX" );
|
||||||
ModuleDatabase.LoadExplicit( "Core_GameObjects" );
|
ModuleDatabase.LoadExplicit( "Core_GameObjects" );
|
||||||
|
|
||||||
|
exec("data/defaults.cs");
|
||||||
%prefPath = getPrefpath();
|
%prefPath = getPrefpath();
|
||||||
if ( isFile( %prefPath @ "/clientPrefs.cs" ) )
|
if ( isFile( %prefPath @ "/clientPrefs.cs" ) )
|
||||||
exec( %prefPath @ "/clientPrefs.cs" );
|
exec( %prefPath @ "/clientPrefs.cs" );
|
||||||
else
|
|
||||||
exec("data/defaults.cs");
|
|
||||||
|
|
||||||
// Seed the random number generator.
|
// Seed the random number generator.
|
||||||
setRandomSeed();
|
setRandomSeed();
|
||||||
|
|
|
||||||
|
|
@ -15,11 +15,10 @@ function initClient()
|
||||||
exec( "./levelLoad.cs" );
|
exec( "./levelLoad.cs" );
|
||||||
|
|
||||||
//load prefs
|
//load prefs
|
||||||
|
exec( "data/defaults.cs" );
|
||||||
%prefPath = getPrefpath();
|
%prefPath = getPrefpath();
|
||||||
if ( isFile( %prefPath @ "/clientPrefs.cs" ) )
|
if ( isFile( %prefPath @ "/clientPrefs.cs" ) )
|
||||||
exec( %prefPath @ "/clientPrefs.cs" );
|
exec( %prefPath @ "/clientPrefs.cs" );
|
||||||
else
|
|
||||||
exec( "data/defaults.cs" );
|
|
||||||
|
|
||||||
callOnModules("initClient");
|
callOnModules("initClient");
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -33,11 +33,10 @@ function Core_Rendering::initClient(%this)
|
||||||
initLightingSystems("Advanced Lighting");
|
initLightingSystems("Advanced Lighting");
|
||||||
|
|
||||||
//load prefs
|
//load prefs
|
||||||
|
exec("data/defaults.cs");
|
||||||
%prefPath = getPrefpath();
|
%prefPath = getPrefpath();
|
||||||
if ( isFile( %prefPath @ "/clientPrefs.cs" ) )
|
if ( isFile( %prefPath @ "/clientPrefs.cs" ) )
|
||||||
exec( %prefPath @ "/clientPrefs.cs" );
|
exec( %prefPath @ "/clientPrefs.cs" );
|
||||||
else
|
|
||||||
exec("data/defaults.cs");
|
|
||||||
|
|
||||||
configureCanvas();
|
configureCanvas();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue