| 1031 | } |
| 1032 | |
| 1033 | bool 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 | } |
no test coverage detected