This commit is contained in:
恍兮惚兮 2024-08-01 15:44:24 +08:00
parent 2df10cdf8e
commit d3a473ac0b
3 changed files with 29 additions and 51 deletions

View File

@ -347,25 +347,14 @@ std::vector<ENGINE *> check_engines()
new Erogos, new Erogos,
new Silkysveryveryold, new Silkysveryveryold,
new gazelle, new gazelle,
}; // ignore engines
}
std::vector<ENGINE *> ignore_engines()
{
return {
new oldSystem40ini, new oldSystem40ini,
new AdvPlayerHD, new AdvPlayerHD,
new DPM, new DPM,
new Escude_ignore, new Escude_ignore,
new Chartreux, new Chartreux,
}; //
}
std::vector<ENGINE *> unsafe_check_atlast()
{
// Put the patterns that might break other games at last // Put the patterns that might break other games at last
return {
new UnisonShift, new UnisonShift,
new Interheart, new Interheart,
new Abalone, new Abalone,
@ -398,5 +387,7 @@ std::vector<ENGINE *> unsafe_check_atlast()
new ShinaRio, new ShinaRio,
new Suika2, new Suika2,
new KISS, new KISS,
new EntisGLS}; new EntisGLS,
//
};
} }

View File

@ -21,9 +21,6 @@
#include "engine64/rpcs3.h" #include "engine64/rpcs3.h"
#include "engines/lua/lua51.h" #include "engines/lua/lua51.h"
#include "engines/python/Renpy.h" #include "engines/python/Renpy.h"
std::vector<ENGINE *> ignore_engines() { return {}; }
std::vector<ENGINE *> unsafe_check_atlast() { return {}; }
std::vector<ENGINE *> check_engines() std::vector<ENGINE *> check_engines()
{ {
return { return {

View File

@ -5,8 +5,6 @@ WCHAR processName_lower[MAX_PATH];
uintptr_t processStartAddress, processStopAddress; uintptr_t processStartAddress, processStopAddress;
std::vector<ENGINE *> check_engines(); std::vector<ENGINE *> check_engines();
std::vector<ENGINE *> ignore_engines();
std::vector<ENGINE *> unsafe_check_atlast();
bool ENGINE::check_function() bool ENGINE::check_function()
{ {
@ -76,19 +74,12 @@ bool checkengine()
{ {
auto engines = check_engines(); auto engines = check_engines();
auto engineatlast = unsafe_check_atlast();
auto engineignore = ignore_engines();
std::vector<const char *> infomations = { std::vector<const char *> infomations = {
"match failed", "match failed",
"attach failed", "attach failed",
"attach success"}; "attach success"};
auto allengines = {engines, engineignore, engineatlast};
int total = [allengines]()
{int _=0;for(auto eng:allengines)_+=eng.size();return _; }();
int current = 0; int current = 0;
for (auto eng : allengines) for (auto m : engines)
{
for (auto m : eng)
{ {
current += 1; current += 1;
@ -117,7 +108,6 @@ bool checkengine()
return true; return true;
} }
} }
}
return false; return false;
} }