mirror of
https://github.com/HIllya51/LunaHook.git
synced 2024-12-24 20:24:13 +08:00
aksys
This commit is contained in:
parent
7b7d8dcb58
commit
570c612d9a
@ -4,7 +4,7 @@ if(${CMAKE_SIZEOF_VOID_P} EQUAL 8)
|
|||||||
set(enginepath "engine64")
|
set(enginepath "engine64")
|
||||||
set(collector "enginecollection64.cpp")
|
set(collector "enginecollection64.cpp")
|
||||||
else()
|
else()
|
||||||
set(enginessrc ScrPlayer SYSD KISS IGScript Jellyfish BKEngine Overflow SRPGStudio Suika2 FVP LCScript Ohgetsu RPGMakerRGSS3 ONScripterru OVERDRIVE HXP Palette Purple Ruf RUNE Tarte Tomato Sakuradog Troy VitaminSoft Unknown TSSystem Xbangbang Anisetta Nijyuei Interheart LovaGame Giga Jisatu101 lua51 EntisGLS Ciel ACTGS TerraLunar PPSSPP jukujojidai PCSX2 VanillawareGC cef V8 mono pchooks PONScripter Bishop sakanagl Renpy Lightvn KiriKiri SideB BGI Bootup morning shyakunage Regista NNNConfig Eushully Majiro littlecheese Elf Silkys CMVS Wolf Circus1 Circus2 Cotopha Artemis CatSystem Atelier Tenco QLIE Pal AIL2 NeXAS LunaSoft Unicorn Rejet Interlude AdobeAir Retouch Malie Live Nexton Lucifen Waffle TinkerBell SystemAoi Yuris Nitroplus2 Bruns EME RRE Candy Speed ApricoT Triangle AB2Try MBLMED GameMaker DxLib CodeX Minori Sprite RpgmXP Eagls Debonosu C4 WillPlus Tanuki GXP AOS Mink YukaSystem2 sakusesu Exp Syuntada Pensil Anim hibiki Nitroplus Reallive Siglus Taskforce2 RUGP IronGameSystem Anex86 ShinyDaysGame MarineHeart ShinaRio CaramelBox UnisonShift Escude Ryokucha Alice Footy2 utawarerumono System4x Abalone Abel 5pb HorkEye XUSE Leaf Nekopack AXL AGS AdobeFlash10 FocasLens Tamamo Ages3ResT)
|
set(enginessrc Aksys ScrPlayer SYSD KISS IGScript Jellyfish BKEngine Overflow SRPGStudio Suika2 FVP LCScript Ohgetsu RPGMakerRGSS3 ONScripterru OVERDRIVE HXP Palette Purple Ruf RUNE Tarte Tomato Sakuradog Troy VitaminSoft Unknown TSSystem Xbangbang Anisetta Nijyuei Interheart LovaGame Giga Jisatu101 lua51 EntisGLS Ciel ACTGS TerraLunar PPSSPP jukujojidai PCSX2 VanillawareGC cef V8 mono pchooks PONScripter Bishop sakanagl Renpy Lightvn KiriKiri SideB BGI Bootup morning shyakunage Regista NNNConfig Eushully Majiro littlecheese Elf Silkys CMVS Wolf Circus1 Circus2 Cotopha Artemis CatSystem Atelier Tenco QLIE Pal AIL2 NeXAS LunaSoft Unicorn Rejet Interlude AdobeAir Retouch Malie Live Nexton Lucifen Waffle TinkerBell SystemAoi Yuris Nitroplus2 Bruns EME RRE Candy Speed ApricoT Triangle AB2Try MBLMED GameMaker DxLib CodeX Minori Sprite RpgmXP Eagls Debonosu C4 WillPlus Tanuki GXP AOS Mink YukaSystem2 sakusesu Exp Syuntada Pensil Anim hibiki Nitroplus Reallive Siglus Taskforce2 RUGP IronGameSystem Anex86 ShinyDaysGame MarineHeart ShinaRio CaramelBox UnisonShift Escude Ryokucha Alice Footy2 utawarerumono System4x Abalone Abel 5pb HorkEye XUSE Leaf Nekopack AXL AGS AdobeFlash10 FocasLens Tamamo Ages3ResT)
|
||||||
set(enginepath "engine32")
|
set(enginepath "engine32")
|
||||||
set(collector "enginecollection32.cpp")
|
set(collector "enginecollection32.cpp")
|
||||||
endif()
|
endif()
|
||||||
|
62
LunaHook/engine32/Aksys.cpp
Normal file
62
LunaHook/engine32/Aksys.cpp
Normal file
@ -0,0 +1,62 @@
|
|||||||
|
#include"Aksys.h"
|
||||||
|
namespace
|
||||||
|
{
|
||||||
|
bool _Aksys() {
|
||||||
|
//https://vndb.org/v25385
|
||||||
|
//Spirit Hunter: NG
|
||||||
|
/*
|
||||||
|
int __usercall sub_4CDD70@<eax>(const char *a1@<edx>, int a2, _DWORD *a3, int *a4)
|
||||||
|
{
|
||||||
|
int result; // eax
|
||||||
|
const char *v6; // [esp+Ch] [ebp-8h] BYREF
|
||||||
|
|
||||||
|
*a3 = strlen(a1);
|
||||||
|
if ( *a1 && a2 )
|
||||||
|
{
|
||||||
|
v6 = a1;
|
||||||
|
if ( (unsigned __int8)sub_4CAEB0(&v6) )
|
||||||
|
{
|
||||||
|
*a4 = sub_4CAF70(0, 0, 0x3A4u, (const unsigned __int16 *)a1, 0xFDE9u);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return -2141454316;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
result = 0;
|
||||||
|
*a4 = 0;
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
BYTE bytes[] = {
|
||||||
|
0x68,0xe9,0xfd,0,0,
|
||||||
|
0x56,
|
||||||
|
0x68,0xa4,0x03,0,0,
|
||||||
|
0x33,XX,
|
||||||
|
0x33,XX,
|
||||||
|
0xe8
|
||||||
|
};
|
||||||
|
auto addr = MemDbg::findBytes(bytes, sizeof(bytes), processStartAddress, processStopAddress);
|
||||||
|
if (!addr) return false;
|
||||||
|
addr = findfuncstart(addr);
|
||||||
|
if (!addr) return false;
|
||||||
|
HookParam hp;
|
||||||
|
hp.address = addr;
|
||||||
|
hp.offset=get_reg(regs::edx);
|
||||||
|
hp.split=get_reg(regs::edx);
|
||||||
|
hp.type = USING_STRING|USING_SPLIT;
|
||||||
|
hp.filter_fun = [](LPVOID data, size_t* size, HookParam*) {
|
||||||
|
StringFilter((char*)data, size, "@1r", 3);
|
||||||
|
StringFilter((char*)data, size, "@-1r", 4);
|
||||||
|
return (StringToWideString(std::string((char*)data,*size),932).has_value());
|
||||||
|
};
|
||||||
|
return NewHook(hp, "Aksys");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
bool Aksys::attach_function() {
|
||||||
|
return _Aksys();
|
||||||
|
}
|
12
LunaHook/engine32/Aksys.h
Normal file
12
LunaHook/engine32/Aksys.h
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
#include"engine.h"
|
||||||
|
|
||||||
|
class Aksys:public ENGINE{
|
||||||
|
public:
|
||||||
|
Aksys(){
|
||||||
|
|
||||||
|
check_by=CHECK_BY::FILE;
|
||||||
|
check_by_target=L"System.bra";
|
||||||
|
is_engine_certain=false;
|
||||||
|
};
|
||||||
|
bool attach_function();
|
||||||
|
};
|
@ -26,6 +26,7 @@
|
|||||||
#include"engine32/IGScript.h"
|
#include"engine32/IGScript.h"
|
||||||
#include"engine32/TSSystem.h"
|
#include"engine32/TSSystem.h"
|
||||||
#include"engine32/ScrPlayer.h"
|
#include"engine32/ScrPlayer.h"
|
||||||
|
#include"engine32/Aksys.h"
|
||||||
#include"engine32/utawarerumono.h"
|
#include"engine32/utawarerumono.h"
|
||||||
#include"engine32/SideB.h"
|
#include"engine32/SideB.h"
|
||||||
#include"engine32/BGI.h"
|
#include"engine32/BGI.h"
|
||||||
@ -299,7 +300,8 @@ std::vector<ENGINE*> check_engines(){
|
|||||||
new SYSD,
|
new SYSD,
|
||||||
new IGScript,
|
new IGScript,
|
||||||
new ScrPlayer,
|
new ScrPlayer,
|
||||||
new ElfFunClubFinal
|
new ElfFunClubFinal,
|
||||||
|
new Aksys
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user