MCPcopy Create free account
hub / github.com/atraczyk/2d-engine / fileExists

Function fileExists

engine/src/utils.cpp:69–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69static bool fileExists(const std::string &path) {
70 std::ifstream file(path.c_str(), std::ios::binary);
71 return file.good();
72}
73
74static std::string normalizePath(std::string path) {
75 std::replace(path.begin(), path.end(), '\\', '/');

Callers 1

resolveResourcePathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected