Skip to content

Commit

Permalink
Fix NowLoading::Show not hooking
Browse files Browse the repository at this point in the history
  • Loading branch information
Kimjio committed Sep 8, 2024
1 parent aadf461 commit de26e8d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/hook.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
#include "scripts/mscorlib/System/Boolean.hpp"
#include "scripts/mscorlib/System/Enum.hpp"
#include "scripts/mscorlib/System/Int32.hpp"
#include "scripts/mscorlib/System/Nullable.hpp"
#include "scripts/mscorlib/System/Collections/Generic/Dictionary.hpp"

#include "scripts/CriMw.CriWare.Runtime/CriWare/CriAtomEx.hpp"
Expand Down Expand Up @@ -10832,7 +10833,7 @@ namespace

void* NowLoading_Show_orig = nullptr;

void NowLoading_Show_hook(Il2CppObject* _this, int type, Il2CppDelegate* onComplete, Il2CppObject* overrideDuration, int easeType, Il2CppObject* customInEffect, Il2CppObject* customLoopEffect, Il2CppObject* customOutEffect)
void NowLoading_Show_hook(Il2CppObject* _this, int type, Il2CppDelegate* onComplete, Il2CppObject* overrideDuration, int easeType, Il2CppObject* customInEffect, Il2CppObject* customLoopEffect, Il2CppObject* customOutEffect, int charaId)
{
// NowLoadingOrientation
if (type == 2 && (config::freeform_window || !config::ui_loading_show_orientation_guide))
Expand All @@ -10846,7 +10847,7 @@ namespace
_this,
type,
onComplete, overrideDuration, easeType,
customInEffect, customLoopEffect, customOutEffect);
customInEffect, customLoopEffect, customOutEffect, charaId);
}
if (onComplete && config::hide_now_loading)
{
Expand Down Expand Up @@ -13222,7 +13223,7 @@ namespace

auto NowLoading_Show_addr = il2cpp_symbols::get_method_pointer(
"umamusume.dll",
"Gallop", "NowLoading", "Show", 7);
"Gallop", "NowLoading", "Show", 8);

auto NowLoading_Hide_addr = il2cpp_symbols::get_method_pointer(
"umamusume.dll",
Expand Down Expand Up @@ -13346,6 +13347,7 @@ namespace

ADD_HOOK(Light_set_shadowResolution, "UnityEngine.Light.set_shadowResolution(UnityEngine.Rendering.LightShadowResolution) at %p\n");

// TODO Gallop.NowLoading::ShowCustomWipeFlash
ADD_HOOK(NowLoading_Show, "Gallop.NowLoading::Show at %p\n");

ADD_HOOK(NowLoading_Hide, "Gallop.NowLoading::Hide at %p\n");
Expand Down

0 comments on commit de26e8d

Please sign in to comment.