MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / _normalize

Method _normalize

Engine/source/core/volume.cpp:486–501  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

484
485
486Path MountSystem::_normalize(const Path& path)
487{
488 Path po = path;
489
490 // Assign to cwd root if none is specified.
491 if( po.getRoot().isEmpty() )
492 po.setRoot( mCWD.getRoot() );
493
494 // Merge in current working directory if the path is relative to
495 // the current cwd.
496 if( po.getRoot().equal( mCWD.getRoot(), String::NoCase ) && po.isRelative() )
497 {
498 po.setPath( Path::CompressPath( Path::Join( mCWD.getPath(),'/',po.getPath() ) ) );
499 }
500 return po;
501}
502
503FileRef MountSystem::createFile(const Path& path)
504{

Callers

nothing calls this directly

Calls 7

isRelativeMethod · 0.80
isEmptyMethod · 0.45
getRootMethod · 0.45
setRootMethod · 0.45
equalMethod · 0.45
setPathMethod · 0.45
getPathMethod · 0.45

Tested by

no test coverage detected