This commit is contained in:
恍兮惚兮 2024-10-20 18:15:15 +08:00
parent 1e7d410f9f
commit 72f01321fe
6 changed files with 49 additions and 51 deletions

View File

@ -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 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 Unknown 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 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()
@ -51,4 +51,4 @@ target_precompile_headers(LunaHook REUSE_FROM pchhook)
set_target_properties(LunaHook PROPERTIES OUTPUT_NAME "LunaHook${bitappendix}") set_target_properties(LunaHook PROPERTIES OUTPUT_NAME "LunaHook${bitappendix}")
target_link_libraries(LunaHook Version httpapi Shlwapi pch minhook commonengine utils ${YY_Thunks_for_WinXP} ${Detours}) target_link_libraries(LunaHook Version httpapi ws2_32 Shlwapi pch minhook commonengine utils ${YY_Thunks_for_WinXP} ${Detours})

View File

@ -1,5 +1,5 @@
#include"Unknown.h" #include"UnknownEngine.h"
bool Unknown::attach_function() { bool UnknownEngine::attach_function() {
//ABANDONER - THE SEVERED DREAMS //ABANDONER - THE SEVERED DREAMS
//https://vndb.org/v1182 //https://vndb.org/v1182
const BYTE bytes[] = { const BYTE bytes[] = {

View File

@ -1,8 +1,8 @@
class Unknown:public ENGINE{ class UnknownEngine:public ENGINE{
public: public:
Unknown(){ UnknownEngine(){
check_by=CHECK_BY::FILE; check_by=CHECK_BY::FILE;
is_engine_certain=false; is_engine_certain=false;

View File

@ -58,7 +58,7 @@
#include "engine32/Cotopha.h" #include "engine32/Cotopha.h"
#include "engine32/Xbangbang.h" #include "engine32/Xbangbang.h"
#include "engine32/TeethingRing.h" #include "engine32/TeethingRing.h"
#include "engine32/Unknown.h" #include "engine32/UnknownEngine.h"
#include "engine32/Artemis.h" #include "engine32/Artemis.h"
#include "engine32/CatSystem.h" #include "engine32/CatSystem.h"
#include "engine32/Atelier.h" #include "engine32/Atelier.h"
@ -299,7 +299,7 @@ std::vector<ENGINE *> check_engines()
new ACTGS, new ACTGS,
new Nijyuei, new Nijyuei,
new Xbangbang, new Xbangbang,
new Unknown, new UnknownEngine,
new TSSystem, new TSSystem,
new Troy, new Troy,
new Tomato, new Tomato,

View File

@ -241,54 +241,51 @@ auto makeserveronce(int port)
} }
int GetRandomAvailablePort() int GetRandomAvailablePort()
{ {
static int xx = 9000 + GetCurrentProcessId() % 20000; WSADATA wsaData;
return xx++; int result = WSAStartup(MAKEWORD(2, 2), &wsaData);
if (result != 0)
{
return 0;
}
// WSADATA wsaData; // 创建一个 TCP 套接字
// int result = WSAStartup(MAKEWORD(2, 2), &wsaData); SOCKET sock = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);
// if (result != 0) if (sock == INVALID_SOCKET)
// { {
// return 0; WSACleanup();
// } return 0;
}
// // 创建一个 TCP 套接字 // 绑定到随机端口
// SOCKET sock = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); sockaddr_in addr;
// if (sock == INVALID_SOCKET) addr.sin_family = AF_INET;
// { addr.sin_addr.s_addr = INADDR_ANY;
// WSACleanup(); addr.sin_port = 0; // 0 表示让系统自动选择一个可用端口
// return 0;
// }
// // 绑定到随机端口 result = bind(sock, (SOCKADDR *)&addr, sizeof(addr));
// sockaddr_in addr; if (result == SOCKET_ERROR)
// addr.sin_family = AF_INET; {
// addr.sin_addr.s_addr = INADDR_ANY; closesocket(sock);
// addr.sin_port = 0; // 0 表示让系统自动选择一个可用端口 WSACleanup();
return 0;
}
// result = bind(sock, (SOCKADDR *)&addr, sizeof(addr)); // 获取实际绑定的端口号
// if (result == SOCKET_ERROR) int addrLen = sizeof(addr);
// { result = getsockname(sock, (SOCKADDR *)&addr, &addrLen);
// closesocket(sock); if (result == SOCKET_ERROR)
// WSACleanup(); {
// return 0; closesocket(sock);
// } WSACleanup();
return 0;
}
// // 获取实际绑定的端口号 // 关闭套接字
// int addrLen = sizeof(addr); closesocket(sock);
// result = getsockname(sock, (SOCKADDR *)&addr, &addrLen); WSACleanup();
// if (result == SOCKET_ERROR)
// {
// closesocket(sock);
// WSACleanup();
// return 0;
// }
// // 关闭套接字 // 返回实际绑定的端口号
// closesocket(sock); return ntohs(addr.sin_port);
// WSACleanup();
// // 返回实际绑定的端口号
// return ntohs(addr.sin_port);
} }
int makehttpgetserverinternal() int makehttpgetserverinternal()

View File

@ -1,5 +1,6 @@
#pragma once #pragma once
#include <Winsock2.h>
#define _WINSOCKAPI_
#define WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN
#include <Windows.h> #include <Windows.h>
#include <windowsx.h> #include <windowsx.h>