From 4b358d8e4349ac4486b2ab85bc36534abc1749d8 Mon Sep 17 00:00:00 2001 From: Hyper <34012267+hyperbx@users.noreply.github.com> Date: Fri, 17 Jan 2025 20:44:56 +0000 Subject: [PATCH] Rebase branch to main --- UnleashedRecomp/patches/misc_patches.cpp | 20 +------------------ .../ui/reddog/windows/exports_window.cpp | 2 ++ UnleashedRecompResources | 2 +- tools/PowerRecomp | 2 +- 4 files changed, 5 insertions(+), 21 deletions(-) diff --git a/UnleashedRecomp/patches/misc_patches.cpp b/UnleashedRecomp/patches/misc_patches.cpp index a6af264..a35025b 100644 --- a/UnleashedRecomp/patches/misc_patches.cpp +++ b/UnleashedRecomp/patches/misc_patches.cpp @@ -1,4 +1,5 @@ #include +#include #include #include #include @@ -106,22 +107,3 @@ PPC_FUNC(sub_82586698) __imp__sub_82586698(ctx, base); } - -PPC_FUNC_IMPL(__imp__sub_822C9398); -PPC_FUNC(sub_822C9398) -{ - auto a2 = (Hedgehog::Math::CVector*)g_memory.Translate(ctx.r4.u32); - auto a3 = (Hedgehog::Math::CVector*)g_memory.Translate(ctx.r5.u32); - auto a4 = (be*)g_memory.Translate(ctx.r6.u32); - - Reddog::Vector3 start(a2->X, a2->Y, a2->Z); - Reddog::Vector3 end(a3->X, a3->Y, a3->Z); - - const Reddog::SDrawLine line{ - start, end, a4->value - }; - - Reddog::DebugDraw::DrawLine(line); - - __imp__sub_822C9398(ctx, base); -} \ No newline at end of file diff --git a/UnleashedRecomp/ui/reddog/windows/exports_window.cpp b/UnleashedRecomp/ui/reddog/windows/exports_window.cpp index f6e7fd4..88461f0 100644 --- a/UnleashedRecomp/ui/reddog/windows/exports_window.cpp +++ b/UnleashedRecomp/ui/reddog/windows/exports_window.cpp @@ -10,6 +10,8 @@ void ExportsWindow::Draw() { ImGui::TextColored({ 1, 0, 0, 1 }, "For testing purposes only, use Hedge Mod Manager to toggle these."); Reddog::Checkbox("Allow Cancelling Unleash", &Config::AllowCancellingUnleash.Value); + Reddog::Checkbox("Disable Auto Save Warning", &Config::DisableAutoSaveWarning.Value); + Reddog::Checkbox("Disable DLC Icon", &Config::DisableDLCIcon.Value); Reddog::Checkbox("Fix Unleash Out of Control Drain", &Config::FixUnleashOutOfControlDrain.Value); Reddog::Checkbox("Homing Attack on Boost", &Config::HomingAttackOnBoost.Value); Reddog::Checkbox("Save Score at Checkpoints", &Config::SaveScoreAtCheckpoints.Value); diff --git a/UnleashedRecompResources b/UnleashedRecompResources index 775f0bb..263812f 160000 --- a/UnleashedRecompResources +++ b/UnleashedRecompResources @@ -1 +1 @@ -Subproject commit 775f0bb0262101653b68f5a2e42305e3a30c3347 +Subproject commit 263812fd188ab4b318337ef1317418432b85bc16 diff --git a/tools/PowerRecomp b/tools/PowerRecomp index de28409..7fb8af1 160000 --- a/tools/PowerRecomp +++ b/tools/PowerRecomp @@ -1 +1 @@ -Subproject commit de2840970ffc3161a4cb8743b10ddd4da93bdc9f +Subproject commit 7fb8af1bad9ecb22d5fa9c1b72555cdf7c22db02