MCPcopy Create free account
hub / github.com/ddnet/ddnet / CreateLocalStorage

Function CreateLocalStorage

src/engine/shared/storage.cpp:947–956  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

945}
946
947std::unique_ptr<IStorage> CreateLocalStorage()
948{
949 std::unique_ptr<CStorage> pStorage = std::make_unique<CStorage>();
950 if(!pStorage->FindCurrentDirectory() ||
951 !pStorage->AddPath("$CURRENTDIR"))
952 {
953 return std::unique_ptr<IStorage>(nullptr);
954 }
955 return pStorage;
956}
957
958std::unique_ptr<IStorage> CreateTempStorage(const char *pDirectory, int NumArgs, const char **ppArguments)
959{

Callers 7

OpenMapFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
TESTFunction · 0.85

Calls 2

FindCurrentDirectoryMethod · 0.80
AddPathMethod · 0.80

Tested by 1

TESTFunction · 0.68