Skip to content

Commit 4997f2c

Browse files
committed
Indentation
Signed-off-by: Isaac Marovitz <isaacryu@icloud.com>
1 parent 036a8b7 commit 4997f2c

1 file changed

Lines changed: 16 additions & 8 deletions

File tree

MarathonRecomp/patches/player_patches.cpp

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,8 @@ bool DisablePushState()
262262
return Config::DisablePushState;
263263
}
264264

265-
const Sonicteam::Player::State::SonicContext::GemSprite gemConversionTable[] = {
265+
const Sonicteam::Player::State::SonicContext::GemSprite gemConversionTable[] =
266+
{
266267
Sonicteam::Player::State::SonicContext::GemSprite_Blue,
267268
Sonicteam::Player::State::SonicContext::GemSprite_Red,
268269
Sonicteam::Player::State::SonicContext::GemSprite_Green,
@@ -276,7 +277,8 @@ const Sonicteam::Player::State::SonicContext::GemSprite gemConversionTable[] = {
276277
// Check Gauge Drain
277278
// SonicTeam::Player::SonicGauge (IVariable), IVariable::Init(RefSharedPointer<SonicTeam::LuaSystem>)
278279
PPC_FUNC_IMPL(__imp__sub_82217FC0);
279-
PPC_FUNC(sub_82217FC0) {
280+
PPC_FUNC(sub_82217FC0)
281+
{
280282
if (!Config::RestoreSonicActionGauge)
281283
{
282284
__imp__sub_82217FC0(ctx, base);
@@ -323,7 +325,8 @@ PPC_FUNC(sub_82217FC0) {
323325

324326
// Gauge Drain
325327
PPC_FUNC_IMPL(__imp__sub_82218068);
326-
PPC_FUNC(sub_82218068) {
328+
PPC_FUNC(sub_82218068)
329+
{
327330
if (!Config::RestoreSonicActionGauge)
328331
{
329332
__imp__sub_82217FC0(ctx, base);
@@ -370,7 +373,8 @@ PPC_FUNC(sub_82218068) {
370373
}
371374

372375
PPC_FUNC_IMPL(__imp__sub_8223F360);
373-
PPC_FUNC(sub_8223F360) {
376+
PPC_FUNC(sub_8223F360)
377+
{
374378
auto iVariable = ctx.r3.u32;
375379
auto refTypeLuaSystem = ctx.r4.u32;
376380

@@ -419,14 +423,16 @@ PPC_FUNC(sub_8223F360) {
419423
g_userHeap.Free(buffer);
420424
}
421425

422-
void SonicGaugeRestorationGaugeGemSpriteResetFix(PPCRegister& r_GameImp) {
426+
void SonicGaugeRestorationGaugeGemSpriteResetFix(PPCRegister& r_GameImp)
427+
{
423428
Sonicteam::GameImp* pGameImp = (Sonicteam::GameImp*)g_memory.Translate(r_GameImp.u32);
424429

425430
for (int i = 0; i < 4; i++)
426431
pGameImp->m_PlayerData[i].GemIndex = 0;
427432
}
428433

429-
void SonicGaugeRestorationGaugeFlagFix(PPCRegister& r_gauge, PPCRegister& r_context) {
434+
void SonicGaugeRestorationGaugeFlagFix(PPCRegister& r_gauge, PPCRegister& r_context)
435+
{
430436
if (!Config::RestoreSonicActionGauge || !r_gauge.u32)
431437
return;
432438

@@ -445,7 +451,8 @@ void SonicGaugeRestorationGaugeFlagFix(PPCRegister& r_gauge, PPCRegister& r_cont
445451
else
446452
{
447453
using enum Sonicteam::Player::State::SonicContext::Gem;
448-
if ((pContext->m_Buttons.get() & 0x10000) != 0) {
454+
if ((pContext->m_Buttons.get() & 0x10000) != 0)
455+
{
449456
pContext->m_24A = 0;
450457
}
451458

@@ -466,6 +473,7 @@ void SonicGaugeRestorationGaugeFlagFix(PPCRegister& r_gauge, PPCRegister& r_cont
466473
}
467474
}
468475

469-
bool InfiniteLives() {
476+
bool InfiniteLives()
477+
{
470478
return Config::InfiniteLives;
471479
}

0 commit comments

Comments
 (0)