add back isAPI impl

This commit is contained in:
HJfod 2023-02-19 22:04:46 +02:00
parent f7bfa21e51
commit 0cfa4a42fe

View file

@ -97,8 +97,7 @@ Result<ModInfo> ModInfo::Impl::createFromSchemaV010(ModJson const& rawJson) {
root.has("unloadable").into(impl->m_supportsUnloading);
root.has("early-load").into(impl->m_needsEarlyLoad);
if (root.has("api")) {
// TODO: figure out what got wiped with merge
// impl->isAPI = true;
impl->m_isAPI = true;
}
for (auto& dep : root.has("dependencies").iterate()) {
@ -194,11 +193,9 @@ Result<ModInfo> ModInfo::Impl::create(ModJson const& json) {
return Err(
"[mod.json] targets a version (" + schema.toString() +
") that isn't "
"supported by this version (v" +
") that isn't supported by this version (v" +
LOADER_VERSION_STR +
") of geode. "
"This is probably a bug; report it to "
") of geode. This is probably a bug; report it to "
"the Geode Development Team."
);
}