d_lyt_meter_timer OK by shamefully avoiding an inline

This commit is contained in:
robojumper
2025-04-18 20:50:14 +02:00
parent cd7e0d47a9
commit 7f7a93451e
5 changed files with 104 additions and 94 deletions
+6
View File
@@ -292,6 +292,12 @@ struct AnmGroupBase_c {
return mpFrameCtrl->getNextFrame();
}
#ifdef NEED_DIRECT_FRAMECTRL_ACCESS
m2d::FrameCtrl_c *getFrameCtrl() {
return mpFrameCtrl;
}
#endif
private:
/* 0x04 */ void *field_0x04;
/* 0x08 */ m2d::FrameCtrl_c *mpFrameCtrl;
+8
View File
@@ -114,7 +114,15 @@ public:
return mEndFrame;
}
// There's at least 1 file where the obvious way of writing
// it seems to require accessing some members directly, without
// inlines. I want to discourage direct access though, so
// putting the ability behind an explicit define. We don't
// know either way whether inlines are used at all or
// whether stuff even is private.
#ifndef NEED_DIRECT_FRAMECTRL_ACCESS
private:
#endif
inline bool notLooping() const {
return (mFlags & FLAG_NO_LOOP) != 0;
}