Skip to content

Commit 130a08a

Browse files
committed
multi variations p2 fix
1 parent d1c1c55 commit 130a08a

File tree

4 files changed

+11
-9
lines changed

4 files changed

+11
-9
lines changed

MKXHook/code/mk10.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ void __fastcall MK10Hooks::HookStartupFightRecording()
316316
if (!TheMenu->bCustomTraitAppendP2)
317317
MK10::ClearTraits(PLAYER2);
318318
for (int i = 0; i < P2Traits.size(); i++)
319-
MK10::SetTrait(PLAYER2, P1Traits[i].c_str());
319+
MK10::SetTrait(PLAYER2, P2Traits[i].c_str());
320320

321321
}
322322

MKXHook/code/mk10.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#define GFG_GAME_INFO 0x1430DBA00
66

77

8-
#define MKXHOOK_VERSION "0.5.4"
8+
#define MKXHOOK_VERSION "0.5.5"
99

1010
enum PLAYER_NUM
1111
{

MKXHook/code/mk10menu.cpp

+9-3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#include "eSettingsManager.h"
88
#include <vector>
99
#include <string>
10+
#include "eNotifManager.h"
1011

1112
bool bShowMessageError = 0;
1213

@@ -326,7 +327,7 @@ void MK10Menu::Draw()
326327
ImGui::SliderInt("Variation", &iPlayer1Trait, 1, 3);
327328
ImGui::Separator();
328329
ImGui::Checkbox("Enable Player 2 Modifier", &bPlayer2ModifierEnabled);
329-
ImGui::SameLine(); ShowHelpMarker("NB: Make sure you do not replace Shinnok boss fight, it'll crash.");
330+
ImGui::SameLine(); ShowHelpMarker("NB: Make sure you do not replace Shinnok boss fight, game will crash.");
330331
ImGui::Checkbox("Enable Player 2 Variation Modifier", &bPlayer2TraitEnabled);
331332

332333

@@ -455,7 +456,7 @@ void MK10Menu::Draw()
455456
if (fSlowMotionSpeed > 2.0f) fSlowMotionSpeed = 2.0f;
456457
if (fSlowMotionSpeed < 0.0f) fSlowMotionSpeed = 0.0f;
457458
ImGui::Checkbox("Enable", &bSlowMotionEnabled);
458-
459+
ImGui::SameLine(); ShowHelpMarker("Hotkey - F5.");
459460
ImGui::Separator();
460461
ImGui::EndTabItem();
461462
}
@@ -470,7 +471,7 @@ void MK10Menu::Draw()
470471

471472

472473
ImGui::Checkbox("Enable Freecam", &bFreeCameraMovement);
473-
ImGui::SameLine(); ShowHelpMarker("Requires both toggles enabled!\n You can configure keys in .ini file.");
474+
ImGui::SameLine(); ShowHelpMarker("Requires both toggles enabled!\nYou can configure keys in .ini file.");
474475
ImGui::InputFloat("Freecam Speed", &fFreeCameraSpeed);
475476
ImGui::InputInt("Freecam Rotation Speed", &iFreeCameraRotSpeed);
476477

@@ -570,7 +571,12 @@ void MK10Menu::Draw()
570571
int64 gallery = ((int64(__fastcall*)())_addr(0x140483C00))();
571572

572573
if (gallery)
574+
{
573575
((void(__fastcall*)(int64))_addr(0x1404A2150))(gallery);
576+
Notifications->SetNotificationTime(5500);
577+
Notifications->PushNotification("Costumes should be unlocked now, check costumes list in select screen.");
578+
}
579+
574580
}
575581

576582

MKXHook/dxhook.h

-4
This file was deleted.

0 commit comments

Comments
 (0)