mirror of
https://github.com/rehlds/rechecker.git
synced 2025-01-13 20:27:54 +03:00
Cleanup
This commit is contained in:
parent
d025e0edd4
commit
a41fd605d1
1
.gitignore
vendored
1
.gitignore
vendored
@ -10,4 +10,5 @@
|
|||||||
**/msvc/ipch
|
**/msvc/ipch
|
||||||
**/PublishPath*.txt
|
**/PublishPath*.txt
|
||||||
**/Server*.bat
|
**/Server*.bat
|
||||||
|
**/publish/*
|
||||||
**/*.log
|
**/*.log
|
||||||
|
3
Makefile
3
Makefile
@ -3,7 +3,8 @@ COMPILER = /opt/intel/bin/icpc
|
|||||||
|
|
||||||
OBJECTS = src/main.cpp src/meta_api.cpp src/dllapi.cpp\
|
OBJECTS = src/main.cpp src/meta_api.cpp src/dllapi.cpp\
|
||||||
src/cmdexec.cpp src/engine_rehlds.cpp src/h_export.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
|
LINK = -lm -ldl -static-intel -static-libgcc -no-intel-extensions
|
||||||
|
|
||||||
|
2
dist/resources.ini
vendored
2
dist/resources.ini
vendored
@ -13,7 +13,7 @@
|
|||||||
# path to file hash (exec cmd)
|
# path to file hash (exec cmd)
|
||||||
# "../opengl32.dll" c8005c526355d8015d462dc7f4ddb159 "kick [userid]"
|
# "../opengl32.dll" c8005c526355d8015d462dc7f4ddb159 "kick [userid]"
|
||||||
#
|
#
|
||||||
# NOTE: Hash enough 4 bytes (or 8 characters)
|
# NOTE: Hash enough of 4 bytes (or 8 characters)
|
||||||
# -> Example
|
# -> Example
|
||||||
# full md5 hash: c8005c526355d8015d462dc7f4ddb159
|
# full md5 hash: c8005c526355d8015d462dc7f4ddb159
|
||||||
# 4 bytes from the hash: c8005c52
|
# 4 bytes from the hash: c8005c52
|
||||||
|
@ -268,8 +268,7 @@
|
|||||||
<ModuleDefinitionFile>rechecker.def</ModuleDefinitionFile>
|
<ModuleDefinitionFile>rechecker.def</ModuleDefinitionFile>
|
||||||
</Link>
|
</Link>
|
||||||
<PostBuildEvent>
|
<PostBuildEvent>
|
||||||
<Command>IF EXIST "$(ProjectDir)PostBuild.bat" (CALL "$(ProjectDir)PostBuild.bat" "$(TargetDir)" "$(TargetName)" "$(TargetExt)" "$(ProjectDir)")
|
<Command>IF EXIST "$(ProjectDir)PostBuild.bat" (CALL "$(ProjectDir)PostBuild.bat" "$(TargetDir)" "$(TargetName)" "$(TargetExt)" "$(ProjectDir)")</Command>
|
||||||
REM IF EXIST "$(ProjectDir)ServerStart_cs_6153.bat" (CALL "$(ProjectDir)ServerStart_cs_6153.bat" "$(ProjectDir)..\" "$(ProjectDir)..\")</Command>
|
|
||||||
</PostBuildEvent>
|
</PostBuildEvent>
|
||||||
<PostBuildEvent>
|
<PostBuildEvent>
|
||||||
<Message>Automatic deployment script</Message>
|
<Message>Automatic deployment script</Message>
|
||||||
@ -301,11 +300,11 @@ REM IF EXIST "$(ProjectDir)ServerStart_cs_6153.bat" (CALL "$(ProjectDir)ServerSt
|
|||||||
<EnableEnhancedInstructionSet>NotSet</EnableEnhancedInstructionSet>
|
<EnableEnhancedInstructionSet>NotSet</EnableEnhancedInstructionSet>
|
||||||
<DisableSpecificWarnings>
|
<DisableSpecificWarnings>
|
||||||
</DisableSpecificWarnings>
|
</DisableSpecificWarnings>
|
||||||
<DebugInformationFormat>None</DebugInformationFormat>
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<Link>
|
<Link>
|
||||||
<SubSystem>Windows</SubSystem>
|
<SubSystem>Windows</SubSystem>
|
||||||
<GenerateDebugInformation>false</GenerateDebugInformation>
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
<OptimizeReferences>true</OptimizeReferences>
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
<AdditionalDependencies>psapi.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
<AdditionalDependencies>psapi.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
@ -43,8 +43,10 @@ bool OnMetaAttach()
|
|||||||
|
|
||||||
void OnMetaDetach()
|
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);
|
g_RehldsApi->GetHookchains()->SV_CheckConsistencyResponce()->unregisterHook(&SV_CheckConsistencyResponce);
|
||||||
|
|
||||||
// clear
|
// clear
|
||||||
Exec.Clear();
|
Exec.Clear();
|
||||||
/*Task.Clear();*/
|
/*Task.Clear();*/
|
||||||
|
@ -1,11 +1,12 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
void StartFrame();
|
|
||||||
void SV_ActivateServer(IRehldsHook_SV_ActivateServer *chain, int runPhysics);
|
void SV_ActivateServer(IRehldsHook_SV_ActivateServer *chain, int runPhysics);
|
||||||
void SV_DropClient(IRehldsHook_SV_DropClient *chain, IGameClient *pClient, bool crash, const char *string);
|
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);
|
bool SV_CheckConsistencyResponce(IRehldsHook_SV_CheckConsistencyResponce *chain, IGameClient *pSenderClient, resource_t *resource, uint32 hash);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
void StartFrame();
|
||||||
extern DLL_FUNCTIONS *g_pFunctionTable;
|
extern DLL_FUNCTIONS *g_pFunctionTable;
|
||||||
*/
|
*/
|
||||||
|
|
||||||
extern void (*SV_AddResource)(resourcetype_t type, const char *name, int size, unsigned char flags, int index);
|
extern void (*SV_AddResource)(resourcetype_t type, const char *name, int size, unsigned char flags, int index);
|
||||||
|
@ -4,7 +4,7 @@ plugin_info_t Plugin_info =
|
|||||||
{
|
{
|
||||||
META_INTERFACE_VERSION,
|
META_INTERFACE_VERSION,
|
||||||
"Rechecker",
|
"Rechecker",
|
||||||
"1.1",
|
"1.0",
|
||||||
__DATE__,
|
__DATE__,
|
||||||
"s1lent",
|
"s1lent",
|
||||||
"http://www.dedicated-server.ru/",
|
"http://www.dedicated-server.ru/",
|
||||||
|
@ -23,10 +23,9 @@
|
|||||||
#include "rehlds_api.h"
|
#include "rehlds_api.h"
|
||||||
#include "engine_rehlds.h"
|
#include "engine_rehlds.h"
|
||||||
|
|
||||||
//#include "main.h"
|
#include "main.h"
|
||||||
//#include "task.h"
|
//#include "task.h"
|
||||||
|
//#include "config.h"
|
||||||
#include "config.h"
|
|
||||||
#include "resource.h"
|
#include "resource.h"
|
||||||
#include "cmdexec.h"
|
#include "cmdexec.h"
|
||||||
//#include "sdk_util.h" // UTIL_LogPrintf, etc
|
//#include "sdk_util.h" // UTIL_LogPrintf, etc
|
||||||
|
@ -38,6 +38,7 @@ void CResourceFile::CreateResourceList()
|
|||||||
void CResourceFile::Clear()
|
void CResourceFile::Clear()
|
||||||
{
|
{
|
||||||
m_PrevHash = 0;
|
m_PrevHash = 0;
|
||||||
|
m_DecalsNum = 0;
|
||||||
|
|
||||||
// clear resources
|
// clear resources
|
||||||
m_resourceList.clear();
|
m_resourceList.clear();
|
||||||
|
@ -38,6 +38,7 @@ void CTaskMngr::StartFrame()
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// is call a callback
|
||||||
pTask->Handler();
|
pTask->Handler();
|
||||||
|
|
||||||
// erase task
|
// erase task
|
||||||
|
Loading…
x
Reference in New Issue
Block a user