mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-07-30 19:40:31 -07:00
fix cutscenes loading wrong resource when only an mq rom is loaded (#2545)
This commit is contained in:
parent
60b206140d
commit
c1ddeec02a
1 changed files with 8 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue