This commit is contained in:
s1lentq 2015-11-13 17:01:39 +06:00
parent d025e0edd4
commit a41fd605d1
10 changed files with 17 additions and 12 deletions

1
.gitignore vendored
View File

@ -10,4 +10,5 @@
**/msvc/ipch
**/PublishPath*.txt
**/Server*.bat
**/publish/*
**/*.log

View File

@ -3,7 +3,8 @@ COMPILER = /opt/intel/bin/icpc
OBJECTS = src/main.cpp src/meta_api.cpp src/dllapi.cpp\
src/cmdexec.cpp src/engine_rehlds.cpp src/h_export.cpp\
src/resource.cpp src/sdk_util.cpp public/interface.cpp
src/resource.cpp src/sdk_util.cpp public/interface.cpp\
########src/config.cpp src/task.cpp
LINK = -lm -ldl -static-intel -static-libgcc -no-intel-extensions

2
dist/resources.ini vendored
View File

@ -13,7 +13,7 @@
# path to file hash (exec cmd)
# "../opengl32.dll" c8005c526355d8015d462dc7f4ddb159 "kick [userid]"
#
# NOTE: Hash enough 4 bytes (or 8 characters)
# NOTE: Hash enough of 4 bytes (or 8 characters)
# -> Example
# full md5 hash: c8005c526355d8015d462dc7f4ddb159
# 4 bytes from the hash: c8005c52

View File

@ -268,8 +268,7 @@
<ModuleDefinitionFile>rechecker.def</ModuleDefinitionFile>
</Link>
<PostBuildEvent>
<Command>IF EXIST "$(ProjectDir)PostBuild.bat" (CALL "$(ProjectDir)PostBuild.bat" "$(TargetDir)" "$(TargetName)" "$(TargetExt)" "$(ProjectDir)")
REM IF EXIST "$(ProjectDir)ServerStart_cs_6153.bat" (CALL "$(ProjectDir)ServerStart_cs_6153.bat" "$(ProjectDir)..\" "$(ProjectDir)..\")</Command>
<Command>IF EXIST "$(ProjectDir)PostBuild.bat" (CALL "$(ProjectDir)PostBuild.bat" "$(TargetDir)" "$(TargetName)" "$(TargetExt)" "$(ProjectDir)")</Command>
</PostBuildEvent>
<PostBuildEvent>
<Message>Automatic deployment script</Message>
@ -301,11 +300,11 @@ REM IF EXIST "$(ProjectDir)ServerStart_cs_6153.bat" (CALL "$(ProjectDir)ServerSt
<EnableEnhancedInstructionSet>NotSet</EnableEnhancedInstructionSet>
<DisableSpecificWarnings>
</DisableSpecificWarnings>
<DebugInformationFormat>None</DebugInformationFormat>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
<GenerateDebugInformation>false</GenerateDebugInformation>
<GenerateDebugInformation>true</GenerateDebugInformation>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<AdditionalDependencies>psapi.lib;%(AdditionalDependencies)</AdditionalDependencies>

View File

@ -43,8 +43,10 @@ bool OnMetaAttach()
void OnMetaDetach()
{
g_RehldsApi->GetHookchains()->SV_DropClient()->unregisterHook(&SV_DropClient);
g_RehldsApi->GetHookchains()->SV_ActivateServer()->unregisterHook(&SV_ActivateServer);
g_RehldsApi->GetHookchains()->SV_CheckConsistencyResponce()->unregisterHook(&SV_CheckConsistencyResponce);
// clear
Exec.Clear();
/*Task.Clear();*/

View File

@ -1,11 +1,12 @@
#pragma once
void StartFrame();
void SV_ActivateServer(IRehldsHook_SV_ActivateServer *chain, int runPhysics);
void SV_DropClient(IRehldsHook_SV_DropClient *chain, IGameClient *pClient, bool crash, const char *string);
bool SV_CheckConsistencyResponce(IRehldsHook_SV_CheckConsistencyResponce *chain, IGameClient *pSenderClient, resource_t *resource, uint32 hash);
/*
void StartFrame();
extern DLL_FUNCTIONS *g_pFunctionTable;
*/
extern void (*SV_AddResource)(resourcetype_t type, const char *name, int size, unsigned char flags, int index);

View File

@ -4,7 +4,7 @@ plugin_info_t Plugin_info =
{
META_INTERFACE_VERSION,
"Rechecker",
"1.1",
"1.0",
__DATE__,
"s1lent",
"http://www.dedicated-server.ru/",

View File

@ -23,10 +23,9 @@
#include "rehlds_api.h"
#include "engine_rehlds.h"
//#include "main.h"
#include "main.h"
//#include "task.h"
#include "config.h"
//#include "config.h"
#include "resource.h"
#include "cmdexec.h"
//#include "sdk_util.h" // UTIL_LogPrintf, etc

View File

@ -38,6 +38,7 @@ void CResourceFile::CreateResourceList()
void CResourceFile::Clear()
{
m_PrevHash = 0;
m_DecalsNum = 0;
// clear resources
m_resourceList.clear();

View File

@ -38,6 +38,7 @@ void CTaskMngr::StartFrame()
continue;
}
// is call a callback
pTask->Handler();
// erase task