| 75 | } |
| 76 | |
| 77 | auto intEntry(toml::table table, const std::string entry_name) -> int |
| 78 | { |
| 79 | auto node = table[entry_name]; |
| 80 | if (!node) { |
| 81 | qCritical() << QString::fromStdString("Failed to read int property '" + entry_name + "' in mod metadata."); |
| 82 | return {}; |
| 83 | } |
| 84 | |
| 85 | return node.value_or(0); |
| 86 | } |
| 87 | |
| 88 | auto V1::createModFormat(QDir& index_dir, ModPlatform::IndexedPack& mod_pack, ModPlatform::IndexedVersion& mod_version) -> Mod |
| 89 | { |