Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
Taiga74164 committed Apr 3, 2024
1 parent 44e0810 commit 6e28e01
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 31 deletions.
5 changes: 2 additions & 3 deletions src/game/appdata/il2cpp-functions.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ using namespace app;

DO_APP_FUNC(0x00454960, void, GameFrameWork_Update, (GameFrameWork* __this, MethodInfo* method));


DO_APP_FUNC(0x0202DAF0, String*, Marshal_PtrToStringAnsi, (void* ptr, MethodInfo* method));
DO_APP_FUNC(0x0202DB10, String*, Marshal_PtrToStringUni, (void* ptr, MethodInfo* method));

Expand Down Expand Up @@ -64,8 +63,8 @@ DO_APP_FUNC(0x00837510, void, JIBDAHKJHOG_HLLNLMAECBD, (JIBDAHKJHOG* __this, voi
DO_APP_FUNC(0x00836650, void, JIBDAHKJHOG_EJLDBPGJGPN, (JIBDAHKJHOG* __this, MethodInfo* method)); // NextStageBattle
DO_APP_FUNC(0x00836410, void, JIBDAHKJHOG_COLDHPFDOHG, (JIBDAHKJHOG* __this, MethodInfo* method)); // StageStart

//Shadow Cooldown And Limit
DO_APP_FUNC(0x009A41E0, void, JLLMICINIDA__LFCGJLAFFOM, (JLLMICINIDA* __this, MethodInfo* method));
// Shadow Cooldown And Limit
DO_APP_FUNC(0x009A41E0, void, JLLMICINIDA_LFCGJLAFFOM, (JLLMICINIDA* __this, MethodInfo* method));

// Singletons
DO_APP_FUNC(0x00344840, void*, TSingleton_GetInstance, (MethodInfo* method)); // Search for this in IDA
Expand Down
77 changes: 54 additions & 23 deletions src/game/appdata/il2cpp-types.h
Original file line number Diff line number Diff line change
Expand Up @@ -3470,15 +3470,25 @@ namespace app
struct KAAIFMKPKAG__Fields fields;
};

struct __declspec(align(8)) PHAMLKDDCGJ_Fields {
struct UnityEngine_GameObject_o* GDIOINPJJPJ;
struct System_Collections_Generic_List_ENNEJEPMJLJ__o* NHLIIJEJNHK;
struct System_Collections_Generic_List_PHAMLKDDCGJ__o* LFCGEIMEIPH;
struct System_Collections_Generic_List_ENNEJEPMJLJ__o* LJLCMHCDIFM;
struct System_Collections_Generic_List_Collider__o* EMAMJGPHNBN;
struct __declspec(align(8)) PHAMLKDDCGJ__Fields
{
struct GameObject* GDIOINPJJPJ;
struct List_1_ENNEJEPMJLJ_* NHLIIJEJNHK;
struct List_1_PHAMLKDDCGJ_* LFCGEIMEIPH;
struct List_1_ENNEJEPMJLJ_* LJLCMHCDIFM;
struct List_1_UnityEngine_Collider_* EMAMJGPHNBN;
};

struct PHAMLKDDCGJ
{
struct PHAMLKDDCGJ__Class* klass;
MonitorData* monitor;
struct PHAMLKDDCGJ__Fields fields;
};

struct JLLMICINIDA_Fields : PHAMLKDDCGJ_Fields {
struct JLLMICINIDA__Fields
{
struct PHAMLKDDCGJ__Fields _;
float DGPHADJBCDJ;
bool DONILLPJMFC;
int32_t KBDEBMKCNPD;
Expand All @@ -3490,7 +3500,7 @@ namespace app
{
struct JLLMICINIDA__Class* klass;
MonitorData* monitor;
struct JLLMICINIDA_Fields fields;
struct JLLMICINIDA__Fields fields;
};

struct __declspec(align(8)) PJKMAOEINNH__Fields
Expand Down Expand Up @@ -4566,37 +4576,58 @@ namespace app
struct StageReadyPage__Fields fields;
};

struct StoryQuestChapterPage_Fields {
enum class EQuestStoryModeType__Enum : uint8_t
{
None = 0x00,
Default = 0x01,
Reverse = 0x02,
Max = 0x03,
};

enum class EQuestStoryDifficultyType__Enum : uint8_t
{
None = 0x00,
Normal = 0x01,
Hard = 0x02,
VeryHard = 0x03,
Reverse = 0x04,
ReverseHard = 0x05,
ReverseVeryHard = 0x06,
Max = 0x07,
};

struct StoryQuestChapterPage__Fields
{
struct UIPage__Fields _;
struct UIContentsUnlockItem_o* ContentsUnlockItem;
struct UIGraph_o* HLMFGMDDAKK;
struct UIContentsUnlockItem* ContentsUnlockItem;
struct UIGraph* HLMFGMDDAKK;
struct StoryQuestChapterListItem* FCBKMDAAGJM;
struct StoryQuestChapterListItem* OGKFCDNBFKF;
struct StoryQuestChapterListItem* ScrollListNoticeChapterItem;
struct StoryQuestDifficultyTypeGroup* HPGPMDGOBDH;
struct UI_Button* HEIJCLLJFPG;
struct UI_Button* BtnProgressFocus;
struct UIMusicPlayer_array* MusicPlayerList;
struct Button* HEIJCLLJFPG;
struct Button* BtnProgressFocus;
struct UIMusicPlayer__Array* MusicPlayerList;
struct StoryQuestChpaterModeInfo* NCHNBMHIPEJ;
uint8_t KELBEBBNPDA; uint8_t PGNMMGJMGPI;
EQuestStoryModeType__Enum KELBEBBNPDA;
EQuestStoryDifficultyType__Enum PGNMMGJMGPI;
struct ContentMenuTabGroup* m_ContentMenuTabGroup;
struct UI_Image_array* backGroundImages;
struct PGCIJEIMPKB_o* DKDPEDKNJHN;
struct PHFECEJNAML_o* NLBDIENNAEJ;
struct Image__Array* backGroundImages;
struct PGCIJEIMPKB* DKDPEDKNJHN;
struct PHFECEJNAML* NLBDIENNAEJ;
bool NKBDMIPCCPA;
struct Vector3 FLCIAGINIBG;
struct Coroutine* PMNPICKHKKK;
struct RectTransform_o* CFPOEKLCAFD;
struct AnimationCurve_o* focusSpeedCurve;
struct RectTransform_o* MHODEEBGDDA;
struct RectTransform* CFPOEKLCAFD;
struct AnimationCurve* focusSpeedCurve;
struct RectTransform* MHODEEBGDDA;
};


struct StoryQuestChapterPage
{
struct StoryQuestChapterPage__Class* klass;
MonitorData* monitor;
struct StoryQuestChapterPage_Fields fields;
struct StoryQuestChapterPage__Fields fields;
};

enum class GameMovie_PHMCJCHPFEF__Enum : int32_t
Expand Down
11 changes: 7 additions & 4 deletions src/game/cheat/features/NoCooldown.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,20 @@ namespace Cheat::Features
NoCooldown::NoCooldown()
{
HookManager::install(app::KAAIFMKPKAG_IOFMGMJCCFO, KAAIFMKPKAG_IOFMGMJCCFO_Hook);
HookManager::install(app::JLLMICINIDA__LFCGJLAFFOM, JLLMICINIDA__LFCGJLAFFOM_Hook);
HookManager::install(app::JLLMICINIDA_LFCGJLAFFOM, JLLMICINIDA_LFCGJLAFFOM_Hook);
}

void NoCooldown::JLLMICINIDA__LFCGJLAFFOM_Hook(app::JLLMICINIDA* __this, MethodInfo* method)
void NoCooldown::JLLMICINIDA_LFCGJLAFFOM_Hook(app::JLLMICINIDA* __this, MethodInfo* method)
{
if (vars.b_NoCooldown && __this)
auto& vars = Vars::GetInstance();

if (vars.NoCooldown.value() && __this)
{
__this->fields.DGPHADJBCDJ = 0.0f;
__this->fields.KKEDBBAMIJL = 1;
}
return CALL_ORIGIN(JLLMICINIDA__LFCGJLAFFOM_Hook, __this, method);

return CALL_ORIGIN(JLLMICINIDA_LFCGJLAFFOM_Hook, __this, method);
}

void* NoCooldown::KAAIFMKPKAG_IOFMGMJCCFO_Hook(app::KAAIFMKPKAG* __this, bool DEJNILEHENL, MethodInfo* method)
Expand Down
2 changes: 1 addition & 1 deletion src/game/cheat/features/NoCooldown.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ namespace Cheat::Features

private:
static void* KAAIFMKPKAG_IOFMGMJCCFO_Hook(app::KAAIFMKPKAG* __this, bool DEJNILEHENL, MethodInfo* method);
static void JLLMICINIDA__LFCGJLAFFOM_Hook(app::JLLMICINIDA* __this, MethodInfo* method);
static void JLLMICINIDA_LFCGJLAFFOM_Hook(app::JLLMICINIDA* __this, MethodInfo* method);
};
}

0 comments on commit 6e28e01

Please sign in to comment.