MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / addPath

Method addPath

framework/physfs_fs.cpp:221–235  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

219IFile::~IFile() = default;
220
221bool FileSystem::addPath(const UString &newPath)
222{
223 if (!PHYSFS_mount(newPath.c_str(), "/", 0))
224 {
225 LogInfo("Failed to add resource dir \"%s\", error: %s", newPath,
226 PHYSFS_getErrorByCode(PHYSFS_getLastErrorCode()));
227 return false;
228 }
229 else
230 {
231 LogInfo("Resource dir \"%s\" mounted to \"%s\"", newPath,
232 PHYSFS_getMountPoint(newPath.c_str()));
233 return true;
234 }
235}
236
237FileSystem::FileSystem(std::vector<UString> paths)
238{

Callers 1

setupModDataPathsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected