Skip to content

Commit 7943e61

Browse files
committed
QuickEdit
1 parent 5822f12 commit 7943e61

2 files changed

Lines changed: 1 addition & 16 deletions

File tree

MarathonRecomp/api/Sonicteam/Player/State/SonicContext.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ namespace Sonicteam::Player::State
1010
class SonicContext : public CommonContext
1111
{
1212
public:
13-
14-
1513
//Sprite
1614
enum GemsS:uint32_t {
1715
SGreen = 1,
@@ -33,9 +31,6 @@ namespace Sonicteam::Player::State
3331
Yellow,
3432
Super
3533
};
36-
37-
38-
3934
be<GemsS> m_CurrentGemSprite;
4035
boost::shared_ptr<Sonicteam::Player::SonicGauge> m_Gauge;
4136
uint8_t m_HomingLockOn;
@@ -56,5 +51,6 @@ namespace Sonicteam::Player::State
5651
uint8_t m_24B;
5752
be<uint32_t> m_HomingFlip;
5853
be<Gems> m_CurrentGem;
54+
MARATHON_INSERT_PADDING(0x58);
5955
};
6056
}

MarathonRecomp/patches/player_patches.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -256,15 +256,11 @@ void SonicGaugeRestorationGaugeFlagFix(PPCRegister& r_gauge, PPCRegister& r_cont
256256
if (!Config::SonicGauge || !r_gauge.u32)
257257
return;
258258

259-
260259
auto pGauge = (Sonicteam::Player::SonicGauge*)g_memory.Translate(r_gauge.u32);
261260
auto PContext = (Sonicteam::Player::State::SonicContext*)g_memory.Translate(r_context.u32);
262261
if ((uint32_t)(static_cast<Sonicteam::Player::IPlugIn*>(pGauge)->m_pVftable.get()) != 0x8200D4D8) // != SonicGauge
263262
return;
264263

265-
266-
267-
268264
if (PContext->m_Tornado != 0 || PContext->m_CurrentAnimation == 0xCB || PContext->m_CurrentAnimation == 0xCC || PContext->m_CurrentAnimation == 0x46)
269265
{
270266
pGauge->m_GroundedFlags = 1; // Lock game
@@ -274,32 +270,25 @@ void SonicGaugeRestorationGaugeFlagFix(PPCRegister& r_gauge, PPCRegister& r_cont
274270
using enum Sonicteam::Player::State::SonicContext::Gems;
275271

276272
if ((PContext->m_Input.get() & 0x10000) != 0) {
277-
printf("RT PRESS \n");
278273
PContext->m_24A = 0;
279274
}
280275

281276
if ((PContext->m_Input.get() & 0x20000) != 0 && (PContext->m_CurrentGem == Red || PContext->m_CurrentGem == Purple))
282277
{
283278
pGauge->m_GroundedFlags = 1;
284-
285-
286279
if (PContext->m_24A)
287280
{
288281
pGauge->m_GroundedFlags = 0;
289282
PContext->m_Shrink = 0;
290283
PContext->m_SlowTime = 0;
291284
}
292-
293285
}
294286
else if ((PContext->m_PostureFlags.get() & Sonicteam::Player::State::CommonContext::CC_GROUND) != 0 || PContext->m_24A)
295287
{
296288
pGauge->m_GroundedFlags = 0;
297289

298290
}
299-
printf("pGauge->m_GroundedFlags : %d\n", pGauge->m_GroundedFlags.get());
300-
301291
}
302292

303-
304293
}
305294
//Sonic Gauge Restoration

0 commit comments

Comments
 (0)