mirror of
https://github.com/HIllya51/LunaHook.git
synced 2024-11-24 22:35:36 +08:00
36 lines
877 B
C++
36 lines
877 B
C++
#include"engine.h"
|
|
|
|
class CaramelBox:public ENGINE{
|
|
public:
|
|
CaramelBox(){
|
|
|
|
check_by=CHECK_BY::CUSTOM;
|
|
check_by_target=[](){
|
|
auto str=std::wstring( processName_lower);
|
|
DWORD len = str.size();
|
|
|
|
// jichi 8/10/2013: Since *.bin is common, move CaramelBox to the end
|
|
str[len - 3] = L'b';
|
|
str[len - 2] = L'i';
|
|
str[len - 1] = L'n';
|
|
str[len] = 0;
|
|
return (Util::CheckFile(str.c_str()) || Util::CheckFile(L"trial.bin"));
|
|
};
|
|
is_engine_certain=false;
|
|
|
|
};
|
|
bool attach_function();
|
|
};
|
|
|
|
|
|
class CaramelBoxMilkAji:public ENGINE{
|
|
public:
|
|
CaramelBoxMilkAji(){
|
|
|
|
check_by=CHECK_BY::FILE;
|
|
check_by_target=L"SdActiRc.dll";
|
|
is_engine_certain=false;
|
|
|
|
};
|
|
bool attach_function();
|
|
}; |