This commit is contained in:
恍兮惚兮 2024-10-05 23:37:30 +08:00
parent 3e2137403c
commit db160ef6f2
5 changed files with 25 additions and 21 deletions

View File

@ -1,6 +1,6 @@
include_directories(. util engines)
if(${CMAKE_SIZEOF_VOID_P} EQUAL 8)
set(enginessrc MKXPZ Ryujinx livecaptions Kincaid vita3k rpcs3 yuzu TYPEMOON ENTERGRAM AGES7 mono Godot 5pb lucasystem LightVN V8 pchooks Artemis KiriKiri YOX PPSSPP CMVS Suika2 )
set(enginessrc MKXPZ Ryujinx livecaptions Kincaid vita3k rpcs3 yuzu TYPEMOON UnrealEngine AGES7 mono Godot 5pb lucasystem LightVN V8 pchooks Artemis KiriKiri YOX PPSSPP CMVS Suika2 )
set(enginepath "engine64")
set(collector "enginecollection64.cpp")
else()

View File

@ -1,15 +0,0 @@
class ENTERGRAM:public ENGINE{
public:
ENTERGRAM(){
check_by=CHECK_BY::CUSTOM;
is_engine_certain=false;
check_by_target=[](){
return GetProcAddress(GetModuleHandleA(0),"agsCheckDriverVersion");
};
};
bool attach_function();
};

View File

@ -1,4 +1,4 @@
#include "ENTERGRAM.h"
#include "UnrealEngine.h"
bool ENTERGRAMfilter(void *data, size_t *size, HookParam *hp)
{
@ -37,9 +37,9 @@ bool InsertENTERGRAM()
hp.filter_fun = ENTERGRAMfilter;
hp.offset = get_reg(regs::rsi);
hp.newlineseperator = L"\\n";
return NewHook(hp, "ENTERGRAM");
return NewHook(hp, "UnrealEngine");
}
bool ENTERGRAM::attach_function()
bool UnrealEngine::attach_function()
{
return InsertENTERGRAM();
}

View File

@ -0,0 +1,19 @@
class UnrealEngine : public ENGINE
{
public:
UnrealEngine()
{
check_by = CHECK_BY::CUSTOM;
is_engine_certain = false;
check_by_target = []()
{
// Copyright Epic Games, Inc. All Rights Reserved.
//++UE4+Release-4.27-CL-0
return Util::SearchResourceString(L"Copyright Epic Games") || Util::SearchResourceString(L"UnrealEngine") || GetProcAddress(GetModuleHandleA(0), "agsCheckDriverVersion");
};
};
bool attach_function();
};

View File

@ -12,7 +12,7 @@
#include "engine64/CMVS.h"
#include "engine64/5pb.h"
#include "engine64/lucasystem.h"
#include "engine64/ENTERGRAM.h"
#include "engine64/UnrealEngine.h"
#include "engine64/TYPEMOON.h"
#include "engine64/Kincaid.h"
#include "engine64/LightVN.h"
@ -41,7 +41,7 @@ std::vector<ENGINE *> check_engines()
new AGES7,
new _5pb,
new TYPEMOON,
new ENTERGRAM,
new UnrealEngine,
new yuzu,
new PPSSPPengine,
new vita3k,