Skip to content

Commit

Permalink
Implemented Mission Start/Clear scaling.
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-fadely committed Feb 20, 2016
1 parent 5979448 commit 66f3233
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion SADXModLoader/HudScale.cpp
Expand Up @@ -45,6 +45,7 @@ static Trampoline* scaleEmblemScreen;
static Trampoline* scaleBossName;
static Trampoline* scaleNightsCards;
static Trampoline* scaleNightsJackpot;
static Trampoline* scaleMissionStartClear;

#pragma endregion

Expand Down Expand Up @@ -100,7 +101,6 @@ static void __cdecl ScalePop()
doScale = scale_stack.size() > 0;
}


static inline void __stdcall ScaleObjFunc(Align align, ObjectMaster* a1, Trampoline* trampoline)
{
ScalePush(align);
Expand Down Expand Up @@ -272,6 +272,11 @@ static void __cdecl ScaleNightsJackpot(ObjectMaster* a1)
ScaleObjFunc(Align::Auto, a1, scaleNightsJackpot);
}

static void __cdecl ScaleMissionStartClear(ObjectMaster* a1)
{
ScaleObjFunc(Align::Center, a1, scaleMissionStartClear);
}

#ifdef _DEBUG
static vector<NJS_SPRITE*> sprites;
#endif
Expand Down Expand Up @@ -433,4 +438,6 @@ void SetupHudScale()
scaleNightsCards = new Trampoline(0x005D73F0, 0x005D73F5, (DetourFunction)ScaleNightsCards);
WriteData((float**)0x005D701B, &last_h);
scaleNightsJackpot = new Trampoline(0x005D6E60, 0x005D6E67, (DetourFunction)ScaleNightsJackpot);

scaleMissionStartClear = new Trampoline(0x00591260, 0x00591268, (DetourFunction)ScaleMissionStartClear);
}

0 comments on commit 66f3233

Please sign in to comment.