mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 16:44:13 +08:00
winters
This commit is contained in:
parent
c9ac2f6df8
commit
2effab99c4
@ -4,7 +4,7 @@ if(${CMAKE_SIZEOF_VOID_P} EQUAL 8)
|
|||||||
set(enginepath "engine64")
|
set(enginepath "engine64")
|
||||||
set(collector "enginecollection64.cpp")
|
set(collector "enginecollection64.cpp")
|
||||||
else()
|
else()
|
||||||
set(enginessrc Cage AGE_System AksysGames RPGMaker Stronger TACTICS Onscripter Sceplay DISCOVERY Erogos godot A98SYS GuruGuruSMF4 TeethingRing Fizz CoffeeMaker VALKYRIA mirage CisLugI tamasoft FrontWing 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 UnknownEngine TSSystem Xbangbang Anisetta Nijyuei Interheart LovaGame Giga Jisatu101 EntisGLS Ciel ACTGS TerraLunar PPSSPP jukujojidai PCSX2 VanillawareGC cef V8 mono pchooks PONScripter Bishop sakanagl 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 Winters Cage AGE_System AksysGames RPGMaker Stronger TACTICS Onscripter Sceplay DISCOVERY Erogos godot A98SYS GuruGuruSMF4 TeethingRing Fizz CoffeeMaker VALKYRIA mirage CisLugI tamasoft FrontWing 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 UnknownEngine TSSystem Xbangbang Anisetta Nijyuei Interheart LovaGame Giga Jisatu101 EntisGLS Ciel ACTGS TerraLunar PPSSPP jukujojidai PCSX2 VanillawareGC cef V8 mono pchooks PONScripter Bishop sakanagl 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(enginepath "engine32")
|
||||||
set(collector "enginecollection32.cpp")
|
set(collector "enginecollection32.cpp")
|
||||||
endif()
|
endif()
|
||||||
|
33
cpp/LunaHook/LunaHook/engine32/Winters.cpp
Normal file
33
cpp/LunaHook/LunaHook/engine32/Winters.cpp
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
#include "Winters.h"
|
||||||
|
|
||||||
|
bool Winters::attach_function()
|
||||||
|
{
|
||||||
|
// こんな魔法少女…アタシはレミィ
|
||||||
|
// https://vndb.org/v11018
|
||||||
|
const BYTE bytes[] = {
|
||||||
|
0x4a,
|
||||||
|
0x8b, 0xda,
|
||||||
|
0xc1, 0xe3, 0x02,
|
||||||
|
0x8d, 0x1c, 0x9b,
|
||||||
|
0x8b, 0xcb,
|
||||||
|
0x83, 0xc1, 0x11,
|
||||||
|
0xba, 0x19, 0x00, 0x00, 0x00,
|
||||||
|
0xe8, XX4};
|
||||||
|
ULONG addr = MemDbg::findBytes(bytes, sizeof(bytes), processStartAddress, processStopAddress);
|
||||||
|
if (!addr)
|
||||||
|
return false;
|
||||||
|
auto off = *(DWORD *)(addr + sizeof(bytes) - 4);
|
||||||
|
auto target = off + addr + sizeof(bytes);
|
||||||
|
HookParam hp;
|
||||||
|
hp.address = target;
|
||||||
|
hp.offset = get_stack(1);
|
||||||
|
hp.type = USING_STRING;
|
||||||
|
hp.filter_fun = [](TextBuffer *buffer, HookParam *)
|
||||||
|
{
|
||||||
|
static int idx = 0;
|
||||||
|
if ((idx++) % 2)
|
||||||
|
buffer->clear();
|
||||||
|
};
|
||||||
|
|
||||||
|
return NewHook(hp, "Winters");
|
||||||
|
}
|
12
cpp/LunaHook/LunaHook/engine32/Winters.h
Normal file
12
cpp/LunaHook/LunaHook/engine32/Winters.h
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
|
||||||
|
|
||||||
|
class Winters : public ENGINE
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
Winters()
|
||||||
|
{
|
||||||
|
check_by = CHECK_BY::FILE_ALL;
|
||||||
|
check_by_target = check_by_list{L"MSG.dat", L"SCR.ifx", L"VFN.dat", L"GRP.ifx"};
|
||||||
|
};
|
||||||
|
bool attach_function();
|
||||||
|
};
|
@ -11,6 +11,7 @@
|
|||||||
#include "engine32/LCScript.h"
|
#include "engine32/LCScript.h"
|
||||||
#include "engine32/Cage.h"
|
#include "engine32/Cage.h"
|
||||||
#include "engine32/ONScripterru.h"
|
#include "engine32/ONScripterru.h"
|
||||||
|
#include "engine32/Winters.h"
|
||||||
#include "engine32/CoffeeMaker.h"
|
#include "engine32/CoffeeMaker.h"
|
||||||
#include "engine32/TACTICS.h"
|
#include "engine32/TACTICS.h"
|
||||||
#include "engine32/splushwave.h"
|
#include "engine32/splushwave.h"
|
||||||
@ -412,5 +413,6 @@ std::vector<ENGINE *> check_engines()
|
|||||||
new AksysGames,
|
new AksysGames,
|
||||||
new AGE_System,
|
new AGE_System,
|
||||||
new Cage,
|
new Cage,
|
||||||
|
new Winters
|
||||||
};
|
};
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user