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

Function _BuildFileName

Engine/source/platformWin32/winVolume.cpp:86–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84//-----------------------------------------------------------------------------
85
86static String _BuildFileName(const String& prefix,const Path& path)
87{
88 // Need to join the path (minus the root) with our
89 // internal path name.
90 String file = prefix;
91 file = Path::Join(file, '/', path.getPath());
92 if (path.getFileName().isEmpty() && path.getExtension().isNotEmpty()) //weird, filename-less file, so handle it slightly special-case
93 file += String("/");
94 else
95 file = Path::Join(file, '/', path.getFileName());
96 file = Path::Join(file, '.', path.getExtension());
97 return file;
98}
99
100/*
101static bool _IsFile(const String& file)

Callers 5

resolveMethod · 0.85
createMethod · 0.85
removeMethod · 0.85
renameMethod · 0.85
mapToMethod · 0.85

Calls 6

getFileNameMethod · 0.80
StringClass · 0.50
getPathMethod · 0.45
isEmptyMethod · 0.45
isNotEmptyMethod · 0.45
getExtensionMethod · 0.45

Tested by

no test coverage detected