MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / LoadInt

Function LoadInt

engine/Poseidon/IO/Streams/QBStream.cpp:79–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77 if (!EqualPathComponent(LastPathComponent(dir), context->prefix, context->prefixLen))
78 return false;
79
80 std::string candidate = (const char*)dir;
81 if (!candidate.empty() && candidate.back() != '/' && candidate.back() != '\\')
82 candidate += "/";
83 candidate += context->rest;
84 if (!QIFStream::FileExists(candidate.c_str()))
85 return false;
86
87 context->resolved = std::move(candidate);
88 return true;
89}
90
91std::string ResolveModRootAlias(const char* name)
92{

Callers 7

TransferBinaryArrayMethod · 0.85
TransferBasicArrayMethod · 0.85
TransferArrayMethod · 0.85
TransferRefArrayTMethod · 0.85
VersionMethod · 0.85
LoadFileInfoFunction · 0.85
LoadMethod · 0.85

Calls 2

readMethod · 0.45
failMethod · 0.45

Tested by

no test coverage detected