MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / cf_IsFileInHog

Function cf_IsFileInHog

cfile/cfile.cpp:1033–1050  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1031}
1032
1033bool cf_IsFileInHog(const std::filesystem::path &filename, const std::filesystem::path &hogname) {
1034 std::shared_ptr<library> lib = Libraries;
1035
1036 while (lib) {
1037 if (stricmp(lib->name.u8string().c_str(), hogname.u8string().c_str()) == 0) {
1038 // Now look for filename
1039 CFILE *cf;
1040 cf = cf_OpenFileInLibrary(filename, lib->handle);
1041 if (cf) {
1042 cfclose(cf);
1043 return true;
1044 }
1045 }
1046 lib = lib->next;
1047 }
1048
1049 return false;
1050}

Callers 1

msn_DoAskForURLFunction · 0.85

Calls 2

cf_OpenFileInLibraryFunction · 0.85
cfcloseFunction · 0.85

Tested by

no test coverage detected