mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
Removed hard coded directory paths
- Removed references to core directory. - Switch some references to tools directory - Added preferences variables where appropriate
This commit is contained in:
parent
853b70255b
commit
4b1334db9f
25 changed files with 75 additions and 18 deletions
|
|
@ -330,7 +330,12 @@ void Forest::createNewFile()
|
|||
|
||||
// We need to construct a default file name
|
||||
String missionName( Con::getVariable( "$Client::MissionFile" ) );
|
||||
missionName.replace( "tools/levels", "levels" );
|
||||
String levelDirectory( Con::getVariable( "$pref::Directories::Level" ) );
|
||||
if ( levelDirectory.isEmpty() )
|
||||
{
|
||||
levelDirectory = "levels";
|
||||
}
|
||||
missionName.replace( "tools/levels", levelDirectory );
|
||||
missionName = Platform::makeRelativePathName(missionName, Platform::getMainDotCsDir());
|
||||
|
||||
Torque::Path basePath( missionName );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue