MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / endPath

Function endPath

src/Engine/CrossPlatform.cpp:484–489  ·  view source on GitHub ↗

* Adds an ending slash to a path if necessary. * @param path Folder path. * @return Terminated path. */

Source from the content-addressed store, hash-verified

482 * @return Terminated path.
483 */
484std::string endPath(const std::string &path)
485{
486 if (!path.empty() && path.at(path.size()-1) != PATH_SEPARATOR)
487 return path + PATH_SEPARATOR;
488 return path;
489}
490
491/**
492 * Gets the name of all the files

Callers 1

loadArgsFunction · 0.85

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected