mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-11-29 12:52:18 -05:00
fix cutscenes loading wrong resource when only an mq rom is loaded (#2545)
This commit is contained in:
parent
60b206140d
commit
c1ddeec02a
@ -1186,7 +1186,14 @@ extern "C" SkeletonHeader* ResourceMgr_LoadSkeletonByName(const char* path) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
extern "C" s32* ResourceMgr_LoadCSByName(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) {
|
std::filesystem::path GetSaveFile(std::shared_ptr<Mercury> Conf) {
|
||||||
|
Loading…
Reference in New Issue
Block a user