mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-11 19:32:24 +00:00
remove global_define.h and adjust platform header includes
- Remove unused MRMutex - Remove unused generate_key
This commit is contained in:
parent
b95016c92f
commit
c191ec02d4
@ -23,7 +23,6 @@
|
|||||||
#include "common/events/player_event_logs.h"
|
#include "common/events/player_event_logs.h"
|
||||||
#include "common/evolving_items.h"
|
#include "common/evolving_items.h"
|
||||||
#include "common/file.h"
|
#include "common/file.h"
|
||||||
#include "common/global_define.h"
|
|
||||||
#include "common/path_manager.h"
|
#include "common/path_manager.h"
|
||||||
#include "common/platform.h"
|
#include "common/platform.h"
|
||||||
#include "common/repositories/base_data_repository.h"
|
#include "common/repositories/base_data_repository.h"
|
||||||
|
|||||||
@ -23,7 +23,6 @@
|
|||||||
#include "common/events/player_event_logs.h"
|
#include "common/events/player_event_logs.h"
|
||||||
#include "common/evolving_items.h"
|
#include "common/evolving_items.h"
|
||||||
#include "common/file.h"
|
#include "common/file.h"
|
||||||
#include "common/global_define.h"
|
|
||||||
#include "common/path_manager.h"
|
#include "common/path_manager.h"
|
||||||
#include "common/platform.h"
|
#include "common/platform.h"
|
||||||
#include "common/repositories/base_data_repository.h"
|
#include "common/repositories/base_data_repository.h"
|
||||||
|
|||||||
@ -604,7 +604,6 @@ set(common_headers
|
|||||||
file.h
|
file.h
|
||||||
fixed_memory_hash_set.h
|
fixed_memory_hash_set.h
|
||||||
fixed_memory_variable_hash_set.h
|
fixed_memory_variable_hash_set.h
|
||||||
global_define.h
|
|
||||||
guild_base.h
|
guild_base.h
|
||||||
guilds.h
|
guilds.h
|
||||||
http/httplib.h
|
http/httplib.h
|
||||||
|
|||||||
@ -14,7 +14,7 @@
|
|||||||
// so we need not to check the version (because we only support _MSC_VER >= 1100)!
|
// so we need not to check the version (because we only support _MSC_VER >= 1100)!
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <windows.h>
|
#include "common/platform/win/include_windows.h"
|
||||||
|
|
||||||
// special defines for VC5/6 (if no actual PSDK is installed):
|
// special defines for VC5/6 (if no actual PSDK is installed):
|
||||||
#if _MSC_VER < 1300
|
#if _MSC_VER < 1300
|
||||||
|
|||||||
@ -17,7 +17,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "common/base_packet.h"
|
#include "common/base_packet.h"
|
||||||
#include "common/global_define.h"
|
|
||||||
#include "common/misc.h"
|
#include "common/misc.h"
|
||||||
#include "common/packet_dump.h"
|
#include "common/packet_dump.h"
|
||||||
|
|
||||||
|
|||||||
@ -18,20 +18,11 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include "common/platform/inet.h"
|
||||||
#include "common/serialize_buffer.h"
|
#include "common/serialize_buffer.h"
|
||||||
#include "common/types.h"
|
#include "common/types.h"
|
||||||
|
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
#include <cstring>
|
|
||||||
|
|
||||||
#ifdef _WINDOWS
|
|
||||||
#include <time.h>
|
|
||||||
#include <winsock2.h>
|
|
||||||
#include <windows.h>
|
|
||||||
#else
|
|
||||||
#include <sys/time.h>
|
|
||||||
#include <netinet/in.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
class BasePacket {
|
class BasePacket {
|
||||||
public:
|
public:
|
||||||
|
|||||||
@ -1,7 +1,5 @@
|
|||||||
#include "bodytypes.h"
|
#include "bodytypes.h"
|
||||||
|
|
||||||
#include "common/global_define.h"
|
|
||||||
|
|
||||||
std::string BodyType::GetName(uint8 body_type_id)
|
std::string BodyType::GetName(uint8 body_type_id)
|
||||||
{
|
{
|
||||||
return IsValid(body_type_id) ? body_type_names[body_type_id] : "UNKNOWN BODY TYPE";
|
return IsValid(body_type_id) ? body_type_names[body_type_id] : "UNKNOWN BODY TYPE";
|
||||||
|
|||||||
@ -19,7 +19,6 @@
|
|||||||
#include "classes.h"
|
#include "classes.h"
|
||||||
|
|
||||||
#include "common/data_verification.h"
|
#include "common/data_verification.h"
|
||||||
#include "common/global_define.h"
|
|
||||||
|
|
||||||
#include "fmt/format.h"
|
#include "fmt/format.h"
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,5 @@
|
|||||||
#include "compression.h"
|
#include "compression.h"
|
||||||
|
|
||||||
#include "common/global_define.h"
|
|
||||||
#include "common/types.h"
|
#include "common/types.h"
|
||||||
|
|
||||||
#include "zlib.h"
|
#include "zlib.h"
|
||||||
|
|||||||
@ -18,11 +18,9 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "common/global_define.h"
|
|
||||||
#include "common/mutex.h"
|
#include "common/mutex.h"
|
||||||
#ifndef WIN32
|
#include "common/platform/posix/include_pthreads.h"
|
||||||
#include <pthread.h>
|
#include "common/platform/win/include_windows.h"
|
||||||
#endif
|
|
||||||
|
|
||||||
//Sombody, someday needs to figure out how to implement a condition
|
//Sombody, someday needs to figure out how to implement a condition
|
||||||
//system on windows...
|
//system on windows...
|
||||||
|
|||||||
@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
#include "common/eqemu_config.h"
|
#include "common/eqemu_config.h"
|
||||||
#include "common/eqemu_logsys.h"
|
#include "common/eqemu_logsys.h"
|
||||||
#include "common/global_define.h"
|
|
||||||
#include "common/http/httplib.h"
|
#include "common/http/httplib.h"
|
||||||
#include "common/http/uri.h"
|
#include "common/http/uri.h"
|
||||||
#include "common/json/json.h"
|
#include "common/json/json.h"
|
||||||
@ -16,10 +15,6 @@
|
|||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#ifdef _WINDOWS
|
|
||||||
#define popen _popen
|
|
||||||
#endif
|
|
||||||
|
|
||||||
void SendCrashReport(const std::string &crash_report)
|
void SendCrashReport(const std::string &crash_report)
|
||||||
{
|
{
|
||||||
// can configure multiple endpoints if need be
|
// can configure multiple endpoints if need be
|
||||||
|
|||||||
@ -22,9 +22,9 @@
|
|||||||
#include "common/eq_packet_structs.h"
|
#include "common/eq_packet_structs.h"
|
||||||
#include "common/events/player_event_logs.h"
|
#include "common/events/player_event_logs.h"
|
||||||
#include "common/extprofile.h"
|
#include "common/extprofile.h"
|
||||||
#include "common/global_define.h"
|
|
||||||
#include "common/http/httplib.h"
|
#include "common/http/httplib.h"
|
||||||
#include "common/http/uri.h"
|
#include "common/http/uri.h"
|
||||||
|
#include "common/platform/win/include_windows.h"
|
||||||
#include "common/repositories/account_repository.h"
|
#include "common/repositories/account_repository.h"
|
||||||
#include "common/repositories/adventure_stats_repository.h"
|
#include "common/repositories/adventure_stats_repository.h"
|
||||||
#include "common/repositories/bot_data_repository.h"
|
#include "common/repositories/bot_data_repository.h"
|
||||||
@ -56,29 +56,9 @@
|
|||||||
#include "common/strings.h"
|
#include "common/strings.h"
|
||||||
#include "common/zone_store.h"
|
#include "common/zone_store.h"
|
||||||
|
|
||||||
#include "mysqld_error.h"
|
|
||||||
|
|
||||||
#include <ctype.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <string.h>
|
|
||||||
#include <iomanip>
|
|
||||||
#include <iostream>
|
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
|
||||||
// Disgrace: for windows compile
|
|
||||||
#ifdef _WINDOWS
|
|
||||||
#include <windows.h>
|
|
||||||
#define snprintf _snprintf
|
|
||||||
#define strncasecmp _strnicmp
|
|
||||||
#define strcasecmp _stricmp
|
|
||||||
#else
|
|
||||||
#include "unix.h"
|
|
||||||
#include <netinet/in.h>
|
|
||||||
#include <sys/time.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
extern Client client;
|
extern Client client;
|
||||||
|
|
||||||
Database::Database() { }
|
Database::Database() { }
|
||||||
|
|||||||
@ -21,7 +21,6 @@
|
|||||||
#include "common/dbcore.h"
|
#include "common/dbcore.h"
|
||||||
#include "common/eq_packet_structs.h"
|
#include "common/eq_packet_structs.h"
|
||||||
#include "common/eqemu_logsys.h"
|
#include "common/eqemu_logsys.h"
|
||||||
#include "common/global_define.h"
|
|
||||||
#include "common/linked_list.h"
|
#include "common/linked_list.h"
|
||||||
#include "common/types.h"
|
#include "common/types.h"
|
||||||
|
|
||||||
|
|||||||
@ -28,17 +28,10 @@
|
|||||||
#include "common/strings.h"
|
#include "common/strings.h"
|
||||||
#include "common/termcolor/rang.hpp"
|
#include "common/termcolor/rang.hpp"
|
||||||
|
|
||||||
#include <cstdio>
|
|
||||||
#include <ctime>
|
#include <ctime>
|
||||||
#include <iterator>
|
#include <iterator>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
#if _WIN32
|
|
||||||
#include <windows.h>
|
|
||||||
#else
|
|
||||||
#include <sys/time.h>
|
|
||||||
#include <thread>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define DATABASE_DUMP_PATH "backups/"
|
#define DATABASE_DUMP_PATH "backups/"
|
||||||
|
|
||||||
|
|||||||
@ -18,7 +18,9 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|||||||
|
|
||||||
#include "database.h"
|
#include "database.h"
|
||||||
|
|
||||||
#include "common/global_define.h"
|
#include "common/platform/inet.h"
|
||||||
|
#include "common/platform/platform"
|
||||||
|
#include "common/platform/win/include_windows.h"
|
||||||
#include "common/repositories/character_corpses_repository.h"
|
#include "common/repositories/character_corpses_repository.h"
|
||||||
#include "common/repositories/data_buckets_repository.h"
|
#include "common/repositories/data_buckets_repository.h"
|
||||||
#include "common/repositories/dynamic_zone_members_repository.h"
|
#include "common/repositories/dynamic_zone_members_repository.h"
|
||||||
@ -34,22 +36,9 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|||||||
#include "common/rulesys.h"
|
#include "common/rulesys.h"
|
||||||
#include "common/strings.h"
|
#include "common/strings.h"
|
||||||
#include "common/timer.h"
|
#include "common/timer.h"
|
||||||
|
|
||||||
#include <iomanip>
|
|
||||||
#include <iostream>
|
|
||||||
|
|
||||||
// Disgrace: for windows compile
|
|
||||||
#ifdef _WINDOWS
|
|
||||||
#include <windows.h>
|
|
||||||
#define snprintf _snprintf
|
|
||||||
#define strncasecmp _strnicmp
|
|
||||||
#define strcasecmp _stricmp
|
|
||||||
#else
|
|
||||||
#include "common/unix.h"
|
#include "common/unix.h"
|
||||||
#include "zone/zonedb.h"
|
#include "zone/zonedb.h"
|
||||||
#include <netinet/in.h>
|
|
||||||
#include <sys/time.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
bool Database::AddClientToInstance(uint16 instance_id, uint32 character_id)
|
bool Database::AddClientToInstance(uint16 instance_id, uint32 character_id)
|
||||||
|
|||||||
@ -17,7 +17,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "common/emu_opcodes.h"
|
#include "common/emu_opcodes.h"
|
||||||
#include "common/global_define.h"
|
|
||||||
|
|
||||||
const char *OpcodeNames[_maxEmuOpcode+1] = {
|
const char *OpcodeNames[_maxEmuOpcode+1] = {
|
||||||
"OP_Unknown",
|
"OP_Unknown",
|
||||||
|
|||||||
@ -18,7 +18,6 @@
|
|||||||
|
|
||||||
#include "eq_packet.h"
|
#include "eq_packet.h"
|
||||||
|
|
||||||
#include "common/global_define.h"
|
|
||||||
#include "common/misc.h"
|
#include "common/misc.h"
|
||||||
#include "common/op_codes.h"
|
#include "common/op_codes.h"
|
||||||
#ifndef STATIC_OPCODE
|
#ifndef STATIC_OPCODE
|
||||||
|
|||||||
@ -2,7 +2,6 @@
|
|||||||
#include "common/eq_stream_ident.h"
|
#include "common/eq_stream_ident.h"
|
||||||
#include "common/eq_stream_proxy.h"
|
#include "common/eq_stream_proxy.h"
|
||||||
#include "common/eqemu_logsys.h"
|
#include "common/eqemu_logsys.h"
|
||||||
#include "common/global_define.h"
|
|
||||||
#include "common/misc.h"
|
#include "common/misc.h"
|
||||||
|
|
||||||
#include <utility>
|
#include <utility>
|
||||||
|
|||||||
@ -2,7 +2,6 @@
|
|||||||
#include "eq_stream_proxy.h"
|
#include "eq_stream_proxy.h"
|
||||||
|
|
||||||
#include "common/eqemu_logsys.h"
|
#include "common/eqemu_logsys.h"
|
||||||
#include "common/global_define.h"
|
|
||||||
#include "common/opcodemgr.h"
|
#include "common/opcodemgr.h"
|
||||||
#include "common/struct_strategy.h"
|
#include "common/struct_strategy.h"
|
||||||
|
|
||||||
|
|||||||
@ -19,7 +19,6 @@
|
|||||||
#include "eqdb.h"
|
#include "eqdb.h"
|
||||||
|
|
||||||
#include "common/database.h"
|
#include "common/database.h"
|
||||||
#include "common/global_define.h"
|
|
||||||
|
|
||||||
#include "mysql.h"
|
#include "mysql.h"
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
|
|||||||
@ -18,7 +18,6 @@
|
|||||||
|
|
||||||
#include "eqdb_res.h"
|
#include "eqdb_res.h"
|
||||||
|
|
||||||
#include "common/global_define.h"
|
|
||||||
#include "mysql.h"
|
#include "mysql.h"
|
||||||
|
|
||||||
std::vector<std::string> EQDBRes::fetch_row_array() {
|
std::vector<std::string> EQDBRes::fetch_row_array() {
|
||||||
|
|||||||
@ -19,7 +19,6 @@
|
|||||||
#include "eqemu_config.h"
|
#include "eqemu_config.h"
|
||||||
|
|
||||||
#include "common/eqemu_logsys.h"
|
#include "common/eqemu_logsys.h"
|
||||||
#include "common/global_define.h"
|
|
||||||
#include "common/json/json.hpp"
|
#include "common/json/json.hpp"
|
||||||
#include "common/misc_functions.h"
|
#include "common/misc_functions.h"
|
||||||
#include "common/strings.h"
|
#include "common/strings.h"
|
||||||
|
|||||||
@ -20,19 +20,11 @@
|
|||||||
|
|
||||||
#include "common/eq_packet_structs.h"
|
#include "common/eq_packet_structs.h"
|
||||||
#include "common/eqemu_logsys.h"
|
#include "common/eqemu_logsys.h"
|
||||||
#include "common/global_define.h"
|
|
||||||
|
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <memory.h>
|
#include <memory.h>
|
||||||
|
|
||||||
/*#ifdef _CRTDBG_MAP_ALLOC
|
|
||||||
#undef new
|
|
||||||
#endif*/
|
|
||||||
/*#ifdef _CRTDBG_MAP_ALLOC
|
|
||||||
#define new new(_NORMAL_BLOCK, __FILE__, __LINE__)
|
|
||||||
#endif*/
|
|
||||||
|
|
||||||
#define EQT_VERSION 1000
|
#define EQT_VERSION 1000
|
||||||
|
|
||||||
//Constructor
|
//Constructor
|
||||||
|
|||||||
@ -1,8 +1,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "uv.h"
|
#include "common/platform/win/include_windows.h" // uv.h is going to include it so lets do it first.
|
||||||
|
#include "uv.h" // FIXME: hide this
|
||||||
#include <functional>
|
|
||||||
|
|
||||||
namespace EQ
|
namespace EQ
|
||||||
{
|
{
|
||||||
|
|||||||
@ -18,8 +18,6 @@
|
|||||||
|
|
||||||
#include "extprofile.h"
|
#include "extprofile.h"
|
||||||
|
|
||||||
#include "common/global_define.h"
|
|
||||||
|
|
||||||
//Set defaults in the extended profile...
|
//Set defaults in the extended profile...
|
||||||
void InitExtendedProfile(ExtendedProfile_Struct *p) {
|
void InitExtendedProfile(ExtendedProfile_Struct *p) {
|
||||||
memset(p, 0, sizeof(ExtendedProfile_Struct));
|
memset(p, 0, sizeof(ExtendedProfile_Struct));
|
||||||
|
|||||||
@ -17,17 +17,3 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
// WHY IS THIS UP HERE
|
|
||||||
#if defined(_DEBUG) && defined(WIN32)
|
|
||||||
#ifndef _CRTDBG_MAP_ALLOC
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <crtdbg.h>
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef _WINDOWS
|
|
||||||
#include <winsock2.h>
|
|
||||||
#include <windows.h>
|
|
||||||
#endif
|
|
||||||
|
|||||||
@ -1,6 +1,5 @@
|
|||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
|
|
||||||
#include "common/global_define.h"
|
|
||||||
#include "common/strings.h"
|
#include "common/strings.h"
|
||||||
#include "common/types.h"
|
#include "common/types.h"
|
||||||
|
|
||||||
@ -12,9 +11,6 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#ifndef WIN32
|
|
||||||
#include <sys/time.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
std::map<int,std::string> DBFieldNames;
|
std::map<int,std::string> DBFieldNames;
|
||||||
|
|
||||||
@ -341,23 +337,6 @@ char *bptr;
|
|||||||
return (bptr-buffer);
|
return (bptr-buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string generate_key(int length)
|
|
||||||
{
|
|
||||||
std::string key;
|
|
||||||
//TODO: write this for win32...
|
|
||||||
#ifndef WIN32
|
|
||||||
int i;
|
|
||||||
timeval now;
|
|
||||||
static const char *chars="ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
|
|
||||||
for(i=0;i<length;i++) {
|
|
||||||
gettimeofday(&now,nullptr);
|
|
||||||
srand(now.tv_sec^now.tv_usec);
|
|
||||||
key+=(char)chars[(int) (36.0*rand()/(RAND_MAX+1.0))];
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
return key;
|
|
||||||
}
|
|
||||||
|
|
||||||
void print_hex(const char *data, unsigned long length) {
|
void print_hex(const char *data, unsigned long length) {
|
||||||
char buffer[80];
|
char buffer[80];
|
||||||
uint32 offset;
|
uint32 offset;
|
||||||
|
|||||||
@ -24,6 +24,5 @@ std::string timestamp(time_t now=0);
|
|||||||
std::string long2ip(unsigned long ip);
|
std::string long2ip(unsigned long ip);
|
||||||
std::string pop_arg(std::string &s, std::string seps, bool obey_quotes);
|
std::string pop_arg(std::string &s, std::string seps, bool obey_quotes);
|
||||||
int EQsprintf(char *buffer, const char *pattern, const char *arg1, const char *arg2, const char *arg3, const char *arg4, const char *arg5, const char *arg6, const char *arg7, const char *arg8, const char *arg9);
|
int EQsprintf(char *buffer, const char *pattern, const char *arg1, const char *arg2, const char *arg3, const char *arg4, const char *arg5, const char *arg6, const char *arg7, const char *arg8, const char *arg9);
|
||||||
std::string generate_key(int length);
|
|
||||||
void build_hex_line(const char *buffer, unsigned long length, unsigned long offset, char *out_buffer, unsigned char padding=4);
|
void build_hex_line(const char *buffer, unsigned long length, unsigned long offset, char *out_buffer, unsigned char padding=4);
|
||||||
void print_hex(const char *buffer, unsigned long length);
|
void print_hex(const char *buffer, unsigned long length);
|
||||||
|
|||||||
@ -18,7 +18,6 @@
|
|||||||
|
|
||||||
#include "misc_functions.h"
|
#include "misc_functions.h"
|
||||||
|
|
||||||
#include "common/global_define.h"
|
|
||||||
#include "common/seperator.h"
|
#include "common/seperator.h"
|
||||||
#include "common/strings.h"
|
#include "common/strings.h"
|
||||||
#include "common/timer.h"
|
#include "common/timer.h"
|
||||||
@ -30,11 +29,9 @@
|
|||||||
|
|
||||||
#ifdef _WINDOWS
|
#ifdef _WINDOWS
|
||||||
#include <io.h>
|
#include <io.h>
|
||||||
#include <windows.h>
|
#include <Windows.h>
|
||||||
|
#include <WinSock2.h>
|
||||||
#define snprintf _snprintf
|
#define snprintf _snprintf
|
||||||
#define strncasecmp _strnicmp
|
|
||||||
#define strcasecmp _stricmp
|
|
||||||
#else
|
#else
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
|
|||||||
@ -18,8 +18,6 @@
|
|||||||
|
|
||||||
#include "mutex.h"
|
#include "mutex.h"
|
||||||
|
|
||||||
#include "common/global_define.h"
|
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
#define DEBUG_MUTEX_CLASS 0
|
#define DEBUG_MUTEX_CLASS 0
|
||||||
@ -163,100 +161,3 @@ void LockMutex::lock() {
|
|||||||
mut->lock();
|
mut->lock();
|
||||||
locked = true;
|
locked = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
MRMutex::MRMutex() {
|
|
||||||
rl = 0;
|
|
||||||
wr = 0;
|
|
||||||
rl = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
MRMutex::~MRMutex() {
|
|
||||||
#ifdef _EQDEBUG
|
|
||||||
if (wl || rl) {
|
|
||||||
std::cout << "MRMutex::~MRMutex: poor cleanup detected: rl=" << rl << ", wl=" << wl << std::endl;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
void MRMutex::ReadLock() {
|
|
||||||
while (!TryReadLock()) {
|
|
||||||
Sleep(1);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
bool MRMutex::TryReadLock() {
|
|
||||||
MCounters.lock();
|
|
||||||
if (!wr && !wl) {
|
|
||||||
rl++;
|
|
||||||
MCounters.unlock();
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
MCounters.unlock();
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void MRMutex::UnReadLock() {
|
|
||||||
MCounters.lock();
|
|
||||||
rl--;
|
|
||||||
MCounters.unlock();
|
|
||||||
}
|
|
||||||
|
|
||||||
void MRMutex::WriteLock() {
|
|
||||||
MCounters.lock();
|
|
||||||
if (!rl && !wl) {
|
|
||||||
wl++;
|
|
||||||
MCounters.unlock();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
wr++;
|
|
||||||
MCounters.unlock();
|
|
||||||
while (1) {
|
|
||||||
Sleep(1);
|
|
||||||
MCounters.lock();
|
|
||||||
if (!rl && !wl) {
|
|
||||||
wr--;
|
|
||||||
MCounters.unlock();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
MCounters.lock();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
bool MRMutex::TryWriteLock() {
|
|
||||||
MCounters.lock();
|
|
||||||
if (!rl && !wl) {
|
|
||||||
wl++;
|
|
||||||
MCounters.unlock();
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
MCounters.unlock();
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void MRMutex::UnWriteLock() {
|
|
||||||
MCounters.lock();
|
|
||||||
wl--;
|
|
||||||
MCounters.unlock();
|
|
||||||
}
|
|
||||||
|
|
||||||
int32 MRMutex::ReadLockCount() {
|
|
||||||
MCounters.lock();
|
|
||||||
int32 ret = rl;
|
|
||||||
MCounters.unlock();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
int32 MRMutex::WriteLockCount() {
|
|
||||||
MCounters.lock();
|
|
||||||
int32 ret = wl;
|
|
||||||
MCounters.unlock();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|||||||
@ -19,14 +19,8 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "common/types.h"
|
#include "common/types.h"
|
||||||
|
#include "common/platform/posix/include_pthreads.h"
|
||||||
#ifdef _WINDOWS
|
#include "common/platform/win/include_windows.h"
|
||||||
#include <winsock2.h>
|
|
||||||
#include <windows.h>
|
|
||||||
#else
|
|
||||||
#include "common/unix.h"
|
|
||||||
#include <pthread.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
class Mutex {
|
class Mutex {
|
||||||
public:
|
public:
|
||||||
@ -38,7 +32,7 @@ public:
|
|||||||
bool trylock();
|
bool trylock();
|
||||||
protected:
|
protected:
|
||||||
private:
|
private:
|
||||||
#if defined WIN32 || defined WIN64
|
#if defined _WINDOWS
|
||||||
CRITICAL_SECTION CSMutex;
|
CRITICAL_SECTION CSMutex;
|
||||||
#else
|
#else
|
||||||
pthread_mutex_t CSMutex;
|
pthread_mutex_t CSMutex;
|
||||||
@ -55,28 +49,3 @@ private:
|
|||||||
bool locked;
|
bool locked;
|
||||||
Mutex* mut;
|
Mutex* mut;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
// Somewhat untested...
|
|
||||||
// Multi-read, single write mutex -Quagmire
|
|
||||||
class MRMutex {
|
|
||||||
public:
|
|
||||||
MRMutex();
|
|
||||||
~MRMutex();
|
|
||||||
|
|
||||||
void ReadLock();
|
|
||||||
bool TryReadLock();
|
|
||||||
void UnReadLock();
|
|
||||||
|
|
||||||
void WriteLock();
|
|
||||||
bool TryWriteLock();
|
|
||||||
void UnWriteLock();
|
|
||||||
|
|
||||||
int32 ReadLockCount();
|
|
||||||
int32 WriteLockCount();
|
|
||||||
private:
|
|
||||||
int32 rl; // read locks in effect
|
|
||||||
int32 wr; // write lock requests pending
|
|
||||||
int32 wl; // write locks in effect (should never be more than 1)
|
|
||||||
Mutex MCounters;
|
|
||||||
};
|
|
||||||
|
|||||||
@ -1,5 +1,3 @@
|
|||||||
#include "common/global_define.h"
|
|
||||||
|
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
|||||||
@ -16,29 +16,17 @@
|
|||||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "common/global_define.h"
|
#include "packet_dump_file.h"
|
||||||
|
|
||||||
|
#include "common/eq_stream_intf.h"
|
||||||
|
|
||||||
|
#include <cstdarg>
|
||||||
|
#include <cstdio>
|
||||||
|
#include <cstring>
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <iomanip>
|
#include <iomanip>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <stdio.h>
|
|
||||||
|
|
||||||
//#ifdef _CRTDBG_MAP_ALLOC
|
|
||||||
// #undef new
|
|
||||||
// #define new new(_NORMAL_BLOCK, __FILE__, __LINE__)
|
|
||||||
//#endif
|
|
||||||
#include <string.h>
|
|
||||||
|
|
||||||
#ifdef _WINDOWS
|
|
||||||
#define snprintf _snprintf
|
|
||||||
#define strncasecmp _strnicmp
|
|
||||||
#define strcasecmp _stricmp
|
|
||||||
#else
|
|
||||||
#include <stdarg.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "eq_stream_intf.h"
|
|
||||||
#include "packet_dump_file.h"
|
|
||||||
|
|
||||||
void FileDumpPacketAscii(const char* filename, const uchar* buf, uint32 size, uint32 cols, uint32 skip) {
|
void FileDumpPacketAscii(const char* filename, const uchar* buf, uint32 size, uint32 cols, uint32 skip) {
|
||||||
std::ofstream logfile(filename, std::ios::app);
|
std::ofstream logfile(filename, std::ios::app);
|
||||||
|
|||||||
@ -20,8 +20,6 @@
|
|||||||
|
|
||||||
#include "common/types.h"
|
#include "common/types.h"
|
||||||
|
|
||||||
#include <iostream>
|
|
||||||
|
|
||||||
class EQApplicationPacket;
|
class EQApplicationPacket;
|
||||||
|
|
||||||
void FileDumpPacketAscii(const char* filename, const uchar* buf, uint32 size, uint32 cols=16, uint32 skip=0);
|
void FileDumpPacketAscii(const char* filename, const uchar* buf, uint32 size, uint32 cols=16, uint32 skip=0);
|
||||||
|
|||||||
@ -18,16 +18,13 @@
|
|||||||
|
|
||||||
#include "packet_functions.h"
|
#include "packet_functions.h"
|
||||||
|
|
||||||
#include "common/global_define.h"
|
|
||||||
#include "common/packet_dump.h"
|
#include "common/packet_dump.h"
|
||||||
|
#include "common/platform/inet.h"
|
||||||
|
|
||||||
#include "zlib.h"
|
#include "zlib.h"
|
||||||
#include <iomanip>
|
#include <iomanip>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#ifndef WIN32
|
|
||||||
#include <netinet/in.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
void EncryptProfilePacket(EQApplicationPacket* app) {
|
void EncryptProfilePacket(EQApplicationPacket* app) {
|
||||||
//EncryptProfilePacket(app->pBuffer, app->size);
|
//EncryptProfilePacket(app->pBuffer, app->size);
|
||||||
|
|||||||
@ -19,7 +19,6 @@
|
|||||||
|
|
||||||
#include "patches.h"
|
#include "patches.h"
|
||||||
|
|
||||||
#include "common/global_define.h"
|
|
||||||
#include "common/patches/rof.h"
|
#include "common/patches/rof.h"
|
||||||
#include "common/patches/rof2.h"
|
#include "common/patches/rof2.h"
|
||||||
#include "common/patches/sod.h"
|
#include "common/patches/sod.h"
|
||||||
|
|||||||
@ -25,7 +25,6 @@
|
|||||||
#include "common/eq_stream_ident.h"
|
#include "common/eq_stream_ident.h"
|
||||||
#include "common/eqemu_config.h"
|
#include "common/eqemu_config.h"
|
||||||
#include "common/eqemu_logsys.h"
|
#include "common/eqemu_logsys.h"
|
||||||
#include "common/global_define.h"
|
|
||||||
#include "common/inventory_profile.h"
|
#include "common/inventory_profile.h"
|
||||||
#include "common/misc_functions.h"
|
#include "common/misc_functions.h"
|
||||||
#include "common/opcodemgr.h"
|
#include "common/opcodemgr.h"
|
||||||
|
|||||||
@ -26,7 +26,6 @@
|
|||||||
#include "common/eq_stream_ident.h"
|
#include "common/eq_stream_ident.h"
|
||||||
#include "common/eqemu_config.h"
|
#include "common/eqemu_config.h"
|
||||||
#include "common/eqemu_logsys.h"
|
#include "common/eqemu_logsys.h"
|
||||||
#include "common/global_define.h"
|
|
||||||
#include "common/inventory_profile.h"
|
#include "common/inventory_profile.h"
|
||||||
#include "common/misc_functions.h"
|
#include "common/misc_functions.h"
|
||||||
#include "common/opcodemgr.h"
|
#include "common/opcodemgr.h"
|
||||||
|
|||||||
@ -25,7 +25,6 @@
|
|||||||
#include "common/eq_stream_ident.h"
|
#include "common/eq_stream_ident.h"
|
||||||
#include "common/eqemu_config.h"
|
#include "common/eqemu_config.h"
|
||||||
#include "common/eqemu_logsys.h"
|
#include "common/eqemu_logsys.h"
|
||||||
#include "common/global_define.h"
|
|
||||||
#include "common/item_instance.h"
|
#include "common/item_instance.h"
|
||||||
#include "common/misc_functions.h"
|
#include "common/misc_functions.h"
|
||||||
#include "common/opcodemgr.h"
|
#include "common/opcodemgr.h"
|
||||||
|
|||||||
@ -25,7 +25,6 @@
|
|||||||
#include "common/eq_stream_ident.h"
|
#include "common/eq_stream_ident.h"
|
||||||
#include "common/eqemu_config.h"
|
#include "common/eqemu_config.h"
|
||||||
#include "common/eqemu_logsys.h"
|
#include "common/eqemu_logsys.h"
|
||||||
#include "common/global_define.h"
|
|
||||||
#include "common/item_instance.h"
|
#include "common/item_instance.h"
|
||||||
#include "common/misc_functions.h"
|
#include "common/misc_functions.h"
|
||||||
#include "common/opcodemgr.h"
|
#include "common/opcodemgr.h"
|
||||||
|
|||||||
@ -25,7 +25,6 @@
|
|||||||
#include "common/eq_stream_ident.h"
|
#include "common/eq_stream_ident.h"
|
||||||
#include "common/eqemu_config.h"
|
#include "common/eqemu_config.h"
|
||||||
#include "common/eqemu_logsys.h"
|
#include "common/eqemu_logsys.h"
|
||||||
#include "common/global_define.h"
|
|
||||||
#include "common/guilds.h"
|
#include "common/guilds.h"
|
||||||
#include "common/item_instance.h"
|
#include "common/item_instance.h"
|
||||||
#include "common/misc_functions.h"
|
#include "common/misc_functions.h"
|
||||||
|
|||||||
@ -26,7 +26,6 @@
|
|||||||
#include "common/eq_stream_ident.h"
|
#include "common/eq_stream_ident.h"
|
||||||
#include "common/eqemu_config.h"
|
#include "common/eqemu_config.h"
|
||||||
#include "common/eqemu_logsys.h"
|
#include "common/eqemu_logsys.h"
|
||||||
#include "common/global_define.h"
|
|
||||||
#include "common/guilds.h"
|
#include "common/guilds.h"
|
||||||
#include "common/item_instance.h"
|
#include "common/item_instance.h"
|
||||||
#include "common/misc_functions.h"
|
#include "common/misc_functions.h"
|
||||||
|
|||||||
@ -6,4 +6,3 @@
|
|||||||
#include "common/eqemu_logsys.h"
|
#include "common/eqemu_logsys.h"
|
||||||
#include "common/eqemu_logsys_log_aliases.h"
|
#include "common/eqemu_logsys_log_aliases.h"
|
||||||
#include "common/features.h"
|
#include "common/features.h"
|
||||||
#include "common/global_define.h"
|
|
||||||
|
|||||||
@ -28,7 +28,6 @@
|
|||||||
typedef const char Const_char;
|
typedef const char Const_char;
|
||||||
|
|
||||||
#ifdef EMBPERL
|
#ifdef EMBPERL
|
||||||
#include "common/global_define.h"
|
|
||||||
#include "common/eqdb.h"
|
#include "common/eqdb.h"
|
||||||
#include "common/useperl.h"
|
#include "common/useperl.h"
|
||||||
|
|
||||||
|
|||||||
@ -28,7 +28,6 @@
|
|||||||
typedef const char Const_char;
|
typedef const char Const_char;
|
||||||
|
|
||||||
#ifdef EMBPERL
|
#ifdef EMBPERL
|
||||||
#include "common/global_define.h"
|
|
||||||
#include "common/eqdb_res.h"
|
#include "common/eqdb_res.h"
|
||||||
#include "common/useperl.h"
|
#include "common/useperl.h"
|
||||||
|
|
||||||
|
|||||||
@ -3,5 +3,5 @@
|
|||||||
#ifdef _WINDOWS
|
#ifdef _WINDOWS
|
||||||
#include "common/platform/win/include_windows.h"
|
#include "common/platform/win/include_windows.h"
|
||||||
#else
|
#else
|
||||||
#include <unistd.h>
|
#include "common/unix.h"
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@ -18,13 +18,13 @@
|
|||||||
|
|
||||||
#include "proc_launcher.h"
|
#include "proc_launcher.h"
|
||||||
|
|
||||||
#include "common/global_define.h"
|
|
||||||
#include "common/types.h"
|
#include "common/types.h"
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#ifdef _WINDOWS
|
#ifdef _WINDOWS
|
||||||
#include <windows.h>
|
#include "common/platform/win/include_windows.h"
|
||||||
#else
|
#else
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/wait.h>
|
#include <sys/wait.h>
|
||||||
|
|||||||
@ -18,16 +18,12 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "common/global_define.h"
|
#include "common/platform/platform.h"
|
||||||
|
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#ifdef __FreeBSD__
|
|
||||||
#include <unistd.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
//I forced this object to become a singleton because it registers its
|
//I forced this object to become a singleton because it registers its
|
||||||
//signal handler for UNIX
|
//signal handler for UNIX
|
||||||
class ProcLauncher {
|
class ProcLauncher {
|
||||||
|
|||||||
@ -19,7 +19,6 @@
|
|||||||
#include "ptimer.h"
|
#include "ptimer.h"
|
||||||
|
|
||||||
#include "common/database.h"
|
#include "common/database.h"
|
||||||
#include "common/global_define.h"
|
|
||||||
#include "common/strings.h"
|
#include "common/strings.h"
|
||||||
#include "common/timer.h"
|
#include "common/timer.h"
|
||||||
|
|
||||||
|
|||||||
@ -5,8 +5,6 @@
|
|||||||
#include "common/database.h"
|
#include "common/database.h"
|
||||||
#include "common/strings.h"
|
#include "common/strings.h"
|
||||||
|
|
||||||
#include <boost/tuple/tuple_comparison.hpp>
|
|
||||||
|
|
||||||
class CharacterEvolvingItemsRepository: public BaseCharacterEvolvingItemsRepository {
|
class CharacterEvolvingItemsRepository: public BaseCharacterEvolvingItemsRepository {
|
||||||
public:
|
public:
|
||||||
// Custom extended repository methods here
|
// Custom extended repository methods here
|
||||||
|
|||||||
@ -5,6 +5,7 @@
|
|||||||
#include "common/database.h"
|
#include "common/database.h"
|
||||||
#include "common/dynamic_zone_lockout.h"
|
#include "common/dynamic_zone_lockout.h"
|
||||||
#include "common/strings.h"
|
#include "common/strings.h"
|
||||||
|
#include "fmt/ranges.h"
|
||||||
|
|
||||||
#include <unordered_map>
|
#include <unordered_map>
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
#include "common/eq_stream_intf.h"
|
#include "common/eq_stream_intf.h"
|
||||||
#include "common/eqemu_logsys.h"
|
#include "common/eqemu_logsys.h"
|
||||||
#include "common/global_define.h"
|
|
||||||
#include "common/opcodemgr.h"
|
#include "common/opcodemgr.h"
|
||||||
|
|
||||||
#include <map>
|
#include <map>
|
||||||
|
|||||||
@ -18,8 +18,6 @@
|
|||||||
|
|
||||||
#include "timeoutmgr.h"
|
#include "timeoutmgr.h"
|
||||||
|
|
||||||
#include "common/global_define.h"
|
|
||||||
|
|
||||||
//#define TIMEOUT_DEBUG
|
//#define TIMEOUT_DEBUG
|
||||||
|
|
||||||
Timeoutable::Timeoutable(uint32 check_frequency)
|
Timeoutable::Timeoutable(uint32 check_frequency)
|
||||||
|
|||||||
@ -20,9 +20,11 @@
|
|||||||
|
|
||||||
// Disgrace: for windows compile
|
// Disgrace: for windows compile
|
||||||
#ifndef WIN32
|
#ifndef WIN32
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#else
|
#else
|
||||||
#include <sys/timeb.h>
|
#include <sys/timeb.h>
|
||||||
|
#include <WinSock2.h>
|
||||||
|
#undef GetCurrentTime
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
uint32 current_time = 0;
|
uint32 current_time = 0;
|
||||||
|
|||||||
@ -22,8 +22,8 @@
|
|||||||
|
|
||||||
// Disgrace: for windows compile
|
// Disgrace: for windows compile
|
||||||
#ifdef _WINDOWS
|
#ifdef _WINDOWS
|
||||||
#include "global_define.h"
|
struct timeval;
|
||||||
int gettimeofday (timeval *tp, ...);
|
int gettimeofday (timeval *tp, ...);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <chrono>
|
#include <chrono>
|
||||||
|
|||||||
@ -14,10 +14,7 @@
|
|||||||
* Include windows.h without Windows Sockets 1.1 to prevent conflicts with
|
* Include windows.h without Windows Sockets 1.1 to prevent conflicts with
|
||||||
* Windows Sockets 2.0.
|
* Windows Sockets 2.0.
|
||||||
*/
|
*/
|
||||||
#ifndef WIN32_LEAN_AND_MEAN
|
#include "common/platform/win/include_windows.h"
|
||||||
# define WIN32_LEAN_AND_MEAN
|
|
||||||
#endif
|
|
||||||
#include <windows.h>
|
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|||||||
@ -19,7 +19,6 @@
|
|||||||
#include "common/crash.h"
|
#include "common/crash.h"
|
||||||
#include "common/eqemu_config.h"
|
#include "common/eqemu_config.h"
|
||||||
#include "common/eqemu_logsys.h"
|
#include "common/eqemu_logsys.h"
|
||||||
#include "common/global_define.h"
|
|
||||||
#include "common/path_manager.h"
|
#include "common/path_manager.h"
|
||||||
#include "common/platform.h"
|
#include "common/platform.h"
|
||||||
#include "common/proc_launcher.h"
|
#include "common/proc_launcher.h"
|
||||||
@ -28,11 +27,10 @@
|
|||||||
#include "eqlaunch/worldserver.h"
|
#include "eqlaunch/worldserver.h"
|
||||||
#include "eqlaunch/zone_launch.h"
|
#include "eqlaunch/zone_launch.h"
|
||||||
|
|
||||||
#include <vector>
|
#include <csignal>
|
||||||
|
#include <ctime>
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <set>
|
#include <set>
|
||||||
#include <signal.h>
|
|
||||||
#include <time.h>
|
|
||||||
|
|
||||||
bool RunLoops = false;
|
bool RunLoops = false;
|
||||||
|
|
||||||
|
|||||||
@ -20,7 +20,6 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|||||||
|
|
||||||
#include "common/eqemu_config.h"
|
#include "common/eqemu_config.h"
|
||||||
#include "common/eqemu_logsys.h"
|
#include "common/eqemu_logsys.h"
|
||||||
#include "common/global_define.h"
|
|
||||||
#include "common/servertalk.h"
|
#include "common/servertalk.h"
|
||||||
#include "common/strings.h"
|
#include "common/strings.h"
|
||||||
#include "eqlaunch/zone_launch.h"
|
#include "eqlaunch/zone_launch.h"
|
||||||
|
|||||||
@ -20,7 +20,6 @@
|
|||||||
|
|
||||||
#include "common/eqemu_config.h"
|
#include "common/eqemu_config.h"
|
||||||
#include "common/eqemu_logsys.h"
|
#include "common/eqemu_logsys.h"
|
||||||
#include "common/global_define.h"
|
|
||||||
#include "eqlaunch/worldserver.h"
|
#include "eqlaunch/worldserver.h"
|
||||||
|
|
||||||
//static const uint32 ZONE_RESTART_DELAY = 10000;
|
//static const uint32 ZONE_RESTART_DELAY = 10000;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user