MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / open

Method open

TheForceEngine/TFE_FileSystem/filestream.cpp:33–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33bool FileStream::open(const char* filename, AccessMode mode)
34{
35 const char* modeStrings[] = { "rb", "wb", "rb+", "ab"};
36 m_file = fopen(filename, modeStrings[mode]);
37 m_mode = mode;
38
39 return m_file != nullptr;
40}
41
42bool FileStream::open(const FilePath* filePath, AccessMode mode)
43{

Callers 9

readScriptFileTFEFunction · 0.45
parseNameFromTextFunction · 0.45
readFromQueueFunction · 0.45
extractPosterFromImageFunction · 0.45
extractPosterFromModFunction · 0.45
manualFunction · 0.45
creditsFunction · 0.45
configAboutFunction · 0.45
readContentsMethod · 0.45

Calls 1

openFileMethod · 0.45

Tested by

no test coverage detected