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

Method validatePaths

Source/ResourceMan.cpp:97–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97void cResourceMan::validatePaths() {
98
99 mValidPaths.clear();
100 for (auto path : mAllPaths) {
101
102 if (path[path.size() - 1] != '/')
103 path.append("/");
104
105 if (FileExists(path + "Data")) {
106
107 // Ensure we have a trailing /
108 if (path[path.size() - 1] != '/')
109 path.append("/");
110
111 mValidPaths.push_back(path);
112 }
113 }
114}
115
116void cResourceMan::findCampaigns() {
117 mCampaigns.clear();

Callers

nothing calls this directly

Calls 3

clearMethod · 0.45
sizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected