mirror of
https://github.com/HIllya51/LunaHook.git
synced 2024-10-22 23:18:16 +08:00
CaramelBox
This commit is contained in:
parent
ba0479c546
commit
d420d175f7
@ -120,4 +120,22 @@ bool CaramelBoxMilkAji::attach_function(){
|
||||
hp.offset=get_stack(1);
|
||||
|
||||
return NewHook(hp, "CaramelBox");
|
||||
}
|
||||
bool CaramelBox2::attach_function(){
|
||||
//https://vndb.org/r19777
|
||||
//Otoboku - Maidens Are Falling for Me! - Download Edition
|
||||
trigger_fun=[](LPVOID addr1, hook_stack* stack){
|
||||
if(addr1!=TextOutA&& addr1!=GetTextExtentPoint32A)return false;
|
||||
auto addr=stack->retaddr;
|
||||
addr = MemDbg::findEnclosingAlignedFunction(addr);
|
||||
if (addr == 0)return false;
|
||||
HookParam hp;
|
||||
hp.address = addr;
|
||||
hp.type = USING_STRING|USING_SPLIT;
|
||||
hp.offset=get_stack(2);
|
||||
hp.split=get_stack(2);
|
||||
NewHook(hp, "CaramelBox");
|
||||
return true;
|
||||
};
|
||||
return true;
|
||||
}
|
@ -31,6 +31,21 @@ class CaramelBoxMilkAji:public ENGINE{
|
||||
check_by_target=L"SdActiRc.dll";
|
||||
is_engine_certain=false;
|
||||
|
||||
};
|
||||
bool attach_function();
|
||||
};
|
||||
|
||||
class CaramelBox2:public ENGINE{
|
||||
public:
|
||||
CaramelBox2(){
|
||||
|
||||
check_by=CHECK_BY::CUSTOM;
|
||||
check_by_target=[](){
|
||||
if(!Util::CheckFile(L"*.mpg"))return true;
|
||||
char copyright[]="OTOBOKU-CaramelBox";//OTOBOKU-CaramelBox //Software\Caramel-Box\OTOMEHABOKUNIKOISHITERU
|
||||
return 0!=MemDbg::findBytes(copyright,sizeof(copyright),processStartAddress,min(processStopAddress,processStartAddress+0x200000));
|
||||
};
|
||||
|
||||
};
|
||||
bool attach_function();
|
||||
};
|
@ -332,7 +332,8 @@ std::vector<ENGINE*> check_engines(){
|
||||
new mirage,
|
||||
new VALKYRIA,
|
||||
new CoffeeMaker,
|
||||
new Fizz
|
||||
new Fizz,
|
||||
new CaramelBox2
|
||||
};
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user