Fix build.
This commit is contained in:
parent
535f298621
commit
2a7367c1a8
5 changed files with 7 additions and 9 deletions
|
|
@ -30,8 +30,8 @@ private:
|
||||||
uint32 m_origFunc;
|
uint32 m_origFunc;
|
||||||
uint32 m_hookFunc;
|
uint32 m_hookFunc;
|
||||||
|
|
||||||
uint8 m_origBytes[CodeLength];
|
uint8 m_origBytes[CodeLength] {};
|
||||||
uint8 m_hookBytes[CodeLength];
|
uint8 m_hookBytes[CodeLength] {};
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void setPageSize () {
|
void setPageSize () {
|
||||||
|
|
@ -64,7 +64,7 @@ private:
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
SimpleHook () : m_patched (false), m_origFunc (0), m_hookFunc (0), m_pageSize (0) {
|
SimpleHook () : m_patched (false), m_pageSize (0), m_origFunc (0), m_hookFunc (0) {
|
||||||
setPageSize ();
|
setPageSize ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -151,7 +151,7 @@ public:
|
||||||
return static_cast <int32> (sendLength);
|
return static_cast <int32> (sendLength);
|
||||||
#else
|
#else
|
||||||
iovec iov = { const_cast <void *> (message), length };
|
iovec iov = { const_cast <void *> (message), length };
|
||||||
msghdr msg = { 0, };
|
msghdr msg {};
|
||||||
|
|
||||||
msg.msg_name = reinterpret_cast <void *> (const_cast <struct sockaddr *> (dest));
|
msg.msg_name = reinterpret_cast <void *> (const_cast <struct sockaddr *> (dest));
|
||||||
msg.msg_namelen = destLength;
|
msg.msg_namelen = destLength;
|
||||||
|
|
|
||||||
|
|
@ -304,8 +304,8 @@ public:
|
||||||
int getTeam (edict_t *ent);
|
int getTeam (edict_t *ent);
|
||||||
|
|
||||||
// adds translation pair from config
|
// adds translation pair from config
|
||||||
void addTranslation (const String &m_origBytes, const String &translated) {
|
void addTranslation (const String &original, const String &translated) {
|
||||||
m_language.push (m_origBytes, translated);
|
m_language.push (original, translated);
|
||||||
}
|
}
|
||||||
|
|
||||||
// clear the translation table
|
// clear the translation table
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
//
|
//
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
#define _CRTDBG_MAP_ALLOC
|
|
||||||
#include <engine/extdll.h>
|
#include <engine/extdll.h>
|
||||||
#include <engine/meta_api.h>
|
#include <engine/meta_api.h>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,3 @@
|
||||||
// This is an open source non-commercial project. Dear PVS-Studio, please check it.
|
|
||||||
// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
|
|
||||||
//
|
//
|
||||||
// Yet Another POD-Bot, based on PODBot by Markus Klinge ("CountFloyd").
|
// Yet Another POD-Bot, based on PODBot by Markus Klinge ("CountFloyd").
|
||||||
// Copyright (c) YaPB Development Team.
|
// Copyright (c) YaPB Development Team.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue