Merge remote-tracking branch 'decomp/main' into 26-02-27-pjb-dev-2

This commit is contained in:
PJB3005
2026-03-02 12:36:59 +01:00
1778 changed files with 3698 additions and 3309 deletions
@@ -0,0 +1,20 @@
#include "JSystem/JSystem.h" // IWYU pragma: keep
#include "JSystem/JParticle/JPAKeyBlock.h"
#include "JSystem/JParticle/JPAMath.h"
JPAKeyBlock::JPAKeyBlock(const u8* data)
: mDataStart(data)
, field_0x4(reinterpret_cast<const BE(float)*>(&data[0xC]))
{
}
f32 JPAKeyBlock::calc(float p1) {
if (isLoop()) {
int v1 = (int)getKeyData()[(getKeyNum() - 1) * 4] + 1;
// p1 -= (v1 * ((int)p1 / v1));
int v2 = ((int)p1 / v1);
p1 = p1 - (v2 * v1);
}
return JPACalcKeyAnmValue(p1, getKeyNum(), getKeyData());
}