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

Method _normalize

Engine/source/core/volume.cpp:556–571  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

554
555
556Path MountSystem::_normalize(const Path& path)
557{
558 Path po = path;
559
560 // Assign to cwd root if none is specified.
561 if( po.getRoot().isEmpty() )
562 po.setRoot( mCWD.getRoot() );
563
564 // Merge in current working directory if the path is relative to
565 // the current cwd.
566 if( po.getRoot().equal( mCWD.getRoot(), String::NoCase ) && po.isRelative() )
567 {
568 po.setPath( Path::CompressPath( Path::Join( mCWD.getPath(),'/',po.getPath() ) ) );
569 }
570 return po;
571}
572
573bool MountSystem::copyFile(const Path& source, const Path& destination, bool noOverwrite)
574{

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