animation fixes
This commit is contained in:
parent
e7ed4d0096
commit
6f0c57d228
@ -56,7 +56,7 @@ There are a couple of things that have been reversed for other projects
|
|||||||
already that could probably be put into this project without too much effort.
|
already that could probably be put into this project without too much effort.
|
||||||
Again, the list is not complete:
|
Again, the list is not complete:
|
||||||
|
|
||||||
* Animation (https://github.com/aap/iii_anim)
|
* ~~Animation (https://github.com/aap/iii_anim)~~
|
||||||
* File Loader (https://github.com/aap/librwgta/tree/master/tools/IIItest)
|
* File Loader (https://github.com/aap/librwgta/tree/master/tools/IIItest)
|
||||||
* ...
|
* ...
|
||||||
|
|
||||||
|
@ -93,7 +93,7 @@ GetModelFromName(const char *name)
|
|||||||
|
|
||||||
for(i = 0; i < MODELINFOSIZE; i++){
|
for(i = 0; i < MODELINFOSIZE; i++){
|
||||||
mi = CModelInfo::GetModelInfo(i);
|
mi = CModelInfo::GetModelInfo(i);
|
||||||
if(mi->GetRwObject() && RwObjectGetType(mi->GetRwObject()) == rpCLUMP &&
|
if(mi && mi->GetRwObject() && RwObjectGetType(mi->GetRwObject()) == rpCLUMP &&
|
||||||
strcmpIgnoringDigits(mi->GetName(), name))
|
strcmpIgnoringDigits(mi->GetName(), name))
|
||||||
return mi;
|
return mi;
|
||||||
}
|
}
|
||||||
@ -152,6 +152,7 @@ CAnimBlendAssocGroup::CreateAssociations(const char *blockName, RpClump *clump,
|
|||||||
|
|
||||||
|
|
||||||
STARTPATCHES
|
STARTPATCHES
|
||||||
|
InjectHook(0x4012D0, &CAnimBlendAssocGroup::DestroyAssociations, PATCH_JUMP);
|
||||||
InjectHook(0x4013D0, (CAnimBlendAssociation *(CAnimBlendAssocGroup::*)(uint32))&CAnimBlendAssocGroup::GetAnimation, PATCH_JUMP);
|
InjectHook(0x4013D0, (CAnimBlendAssociation *(CAnimBlendAssocGroup::*)(uint32))&CAnimBlendAssocGroup::GetAnimation, PATCH_JUMP);
|
||||||
InjectHook(0x401300, (CAnimBlendAssociation *(CAnimBlendAssocGroup::*)(const char*))&CAnimBlendAssocGroup::GetAnimation, PATCH_JUMP);
|
InjectHook(0x401300, (CAnimBlendAssociation *(CAnimBlendAssocGroup::*)(const char*))&CAnimBlendAssocGroup::GetAnimation, PATCH_JUMP);
|
||||||
InjectHook(0x401420, (CAnimBlendAssociation *(CAnimBlendAssocGroup::*)(uint32))&CAnimBlendAssocGroup::CopyAnimation, PATCH_JUMP);
|
InjectHook(0x401420, (CAnimBlendAssociation *(CAnimBlendAssocGroup::*)(uint32))&CAnimBlendAssocGroup::CopyAnimation, PATCH_JUMP);
|
||||||
|
Loading…
Reference in New Issue
Block a user