Checks whether a file is valid as a mod or not. */
| 649 | |
| 650 | /** Checks whether a file is valid as a mod or not. */ |
| 651 | bool validate(QFileInfo file) |
| 652 | { |
| 653 | Mod mod{ file }; |
| 654 | return ModUtils::process(mod, ProcessingLevel::BasicInfoOnly) && mod.valid(); |
| 655 | } |
| 656 | |
| 657 | bool processIconPNG(const Mod& mod, QByteArray&& raw_data, QPixmap* pixmap) |
| 658 | { |
no test coverage detected