mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2024-11-23 19:25:35 +08:00
Experimental build: Load luma ceg plugin dll if present.
This commit is contained in:
parent
1f79ca9231
commit
c4e0c855df
@ -30,3 +30,6 @@ All ips except these ranges are blocked:
|
|||||||
192.168.0.0 - 192.168.255.255
|
192.168.0.0 - 192.168.255.255
|
||||||
224.0.0.0 - 255.255.255.255
|
224.0.0.0 - 255.255.255.255
|
||||||
|
|
||||||
|
|
||||||
|
Luma CEG support:
|
||||||
|
If LumaCEG_Plugin_x86.dll (steam_api.dll) or LumaCEG_Plugin_x64.dll (steam_api64.dll) is present it will be loaded automatically.
|
||||||
|
19
dll/base.cpp
19
dll/base.cpp
@ -583,6 +583,24 @@ static void load_dll()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef DETOURS_64BIT
|
||||||
|
#define LUMA_CEG_DLL_NAME "LumaCEG_Plugin_x64.dll"
|
||||||
|
#else
|
||||||
|
#define LUMA_CEG_DLL_NAME "LumaCEG_Plugin_x86.dll"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
static void load_lumaCEG()
|
||||||
|
{
|
||||||
|
std::string path = get_full_program_path();
|
||||||
|
path += LUMA_CEG_DLL_NAME;
|
||||||
|
if (file_exists(path)) {
|
||||||
|
PRINT_DEBUG("loading luma ceg dll %s\n", path.c_str());
|
||||||
|
if (LoadLibraryA(path.c_str())) {
|
||||||
|
PRINT_DEBUG("Loaded luma ceg dll file\n");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//For some reason when this function is optimized it breaks the shogun 2 prophet (reloaded) crack.
|
//For some reason when this function is optimized it breaks the shogun 2 prophet (reloaded) crack.
|
||||||
#pragma optimize( "", off )
|
#pragma optimize( "", off )
|
||||||
bool crack_SteamAPI_RestartAppIfNecessary(uint32 unOwnAppID)
|
bool crack_SteamAPI_RestartAppIfNecessary(uint32 unOwnAppID)
|
||||||
@ -666,6 +684,7 @@ BOOL WINAPI DllMain( HINSTANCE, DWORD dwReason, LPVOID ) {
|
|||||||
network_functions_attached = true;
|
network_functions_attached = true;
|
||||||
}
|
}
|
||||||
load_dll();
|
load_dll();
|
||||||
|
load_lumaCEG();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case DLL_PROCESS_DETACH:
|
case DLL_PROCESS_DETACH:
|
||||||
|
Loading…
Reference in New Issue
Block a user