Skip to content

Commit

Permalink
minor taianimation cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
EpochFlame committed Jan 2, 2024
1 parent 6416293 commit b2cba26
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 16 deletions.
2 changes: 1 addition & 1 deletion include/ID32.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ struct ID32 {
void updateString(void);
void write(class RandomAccessStream&);

u32 m_id; // _0
u32 mId; // _0
char sId[5]; // _4
};

Expand Down
20 changes: 8 additions & 12 deletions include/TAIanimation.h
Original file line number Diff line number Diff line change
@@ -1,24 +1,20 @@
#ifndef _TAIANIMATION_H
#define _TAIANIMATION_H
typedef class TAIanimation;
typedef class AnimMgr;
typedef class AnimInfo;
#include "types.h"

class AnimInfo {
struct AnimInfo {
AnimInfo();
};
class AnimMgr {
struct AnimMgr {
AnimMgr();

public:
AnimInfo* addAnimation(char*, bool);
};

class TAIanimation {
unsigned int _00; // _00
AnimMgr* m_animmgr; // _04
AnimInfo* m_animinfo; // _08
struct TAIanimation {
u32 _00; // _00
AnimMgr* mAnimmgr; // _04
AnimInfo* mAniminfo; // _08

AnimInfo* addAnimation(char*);
AnimInfo* addAnimation(char* anim);
};
#endif
6 changes: 3 additions & 3 deletions src/plugPikiYamashita/TAIanimation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
* Address: 801A3594
* Size: 00003C
*/
AnimInfo* TAIanimation::addAnimation(char* param_1)
AnimInfo* TAIanimation::addAnimation(char* anim)
{
m_animinfo = m_animmgr->addAnimation(param_1, true);
return m_animinfo;
mAniminfo = mAnimmgr->addAnimation(anim, true);
return mAniminfo;
}

0 comments on commit b2cba26

Please sign in to comment.