Skip to content

Commit

Permalink
fix: Email Login not showing
Browse files Browse the repository at this point in the history
  • Loading branch information
Taiga74164 committed Apr 4, 2024
1 parent 15c79fd commit bff095d
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 4 deletions.
33 changes: 33 additions & 0 deletions src/game/appdata/il2cpp-types.h
Original file line number Diff line number Diff line change
Expand Up @@ -3761,6 +3761,11 @@ namespace app
MonitorData* monitor;
};

enum class AHPHDBJOAGF__Enum : int32_t
{
IsObstacle = 0x00000000,
};

struct Char3DIdentity__Fields
{
struct MonoBehaviour__Fields _;
Expand Down Expand Up @@ -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
4 changes: 2 additions & 2 deletions src/game/cheat/features/DisableWebView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down
6 changes: 4 additions & 2 deletions src/game/game-utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit bff095d

Please sign in to comment.