diff --git a/src/game/appdata/il2cpp-types.h b/src/game/appdata/il2cpp-types.h index 82b2235..9314550 100644 --- a/src/game/appdata/il2cpp-types.h +++ b/src/game/appdata/il2cpp-types.h @@ -3761,6 +3761,11 @@ namespace app MonitorData* monitor; }; + enum class AHPHDBJOAGF__Enum : int32_t + { + IsObstacle = 0x00000000, + }; + struct Char3DIdentity__Fields { struct MonoBehaviour__Fields _; @@ -5241,6 +5246,34 @@ namespace app struct Animator__Fields fields; }; + struct __declspec(align(8)) OKDBDHFKIKF__Fields + { + int32_t GKCDKEJJPFP; + struct List_1_ENNEJEPMJLJ_* KKKLEDCOGAH; + }; + + struct OKDBDHFKIKF + { + struct OKDBDHFKIKF__Class* klass; + MonitorData* monitor; + struct OKDBDHFKIKF__Fields fields; + }; + + struct PNECDHFEEGD__Fields + { + struct ENNEJEPMJLJ__Fields _; + struct CharMonsterData* KAHOMEPMEFG; + struct CharResourceData* DGNOCKOMMMD; + struct List_1_ENNEJEPMJLJ_* DABFJBKNFOO; + }; + + struct PNECDHFEEGD + { + struct PNECDHFEEGD__Class* klass; + MonitorData* monitor; + struct PNECDHFEEGD__Fields fields; + }; + #if !defined(_GHIDRA_) && !defined(_IDA_) } #endif \ No newline at end of file diff --git a/src/game/cheat/features/DisableWebView.cpp b/src/game/cheat/features/DisableWebView.cpp index 9b1bfb1..59a1533 100644 --- a/src/game/cheat/features/DisableWebView.cpp +++ b/src/game/cheat/features/DisableWebView.cpp @@ -15,7 +15,7 @@ namespace Cheat::Features void DisableWebView::WebViewDialog_Show_Hook(void* __this, MethodInfo* method) { auto& vars = Vars::GetInstance(); - if (!vars.DisableWebView.value()) + if (!vars.DisableWebView.value() || IsInLoginScene()) CALL_ORIGIN(WebViewDialog_Show_Hook, __this, method); return; @@ -24,7 +24,7 @@ namespace Cheat::Features void DisableWebView::WebViewUI_RefreshSize_Hook(void* __this, MethodInfo* method) { auto& vars = Vars::GetInstance(); - if (!vars.DisableWebView.value()) + if (!vars.DisableWebView.value() || IsInLoginScene()) CALL_ORIGIN(WebViewUI_RefreshSize_Hook, __this, method); return; diff --git a/src/game/game-utils.hpp b/src/game/game-utils.hpp index 405aab5..9db2a6f 100644 --- a/src/game/game-utils.hpp +++ b/src/game/game-utils.hpp @@ -18,8 +18,10 @@ inline bool IsInLoginScene() { auto scene = app::SceneManager_GetActiveScene(nullptr); auto sceneName = il2cppi_to_string(app::Scene_GetNameInternal(scene.m_Handle, nullptr)); - LOG("Scene name: %s", sceneName.c_str()); - if (sceneName == "LoginScene") return true; + // LOG("Scene name: %s", sceneName.c_str()); + if (sceneName == "SceneIntro" || + sceneName == "SceneLogin") + return true; return false; }