| 710 | //========================================================================== |
| 711 | |
| 712 | static bool CheckAddon(GrpInfo* addon, GrpInfo* main, const char* filename) |
| 713 | { |
| 714 | if (addon->dependencyCRC != main->CRC) return false; |
| 715 | FString path = ExtractFilePath(filename); |
| 716 | if (path.Len() > 0 && path.Back() != '/') path += '/'; |
| 717 | for (auto& fn : addon->mustcontain) |
| 718 | { |
| 719 | FString check = path + fn; |
| 720 | if (FileExists(check)) continue; |
| 721 | #if !defined _WIN32 |
| 722 | check = path + fn.MakeLower(); |
| 723 | if (FileExists(check)) continue; |
| 724 | check = path + fn.MakeUpper(); |
| 725 | if (FileExists(check)) continue; |
| 726 | #endif |
| 727 | return false; |
| 728 | } |
| 729 | return true; |
| 730 | } |
| 731 | |
| 732 | //========================================================================== |
| 733 | // |
no test coverage detected