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

Method FileReadStr

Source/ResourceMan.cpp:341–346  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

339}
340
341std::string cResourceMan::FileReadStr(const std::string& pFile) {
342
343 auto content = FileRead(pFile);
344
345 return std::string((char*)content->data(), content->size());
346}
347
348tSharedBuffer cResourceMan::FileRead(const std::string& pFile) {
349 std::ifstream* fileStream;

Callers 4

Game_LoadMethod · 0.80
scriptCallMethod · 0.80
scriptsLoadFolderMethod · 0.80
RunMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected