mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-30 10:15:36 +01:00
Require new plugins to specify a target API version
This commit is contained in:
committed by
GitHub
parent
952fb9ebe2
commit
079d99d7b2
@@ -161,6 +161,12 @@ PluginMetadata Plugin::GetMetadata(const DukValue& dukMetadata)
|
||||
{
|
||||
metadata.TargetApiVersion = dukTargetApiVersion.as_int();
|
||||
}
|
||||
else
|
||||
{
|
||||
log_error(
|
||||
u8"Plug-in “%s” does not specify a target API version or specifies it incorrectly. Emulating deprecated APIs.",
|
||||
metadata.Name.c_str());
|
||||
}
|
||||
|
||||
auto dukAuthors = dukMetadata["authors"];
|
||||
dukAuthors.push();
|
||||
|
||||
Reference in New Issue
Block a user