MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / intEntry

Function intEntry

launcher/modplatform/packwiz/Packwiz.cpp:77–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77auto 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
88auto V1::createModFormat(QDir& index_dir, ModPlatform::IndexedPack& mod_pack, ModPlatform::IndexedVersion& mod_version) -> Mod
89{

Callers 1

getIndexForModMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected