mirror of
https://github.com/N64Recomp/N64ModernRuntime.git
synced 2025-10-30 08:02:29 +00:00
set config id + version bugfix
This commit is contained in:
parent
7cabbf8333
commit
31462bf08b
1 changed files with 2 additions and 5 deletions
|
|
@ -716,11 +716,6 @@ recomp::mods::ModOpenError recomp::mods::parse_manifest(ModManifest& ret, const
|
||||||
return current_error;
|
return current_error;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (config != nullptr) {
|
|
||||||
config->set_id(ret.mod_id);
|
|
||||||
config->set_mod_version(ret.version.to_string());
|
|
||||||
}
|
|
||||||
|
|
||||||
// Authors
|
// Authors
|
||||||
current_error = try_get_vec<json::string_t>(ret.authors, manifest_json, authors_key, true, error_param);
|
current_error = try_get_vec<json::string_t>(ret.authors, manifest_json, authors_key, true, error_param);
|
||||||
if (current_error != ModOpenError::Good) {
|
if (current_error != ModOpenError::Good) {
|
||||||
|
|
@ -943,6 +938,8 @@ recomp::mods::ModOpenError recomp::mods::ModContext::open_mod_from_manifest(ModM
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mod_config.set_id(manifest.mod_id);
|
||||||
|
mod_config.set_mod_version(manifest.version.to_string());
|
||||||
// Read the mod config if it exists.
|
// Read the mod config if it exists.
|
||||||
parse_mod_config_storage(manifest.mod_id, mod_config);
|
parse_mod_config_storage(manifest.mod_id, mod_config);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue