fix cutscenes loading wrong resource when only an mq rom is loaded (#2545)

This commit is contained in:
Adam Bird 2023-02-26 19:44:30 -05:00 committed by GitHub
parent 60b206140d
commit c1ddeec02a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1186,7 +1186,14 @@ extern "C" SkeletonHeader* ResourceMgr_LoadSkeletonByName(const char* path) {
}
extern "C" s32* ResourceMgr_LoadCSByName(const char* path) {
return (s32*)GetResourceDataByName(path, false);
// Handle mq vs nonmq for cutscenes due to scene/ paths
auto res = ResourceMgr_LoadResource(path);
if (res == nullptr) {
return nullptr;
}
return (s32*)res->GetPointer();
}
std::filesystem::path GetSaveFile(std::shared_ptr<Mercury> Conf) {