mirror of
https://github.com/HIllya51/LunaHook.git
synced 2024-11-30 17:15:38 +08:00
rainy
This commit is contained in:
parent
28720be795
commit
073c646590
@ -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 GuruGuruSMF4 TeethingRing Fizz CoffeeMaker VALKYRIA mirage CisLugI tamasoft FrontWing solfasys Diskdream splushwave ransel akatombo GASTRO GSX 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 EntisGLS Ciel ACTGS TerraLunar PPSSPP jukujojidai PCSX2 VanillawareGC cef V8 mono pchooks PONScripter Bishop sakanagl 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 A98SYS GuruGuruSMF4 TeethingRing Fizz CoffeeMaker VALKYRIA mirage CisLugI tamasoft FrontWing solfasys Diskdream splushwave ransel akatombo GASTRO GSX 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 EntisGLS Ciel ACTGS TerraLunar PPSSPP jukujojidai PCSX2 VanillawareGC cef V8 mono pchooks PONScripter Bishop sakanagl 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()
|
||||||
|
24
LunaHook/engine32/A98SYS.cpp
Normal file
24
LunaHook/engine32/A98SYS.cpp
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
#include"A98SYS.h"
|
||||||
|
|
||||||
|
bool A98SYS::attach_function() {
|
||||||
|
//https://vndb.org/v6447
|
||||||
|
//Rainy Blue ~6月の雨~
|
||||||
|
|
||||||
|
auto addrs=findiatcallormov_all((DWORD)::ExtTextOutA, processStartAddress,processStartAddress, processStopAddress,PAGE_EXECUTE);
|
||||||
|
if(addrs.size()!=2)return false;
|
||||||
|
auto addr=addrs[1];
|
||||||
|
addr=MemDbg::findEnclosingAlignedFunction(addr);
|
||||||
|
if(!addr)return false;
|
||||||
|
auto addrs1=findxref_reverse_checkcallop(addr,processStartAddress, processStopAddress,0xe8);
|
||||||
|
if(!addrs1.size())return false;
|
||||||
|
addr=addrs1[0];
|
||||||
|
addr=MemDbg::findEnclosingAlignedFunction(addr);
|
||||||
|
if (!addr) return false;
|
||||||
|
HookParam hp;
|
||||||
|
hp.address = addr;
|
||||||
|
hp.offset=get_stack(1);
|
||||||
|
hp.type = USING_STRING|EMBED_ABLE|EMBED_AFTER_NEW|EMBED_BEFORE_SIMPLE|EMBED_DYNA_SJIS;
|
||||||
|
hp.hook_font=F_ExtTextOutA;
|
||||||
|
|
||||||
|
return NewHook(hp, "A98SYS");
|
||||||
|
}
|
11
LunaHook/engine32/A98SYS.h
Normal file
11
LunaHook/engine32/A98SYS.h
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
|
||||||
|
|
||||||
|
class A98SYS:public ENGINE{
|
||||||
|
public:
|
||||||
|
A98SYS(){
|
||||||
|
|
||||||
|
check_by=CHECK_BY::FILE;
|
||||||
|
check_by_target=L"A98SYS.PAK";//STREAM.PAK
|
||||||
|
};
|
||||||
|
bool attach_function();
|
||||||
|
};
|
@ -165,6 +165,7 @@
|
|||||||
#include"engine32/EntisGLS.h"
|
#include"engine32/EntisGLS.h"
|
||||||
#include"engine32/Ciel.h"
|
#include"engine32/Ciel.h"
|
||||||
#include"engine32/CisLugI.h"
|
#include"engine32/CisLugI.h"
|
||||||
|
#include"engine32/A98SYS.h"
|
||||||
#include"engine32/ACTGS.h"
|
#include"engine32/ACTGS.h"
|
||||||
#include"engine32/GuruGuruSMF4.h"
|
#include"engine32/GuruGuruSMF4.h"
|
||||||
#include"NoEngine.h"
|
#include"NoEngine.h"
|
||||||
@ -337,7 +338,8 @@ std::vector<ENGINE*> check_engines(){
|
|||||||
new CaramelBox2,
|
new CaramelBox2,
|
||||||
new TeethingRing,
|
new TeethingRing,
|
||||||
new lua51,
|
new lua51,
|
||||||
new GuruGuruSMF4
|
new GuruGuruSMF4,
|
||||||
|
new A98SYS
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user