1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-19 21:13:05 +01:00

Add support for RCT Classic audio files

This commit is contained in:
Ted John
2022-08-29 10:50:42 +01:00
committed by Gymnasiast
parent 7d5e2e815e
commit 9699c9db9e
5 changed files with 35 additions and 4 deletions

View File

@@ -502,7 +502,10 @@ namespace ObjectFactory
std::unique_ptr<Object> CreateObjectFromJson(
IObjectRepository& objectRepository, json_t& jRoot, const IFileDataRetriever* fileRetriever, bool loadImageTable)
{
Guard::Assert(jRoot.is_object(), "ObjectFactory::CreateObjectFromJson expects parameter jRoot to be object");
if (!jRoot.is_object())
{
throw std::runtime_error("Object JSON root was not an object");
}
log_verbose("CreateObjectFromJson(...)");