mirror of
https://github.com/HIllya51/LunaHook.git
synced 2024-12-25 20:54:15 +08:00
issues/17
This commit is contained in:
parent
4678da4bf2
commit
c376af3087
@ -4,7 +4,7 @@ if(${CMAKE_SIZEOF_VOID_P} EQUAL 8)
|
||||
set(enginepath "engine64")
|
||||
set(collector "enginecollection64.cpp")
|
||||
else()
|
||||
set(enginessrc 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 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 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 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(collector "enginecollection32.cpp")
|
||||
endif()
|
||||
|
25
LunaHook/engine32/solfasys.cpp
Normal file
25
LunaHook/engine32/solfasys.cpp
Normal file
@ -0,0 +1,25 @@
|
||||
#include"solfasys.h"
|
||||
|
||||
bool solfasys::attach_function() {
|
||||
auto addr=MemDbg::findCallerAddressAfterInt3((DWORD)GetGlyphOutlineA,processStartAddress,processStopAddress);
|
||||
ConsoleOutput("%p",addr);
|
||||
if(!addr)return false;
|
||||
addr=MemDbg::findShortJumpAddress(addr,processStartAddress,processStopAddress);
|
||||
ConsoleOutput("%p",addr);
|
||||
if(!addr)return false;
|
||||
addr=MemDbg::findEnclosingAlignedFunction(addr,0x10);//actually only 2
|
||||
ConsoleOutput("%p",addr);
|
||||
if(!addr)return false;
|
||||
auto addrs=findxref_reverse_checkcallop(addr,processStartAddress,processStopAddress,0xe8);
|
||||
if(addrs.size()!=2)return false;
|
||||
addr=addrs[0];
|
||||
ConsoleOutput("%p",addr);
|
||||
addr=MemDbg::findEnclosingAlignedFunction(addr);
|
||||
ConsoleOutput("%p",addr);
|
||||
if(!addr)return false;
|
||||
HookParam hp;
|
||||
hp.address=addr;
|
||||
hp.type=CODEC_ANSI_BE|USING_CHAR;
|
||||
hp.offset=get_stack(1);
|
||||
return NewHook(hp,"solfasys");
|
||||
}
|
37
LunaHook/engine32/solfasys.h
Normal file
37
LunaHook/engine32/solfasys.h
Normal file
@ -0,0 +1,37 @@
|
||||
#include"engine.h"
|
||||
//https://vndb.org/v5183
|
||||
//朝っぱらから発情家族
|
||||
|
||||
/*
|
||||
{
|
||||
BLOCK "StringFileInfo"
|
||||
{
|
||||
BLOCK "041104b0"
|
||||
{
|
||||
VALUE "Comments", "Solfa Novel System(Based on STUDIO SELDOM Adventure System Version 5.29/(c)AKIYAMA Kouhei)"
|
||||
VALUE "CompanyName", "sol-fa-soft"
|
||||
VALUE "FileDescription", "solfasys"
|
||||
VALUE "FileVersion", "5, 29, 0, 0"
|
||||
VALUE "InternalName", "solfasys"
|
||||
VALUE "LegalCopyright", "sol-fa-soft"
|
||||
VALUE "OriginalFilename", "solfasys.exe"
|
||||
VALUE "ProductName", "solfa25"
|
||||
VALUE "ProductVersion", "5, 29, 0, 0"
|
||||
}
|
||||
}
|
||||
BLOCK "VarFileInfo"
|
||||
{
|
||||
VALUE "Translation", 0x411, 1200
|
||||
}
|
||||
}
|
||||
*/
|
||||
class solfasys:public ENGINE{
|
||||
public:
|
||||
solfasys(){
|
||||
|
||||
check_by=CHECK_BY::RESOURCE_STR;
|
||||
check_by_target=L"Solfa Novel System";
|
||||
is_engine_certain=false;
|
||||
};
|
||||
bool attach_function();
|
||||
};
|
@ -123,6 +123,7 @@
|
||||
#include"engine32/Exp.h"
|
||||
#include"engine32/Syuntada.h"
|
||||
#include"engine32/Pensil.h"
|
||||
#include"engine32/solfasys.h"
|
||||
#include"engine32/Anim.h"
|
||||
#include"engine32/Nitroplus2.h"
|
||||
#include"engine32/Reallive.h"
|
||||
@ -316,7 +317,8 @@ std::vector<ENGINE*> check_engines(){
|
||||
new ransel,
|
||||
new Silkyssakura,
|
||||
new splushwave,
|
||||
new Diskdream
|
||||
new Diskdream,
|
||||
new solfasys
|
||||
};
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user