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

Method open

src/SFML/System/FileInputStream.cpp:73–86  ·  view source on GitHub ↗

///////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

71
72////////////////////////////////////////////////////////////
73bool FileInputStream::open(const std::filesystem::path& filename)
74{
75#ifdef SFML_SYSTEM_ANDROID
76 if (priv::getActivityStatesPtr() != nullptr)
77 {
78 m_androidFile = std::make_unique<priv::ResourceStream>();
79 if (!m_androidFile->open(filename))
80 return false;
81 return m_androidFile->tell().has_value();
82 }
83#endif
84 m_file.reset(openFile(filename, "rb"));
85 return m_file != nullptr;
86}
87
88
89////////////////////////////////////////////////////////////

Callers

nothing calls this directly

Calls 3

openFileFunction · 0.85
resetMethod · 0.80
tellMethod · 0.45

Tested by

no test coverage detected