2020-02-28 03:17:41 -07:00
|
|
|
|
#pragma once
|
2016-01-06 00:01:17 +09:00
|
|
|
|
|
|
|
|
|
// engine/engine.h
|
|
|
|
|
// 8/23/2013 jichi
|
|
|
|
|
|
|
|
|
|
#include <windows.h>
|
|
|
|
|
|
|
|
|
|
struct HookParam; // defined in ith types.h
|
|
|
|
|
|
2019-06-06 23:53:37 -04:00
|
|
|
|
extern uintptr_t processStartAddress, processStopAddress;
|
2018-07-01 02:08:51 -04:00
|
|
|
|
|
2016-01-06 00:01:17 +09:00
|
|
|
|
namespace Engine {
|
|
|
|
|
|
|
|
|
|
// Global variables
|
2018-07-01 02:08:51 -04:00
|
|
|
|
extern wchar_t *processName, // cached
|
|
|
|
|
processPath[MAX_PATH]; // cached
|
2023-04-21 16:49:22 -04:00
|
|
|
|
inline const char *requestedEngine = "", * loadedConfig = "";
|
2016-01-06 00:01:17 +09:00
|
|
|
|
|
|
|
|
|
bool InsertMonoHooks(); // Mono
|
|
|
|
|
|
|
|
|
|
// Wii engines
|
|
|
|
|
|
|
|
|
|
bool InsertGCHooks(); // Dolphin
|
|
|
|
|
bool InsertVanillawareGCHook();
|
|
|
|
|
|
|
|
|
|
// PS2 engines
|
|
|
|
|
|
|
|
|
|
bool InsertPCSX2Hooks(); // PCSX2
|
|
|
|
|
bool InsertMarvelousPS2Hook(); // http://marvelous.jp
|
|
|
|
|
bool InsertMarvelous2PS2Hook(); // http://marvelous.jp
|
|
|
|
|
bool InsertTypeMoonPS2Hook(); // http://typemoon.com
|
|
|
|
|
//bool InsertNamcoPS2Hook();
|
|
|
|
|
|
|
|
|
|
// PSP engines
|
|
|
|
|
|
|
|
|
|
void SpecialPSPHook(DWORD esp_base, HookParam *hp, DWORD *data, DWORD *split, DWORD *len); // General PSP extern hook
|
|
|
|
|
|
2019-06-09 00:50:26 -04:00
|
|
|
|
bool FindPPSSPP();
|
2016-01-06 00:01:17 +09:00
|
|
|
|
bool InsertPPSSPPHooks(); // PPSSPPWindows
|
|
|
|
|
|
|
|
|
|
bool InsertPPSSPPHLEHooks();
|
|
|
|
|
bool InsertOtomatePPSSPPHook(); // PSP otomate.jp, 0.9.9.0 only
|
|
|
|
|
|
|
|
|
|
bool Insert5pbPSPHook(); // PSP 5pb.jp
|
|
|
|
|
bool InsertAlchemistPSPHook(); // PSP Alchemist-net.co.jp, 0.9.8 only
|
|
|
|
|
bool InsertAlchemist2PSPHook(); // PSP Alchemist-net.co.jp
|
|
|
|
|
bool InsertBandaiNamePSPHook(); // PSP Bandai.co.jp
|
|
|
|
|
bool InsertBandaiPSPHook(); // PSP Bandai.co.jp
|
|
|
|
|
bool InsertBroccoliPSPHook(); // PSP Broccoli.co.jp
|
|
|
|
|
bool InsertFelistellaPSPHook(); // PSP felistella.co.jp
|
|
|
|
|
|
|
|
|
|
bool InsertCyberfrontPSPHook(); // PSP CYBERFRONT (closed)
|
|
|
|
|
bool InsertImageepochPSPHook(); // PSP Imageepoch.co.jp
|
|
|
|
|
bool InsertImageepoch2PSPHook();// PSP Imageepoch.co.jp
|
|
|
|
|
bool InsertKadokawaNamePSPHook(); // PSP Kadokawa.co.jp
|
|
|
|
|
bool InsertKonamiPSPHook(); // PSP Konami.jp
|
|
|
|
|
bool InsertTecmoPSPHook(); // PSP Koeitecmo.co.jp
|
|
|
|
|
//bool InsertTypeMoonPSPHook(); // PSP Typemoon.com
|
|
|
|
|
|
|
|
|
|
bool InsertOtomatePSPHook(); // PSP Otomate.jp, 0.9.8 only
|
|
|
|
|
//bool InsertOtomate2PSPHook(); // PSP otomate.jp >= 0.9.9.1
|
|
|
|
|
|
|
|
|
|
bool InsertIntensePSPHook(); // PSP Intense.jp
|
|
|
|
|
bool InsertKidPSPHook(); // PSP Kid-game.co.jp
|
|
|
|
|
bool InsertNippon1PSPHook(); // PSP Nippon1.jp
|
|
|
|
|
bool InsertNippon2PSPHook(); // PSP Nippon1.jp
|
|
|
|
|
bool InsertYetiPSPHook(); // PSP Yetigame.jp
|
|
|
|
|
bool InsertYeti2PSPHook(); // PSP Yetigame.jp
|
|
|
|
|
|
|
|
|
|
// Game-speicific engines
|
|
|
|
|
bool InsertShinyDaysGameHook(); // ShinyDays
|
|
|
|
|
bool InsertLovaGameHook(); // lova.jp
|
|
|
|
|
|
|
|
|
|
// PC engines
|
|
|
|
|
|
|
|
|
|
bool Insert2RMHook(); // 2RM - Adventure Engine
|
|
|
|
|
bool Insert5pbHook(); // 5pb.jp, PSP/PS3 games ported to PC
|
|
|
|
|
bool InsertAB2TryHook(); // Yane@AkabeiSoft2Try: YaneSDK.dll.
|
|
|
|
|
bool InsertAbelHook(); // Abel
|
|
|
|
|
bool InsertAdobeAirHook(); // Adobe AIR
|
2018-07-16 14:04:21 -04:00
|
|
|
|
bool InsertAIRNovelHook(); // AIRNovel: *.swf
|
2016-01-06 00:01:17 +09:00
|
|
|
|
bool InsertAdobeFlash10Hook(); // Adobe Flash Player 10
|
|
|
|
|
bool InsertAliceHook(); // System40@AliceSoft; do not work for latest alice games
|
|
|
|
|
//bool InsertAmuseCraftHook(); // AMUSE CRAFT: *.pac
|
|
|
|
|
bool InsertAnex86Hook(); // Anex86: anex86.exe
|
|
|
|
|
bool InsertAOSHook(); // AOS: *.aos
|
|
|
|
|
bool InsertApricoTHook(); // Apricot: arc.a*
|
|
|
|
|
bool InsertArtemisHook(); // Artemis Engine: *.pfs
|
|
|
|
|
bool InsertAtelierHook(); // Atelier Kaguya: message.dat
|
|
|
|
|
bool InsertBGIHook(); // BGI: BGI.*
|
2018-08-28 22:06:20 -04:00
|
|
|
|
bool InsertBaldrHook(); // Baldr Sky "Zero"
|
2016-01-06 00:01:17 +09:00
|
|
|
|
bool InsertBootupHook(); // Bootup: Bootup.dat
|
|
|
|
|
bool InsertC4Hook(); // C4: C4.EXE or XEX.EXE
|
|
|
|
|
bool InsertCaramelBoxHook(); // Caramel: *.bin
|
|
|
|
|
bool InsertCandyHook(); // SystemC@CandySoft: *.fpk
|
|
|
|
|
bool InsertCatSystemHook(); // CatSystem2: *.int
|
|
|
|
|
bool InsertCMVSHook(); // CMVS: data/pack/*.cpz; do not support the latest cmvs32.exe and cmvs64.exe
|
|
|
|
|
bool InsertCotophaHook(); // Cotopha: *.noa
|
|
|
|
|
bool InsertDebonosuHook(); // Debonosu: bmp.bak and dsetup.dll
|
|
|
|
|
bool InsertEaglsHook(); // E.A.G.L.S: EAGLES.dll
|
|
|
|
|
bool InsertEMEHook(); // EmonEngine: emecfg.ecf
|
|
|
|
|
bool InsertEscudeHook(); // Escude
|
|
|
|
|
bool InsertEushullyHook(); // Eushully: AGERC.DLL
|
|
|
|
|
bool InsertExpHook(); // EXP: http://www.exp-inc.jp
|
|
|
|
|
bool InsertFocasLensHook(); // FocasLens: Dat/*.arc, http://www.fo-lens.net
|
|
|
|
|
bool InsertGXPHook(); // GXP: *.gxp
|
|
|
|
|
bool InsertHorkEyeHook(); // HorkEye: resource string
|
|
|
|
|
bool InsertKAGParserHook(); // plugin/KAGParser.dll
|
|
|
|
|
bool InsertKAGParserExHook(); // plugin/KAGParserEx.dll
|
|
|
|
|
bool InsertKiriKiriHook(); // KiriKiri: *.xp3, resource string
|
|
|
|
|
bool InsertKiriKiriZHook(); // KiriKiri: *.xp3, resource string
|
|
|
|
|
bool InsertLeafHook(); // Leaf: *.pak
|
|
|
|
|
bool InsertLiveHook(); // Live: live.dll
|
2019-08-12 06:13:45 -04:00
|
|
|
|
bool InsertLightvnHook(); // Light.vn: Engine.dll & BugTrapU.dll
|
2016-01-06 00:01:17 +09:00
|
|
|
|
bool InsertLunaSoftHook(); // LunaSoft: Pac/*.pac
|
|
|
|
|
bool InsertMalieHook(); // Malie@light: malie.ini
|
|
|
|
|
bool InsertMajiroHook(); // Majiro: *.arc
|
|
|
|
|
bool InsertMarineHeartHook(); // Marine Heart: SAISYS.exe
|
|
|
|
|
bool InsertMBLHook(); // MBL: *.mbl
|
|
|
|
|
bool InsertMEDHook(); // MED: *.med
|
|
|
|
|
bool InsertMinkHook(); // Mink: *.at2
|
|
|
|
|
//bool InsertMonoHook(); // Mono (Unity3D): */Mono/mono.dll
|
2016-12-10 14:26:43 +09:00
|
|
|
|
bool InsertNekopackHook(); // Nekopack: *.dat
|
2016-01-06 00:01:17 +09:00
|
|
|
|
bool InsertNeXASHook(); // NeXAS: Thumbnail.pac
|
|
|
|
|
bool InsertNextonHook(); // NEXTON: aInfo.db
|
|
|
|
|
bool InsertNexton1Hook();
|
|
|
|
|
bool InsertNitroplusHook(); // Nitroplus: *.npa
|
2020-05-23 14:35:16 +09:00
|
|
|
|
bool InsertTokyoNecroHook(); // Nitroplus TokyoNecro: *.npk, resource string
|
2016-01-06 00:01:17 +09:00
|
|
|
|
bool InsertPalHook(); // AMUSE CRAFT: *.pac
|
|
|
|
|
bool InsertPensilHook(); // Pensil: PSetup.exe
|
2019-09-30 08:34:07 -04:00
|
|
|
|
bool InsertPONScripterHook();
|
2016-01-06 00:01:17 +09:00
|
|
|
|
bool InsertQLIEHook(); // QLiE: GameData/*.pack
|
|
|
|
|
//bool InsertRai7Hook(); // Rai7puk: rai7.exe
|
|
|
|
|
bool InsertRejetHook(); // Rejet: Module/{gd.dat,pf.dat,sd.dat}
|
|
|
|
|
bool InsertRUGPHook(); // rUGP: rUGP.exe
|
2018-08-09 15:27:44 -04:00
|
|
|
|
bool InsertRenpyHook(); // Ren'py: python27.dll
|
2016-01-06 00:01:17 +09:00
|
|
|
|
bool InsertRetouchHook(); // Retouch: resident.dll
|
|
|
|
|
bool InsertRREHook(); // RunrunEngine: rrecfg.rcf
|
|
|
|
|
bool InsertShinaHook(); // ShinaRio: Rio.ini
|
|
|
|
|
bool InsertElfHook(); // elf: Silky.exe
|
|
|
|
|
bool InsertScenarioPlayerHook();// sol-fa-soft: *.iar && *.sec5
|
|
|
|
|
bool InsertSiglusHook(); // SiglusEngine: SiglusEngine.exe
|
|
|
|
|
bool InsertSideBHook(); // SideB: Copyright side-B
|
|
|
|
|
bool InsertSilkysHook(); // SilkysPlus
|
|
|
|
|
bool InsertSyuntadaHook(); // Syuntada: dSoh.dat
|
|
|
|
|
bool InsertSystem43Hook(); // System43@AliceSoft: AliceStart.ini
|
|
|
|
|
bool InsertSystemAoiHook(); // SystemAoi: *.vfs
|
|
|
|
|
bool InsertTamamoHook(); // Tamamo
|
|
|
|
|
bool InsertTanukiHook(); // Tanuki: *.tak
|
|
|
|
|
bool InsertTaskforce2Hook(); // Taskforce2.exe
|
|
|
|
|
bool InsertTencoHook(); // Tenco: Check.mdx
|
|
|
|
|
bool InsertTriangleHook(); // Triangle: Execle.exe
|
2018-09-20 21:17:51 -04:00
|
|
|
|
bool InsertV8Hook(HMODULE module); // V8 JavaScript runtime: has mangled v8::String::Write
|
2016-01-06 00:01:17 +09:00
|
|
|
|
bool InsertUnicornHook(); // Gsen18: *.szs|Data/*.szs
|
|
|
|
|
bool InsertWillPlusHook(); // WillPlus: Rio.arc
|
|
|
|
|
bool InsertWolfHook(); // Wolf: Data.wolf
|
|
|
|
|
bool InsertYukaSystem2Hook(); // YukaSystem2: *.ykc
|
|
|
|
|
bool InsertYurisHook(); // YU-RIS: *.ypf
|
|
|
|
|
|
|
|
|
|
void InsertBrunsHook(); // Bruns: bruns.exe
|
|
|
|
|
void InsertIronGameSystemHook();// IroneGameSystem: igs_sample.exe
|
|
|
|
|
void InsertLucifenHook(); // Lucifen@Navel: *.lpk
|
|
|
|
|
void InsertRyokuchaHook(); // Ryokucha: _checksum.exe
|
|
|
|
|
void InsertRealliveHook(); // RealLive: RealLive*.exe
|
|
|
|
|
void InsertStuffScriptHook(); // Stuff: *.mpk
|
2020-02-29 18:32:58 -07:00
|
|
|
|
bool InsertTinkerBellHook(); // TinkerBell: arc00.dat
|
2020-08-12 02:18:39 -06:00
|
|
|
|
bool InsertWaffleHook(); // WAFFLE: cg.pak
|
2023-04-30 00:28:20 +02:00
|
|
|
|
bool InsertMinoriHooks(); // Minori: *.paz
|
2016-01-06 00:01:17 +09:00
|
|
|
|
|
|
|
|
|
// CIRCUS: avdata/
|
|
|
|
|
bool InsertCircusHook1();
|
|
|
|
|
bool InsertCircusHook2();
|
|
|
|
|
|
|
|
|
|
} // namespace Engine
|
|
|
|
|
|
|
|
|
|
// EOF
|