LunaHook-mirror/LunaHook/NoEngine.h

144 lines
3.5 KiB
C
Raw Normal View History

2024-07-21 21:04:12 +08:00
class NoEngine : public ENGINE
{
public:
bool attach_function()
{
ConsoleOutput("IGNORE %s", getenginename());
// ConsoleOutput("IGNORE engine");
2024-02-07 20:59:24 +08:00
return true;
}
};
2024-07-21 21:04:12 +08:00
class oldSystem40ini : public NoEngine
{
public:
oldSystem40ini()
{
// jichi 1/19/2015: Disable inserting Lstr for System40
// See: http://sakuradite.com/topic/618
check_by = CHECK_BY::FILE;
check_by_target = L"System40.ini";
};
2024-02-07 20:59:24 +08:00
};
// class RPGMakerRGSS3:public NoEngine{
// public:
// RPGMakerRGSS3(){
// // jichi 6/7/2015: RPGMaker v3
2024-07-21 21:04:12 +08:00
2024-02-07 20:59:24 +08:00
// check_by=CHECK_BY::FILE;
// check_by_target=L"*.rgss3a";
2024-07-21 21:04:12 +08:00
// };
2024-02-07 20:59:24 +08:00
// };
// class FVP:public NoEngine{
// public:
// FVP(){
// // 7/28/2015 jichi: Favorite games
2024-07-21 21:04:12 +08:00
2024-02-07 20:59:24 +08:00
// check_by=CHECK_BY::FILE;
// check_by_target=L"*.hcb";
2024-07-21 21:04:12 +08:00
// };
2024-02-07 20:59:24 +08:00
// };
2024-07-21 21:04:12 +08:00
class AdvPlayerHD : public NoEngine
{
public:
AdvPlayerHD()
{
// supposed to be WillPlus
check_by = CHECK_BY::FILE_ANY;
check_by_target = check_by_list{L"AdvHD.exe", L"AdvHD.dll"};
};
};
2024-02-07 20:59:24 +08:00
2024-07-21 21:04:12 +08:00
class DPM : public NoEngine
{
public:
DPM()
{
// jichi 4/30/2015: Skip games made from らすこう, such as とある人妻のネトラレ事情
// It has garbage from lstrlenW. Correct text is supposed to be in TabbedTextOutA.
2024-02-07 20:59:24 +08:00
2024-07-21 21:04:12 +08:00
check_by = CHECK_BY::FILE;
check_by_target = L"data_cg.dpm";
};
2024-02-07 20:59:24 +08:00
};
2024-07-21 21:04:12 +08:00
class Escude_ignore : public NoEngine
{
public:
Escude_ignore()
{
// jichi 3/19/2014: Escude game
// Example: bgm.bin gfx.bin maou.bin script.bin snd.bin voc.bin
2024-02-07 20:59:24 +08:00
2024-07-21 21:04:12 +08:00
check_by = CHECK_BY::FILE_ANY;
check_by_target = check_by_list{L"gfx.bin", L"snd.bin", L"voc.bin"};
};
2024-02-07 20:59:24 +08:00
};
2024-07-21 21:04:12 +08:00
class Chartreux : public NoEngine
{
public:
Chartreux()
{
2024-02-07 20:59:24 +08:00
2024-07-21 21:04:12 +08:00
// jichi 12/28/2014: "Chartreux Inc." in Copyright.
// Sublimary brands include Rosebleu, MORE, etc.
// GetGlyphOutlineA already works.
check_by = CHECK_BY::RESOURCE_STR;
check_by_target = L"Chartreux";
};
};
class lcsebody : public NoEngine
{
public:
lcsebody()
{
check_by = CHECK_BY::CUSTOM;
2024-02-07 20:59:24 +08:00
// jichi 3/19/2014: LC-ScriptEngine, GetGlyphOutlineA
2024-07-21 21:04:12 +08:00
check_by_target = []()
{
return (wcsstr(processName, L"lcsebody") || !wcsncmp(processName, L"lcsebo~", 7) || Util::CheckFile(L"lcsebody*"));
2024-02-07 20:59:24 +08:00
};
2024-07-21 21:04:12 +08:00
};
2024-02-07 20:59:24 +08:00
};
// class FVP2:public NoEngine{
// public:
2024-07-21 21:04:12 +08:00
// FVP2(){
2024-02-07 20:59:24 +08:00
// check_by=CHECK_BY::CUSTOM;
// // jichi 3/19/2014: LC-ScriptEngine, GetGlyphOutlineA
// check_by_target=[](){
// wchar_t str[MAX_PATH];
// DWORD i;
// for (i = 0; processName[i]; i++) {
// str[i] = processName[i];
// if (processName[i] == L'.')
// break;
// }
// *(DWORD *)(str + i + 1) = 0x630068; //.hcb
// *(DWORD *)(str + i + 3) = 0x62;
// // jichi 10/3/2013: such like アトリエかぐや
// return (Util::CheckFile(str));
// };
2024-07-21 21:04:12 +08:00
// };
2024-02-07 20:59:24 +08:00
// };
2024-07-21 21:04:12 +08:00
// if (Util::CheckFile(L"AGERC.DLL")) { // jichi 3/17/2014: Eushully, AGE.EXE
// ConsoleOutput("IGNORE Eushully");
// return true;
// }
// if (Util::CheckFile(L"*\\Managed\\UnityEngine.dll")) { // jichi 12/3/2013: Unity (BALDRSKY ZERO)
// ConsoleOutput("IGNORE Unity");
// return true;
// }
// if (Util::CheckFile(L"bsz_Data\\Managed\\UnityEngine.dll") || Util::CheckFile(L"bsz2_Data\\Managed\\UnityEngine.dll")) {
// ConsoleOutput("IGNORE Unity");
// return true;
// }