[Crack-iT/ChrisTX]
I'll release a new VUP version this weekend.
It will introduce full support to break Valve's 24 Players limit on Source/Source 2007 engines and you will be able to get full 32 slots server.
Also Battlefield 2142 support is ququed for new VUP.
It will use new OpenPtch 1.9 which will increase type detection/patching speed by at least 3-4 times...
[shmeele]
Nice job
Only Linux version remains and ppl will be happy
Try to use the following to port this:
1)
#ifdef _WIN32
#include <windows.h>
#else
#include <dlfcn.h>
#endif
#ifdef _WIN32
#define TREVEMULIBOBJ HMODULE
#else
#define TREVEMULIBOBJ void *
#endif
int REVEmuLoadOrigSteamDLL(char *OrigSteamDLLName,TREVEMULIBOBJ *pOrigSteamDLLHandle)
{
if (!OrigSteamDLLName || !pOrigSteamDLLHandle)
return 2;
#ifdef _WIN32
*pOrigSteamDLLHandle = LoadLibrary(OrigSteamDLLName);
if (!(*pOrigSteamDLLHandle))
return 1;
return 0;
#else
*pOrigSteamDLLHandle = dlopen(OrigSteamDLLName,RTLD_LAZY || RTLD_GLOBAL);
if (!(*pOrigSteamDLLHandle))
return 1;
return 0;
#endif
}
int REVEmuGetOrigFunc(void ** FuncAddr,char *FuncName,TREVEMULIBOBJ OrigSteamDLLHandle)
{
if (!FuncAddr || !FuncName || !OrigSteamDLLHandle)
return 2;
#ifdef _WIN32
*FuncAddr = (void *) GetProcAddress(OrigSteamDLLHandle,FuncName);
#else
*FuncAddr = dlsym(OrigSteamDLLHandle,FuncName);
#endif
if (!(*FuncAddr))
return 1;
return 0;
int REVEmuUnLoadOrigSteamDLL(TREVEMULIBOBJ *pOrigSteamDLLHandle)
{
if (!pOrigSteamDLLHandle)
return 2;
#ifdef _WIN32
if (!FreeLibrary(*pOrigSteamDLLHandle))
return 1;
#else
if (dlclose(*pOrigSteamDLLHandle))
return 1;
#endif
*pOrigSteamDLLHandle = NULL;
return 0;
}
