MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / GetSaveNewName

Method GetSaveNewName

Source/ResourceMan.cpp:418–423  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

416}
417
418std::string cResourceMan::GetSaveNewName() const {
419 auto now = std::chrono::system_clock::now();
420 auto in_time_t = std::chrono::system_clock::to_time_t(now);
421
422 return mValidPaths[0] + PathGenerate( std::to_string(in_time_t) + EXTENSION_SAVEGAME, eSave);
423}
424
425std::string cResourceMan::GetScriptPath(const std::string& pType) const {
426

Callers 1

Game_SaveMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected