Skip to content

Commit 86299f3

Browse files
committed
QuickEdit
1 parent d7e9179 commit 86299f3

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
@@ -260,15 +260,11 @@ void SonicGaugeRestorationGaugeFlagFix(PPCRegister& r_gauge, PPCRegister& r_cont
260260
if (!Config::SonicGauge || !r_gauge.u32)
261261
return;
262262

263-
264263
auto pGauge = (Sonicteam::Player::SonicGauge*)g_memory.Translate(r_gauge.u32);
265264
auto PContext = (Sonicteam::Player::State::SonicContext*)g_memory.Translate(r_context.u32);
266265
if ((uint32_t)(static_cast<Sonicteam::Player::IPlugIn*>(pGauge)->m_pVftable.get()) != 0x8200D4D8) // != SonicGauge
267266
return;
268267

269-
270-
271-
272268
if (PContext->m_Tornado != 0 || PContext->m_CurrentAnimation == 0xCB || PContext->m_CurrentAnimation == 0xCC || PContext->m_CurrentAnimation == 0x46)
273269
{
274270
pGauge->m_GroundedFlags = 1; // Lock game
@@ -278,32 +274,25 @@ void SonicGaugeRestorationGaugeFlagFix(PPCRegister& r_gauge, PPCRegister& r_cont
278274
using enum Sonicteam::Player::State::SonicContext::Gems;
279275

280276
if ((PContext->m_Input.get() & 0x10000) != 0) {
281-
printf("RT PRESS \n");
282277
PContext->m_24A = 0;
283278
}
284279

285280
if ((PContext->m_Input.get() & 0x20000) != 0 && (PContext->m_CurrentGem == Red || PContext->m_CurrentGem == Purple))
286281
{
287282
pGauge->m_GroundedFlags = 1;
288-
289-
290283
if (PContext->m_24A)
291284
{
292285
pGauge->m_GroundedFlags = 0;
293286
PContext->m_Shrink = 0;
294287
PContext->m_SlowTime = 0;
295288
}
296-
297289
}
298290
else if ((PContext->m_PostureFlags.get() & Sonicteam::Player::State::CommonContext::CC_GROUND) != 0 || PContext->m_24A)
299291
{
300292
pGauge->m_GroundedFlags = 0;
301293

302294
}
303-
printf("pGauge->m_GroundedFlags : %d\n", pGauge->m_GroundedFlags.get());
304-
305295
}
306296

307-
308297
}
309298
//Sonic Gauge Restoration

0 commit comments

Comments
 (0)