MCPcopy Create free account
hub / github.com/DFHack/dfhack / getSavePath

Function getSavePath

library/modules/Persistence.cpp:188–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186}
187
188static std::filesystem::path getSavePath(const std::string &world) {
189 return Filesystem::getBaseDir() / "save" / world;
190}
191
192static std::filesystem::path getSaveFilePath(const std::string &world, const std::string &name) {
193 return getSavePath(world) / ("dfhack-" + filterSaveFileName(name) + ".dat");

Callers 2

getSaveFilePathFunction · 0.85
loadMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected