forked from metin2/server
Added build details, the executables no longer write VERSION.TXT
This commit is contained in:
@ -6,8 +6,7 @@ file(GLOB_RECURSE sources
|
||||
src/*.cpp src/*.h
|
||||
)
|
||||
|
||||
include_directories(${PROJECT_BINARY_DIR}/src/)
|
||||
|
||||
# Add the src directory to the include path
|
||||
include_directories(src/)
|
||||
|
||||
# Find dependencies
|
||||
|
@ -3622,7 +3622,7 @@ void CHARACTER::PointChange(BYTE type, int amount, bool bAmount, bool bBroadcast
|
||||
|
||||
if (GetDesc())
|
||||
{
|
||||
struct packet_point_change pack;
|
||||
TPacketGCPointChange pack;
|
||||
|
||||
pack.header = HEADER_GC_CHARACTER_POINT_CHANGE;
|
||||
pack.dwVID = m_vid;
|
||||
@ -3635,7 +3635,7 @@ void CHARACTER::PointChange(BYTE type, int amount, bool bAmount, bool bBroadcast
|
||||
pack.amount = 0;
|
||||
|
||||
if (!bBroadcast)
|
||||
GetDesc()->Packet(&pack, sizeof(struct packet_point_change));
|
||||
GetDesc()->Packet(&pack, sizeof(TPacketGCPointChange));
|
||||
else
|
||||
PacketAround(&pack, sizeof(pack));
|
||||
}
|
||||
|
@ -63,8 +63,6 @@ class CInputHandshake : public CInputProcessor
|
||||
virtual int Analyze(LPDESC d, BYTE bHeader, const char * c_pData);
|
||||
|
||||
protected:
|
||||
void GuildMarkLogin(LPDESC d, const char* c_pData);
|
||||
|
||||
CPacketInfo * m_pMainPacketInfo;
|
||||
};
|
||||
|
||||
|
@ -58,6 +58,7 @@
|
||||
#include "skill_power.h"
|
||||
#include "SpeedServer.h"
|
||||
#include "DragonSoul.h"
|
||||
#include <version.h>
|
||||
#include <event2/event.h>
|
||||
#include <event2/listener.h>
|
||||
#include <event2/dns.h>
|
||||
@ -70,7 +71,6 @@
|
||||
#include <execinfo.h>
|
||||
#endif
|
||||
|
||||
extern void WriteVersion();
|
||||
//extern const char * _malloc_options;
|
||||
#if defined(__FreeBSD__) && defined(DEBUG_ALLOC)
|
||||
extern void (*_malloc_message)(const char* p1, const char* p2, const char* p3, const char* p4);
|
||||
@ -331,7 +331,7 @@ int main(int argc, char **argv)
|
||||
|
||||
ilInit(); // DevIL Initialize
|
||||
|
||||
WriteVersion();
|
||||
WriteVersion(std::cout);
|
||||
|
||||
SECTREE_MANAGER sectree_manager;
|
||||
CHARACTER_MANAGER char_manager;
|
||||
|
@ -931,7 +931,7 @@ typedef struct packet_char_additional_info
|
||||
BYTE bEmpire;
|
||||
DWORD dwGuildID;
|
||||
DWORD dwLevel;
|
||||
short sAlignment;
|
||||
sh_int sAlignment;
|
||||
BYTE bPKMode;
|
||||
DWORD dwMountVnum;
|
||||
} TPacketGCCharacterAdditionalInfo;
|
||||
@ -950,7 +950,7 @@ typedef struct packet_char_additional_info
|
||||
DWORD dwAffectFlag[2];
|
||||
|
||||
DWORD dwGuildID;
|
||||
short sAlignment;
|
||||
sh_int sAlignment;
|
||||
BYTE bPKMode;
|
||||
DWORD dwMountVnum;
|
||||
} TPacketGCCharacterUpdateOld;
|
||||
@ -961,7 +961,7 @@ typedef struct packet_update_char
|
||||
BYTE header;
|
||||
DWORD dwVID;
|
||||
|
||||
WORD awPart[CHR_EQUIPPART_NUM];
|
||||
WORD awPart[CHR_EQUIPPART_NUM];
|
||||
BYTE bMovingSpeed;
|
||||
BYTE bAttackSpeed;
|
||||
|
||||
@ -969,7 +969,7 @@ typedef struct packet_update_char
|
||||
DWORD dwAffectFlag[2];
|
||||
|
||||
DWORD dwGuildID;
|
||||
short sAlignment;
|
||||
sh_int sAlignment;
|
||||
BYTE bPKMode;
|
||||
DWORD dwMountVnum;
|
||||
//WORD wRaceNum;
|
||||
@ -1060,7 +1060,7 @@ typedef struct packet_skill_level
|
||||
|
||||
typedef struct packet_point_change
|
||||
{
|
||||
INT header;
|
||||
BYTE header;
|
||||
DWORD dwVID;
|
||||
BYTE type;
|
||||
LONG amount;
|
||||
@ -1573,7 +1573,7 @@ typedef struct packet_party_update
|
||||
DWORD pid;
|
||||
BYTE role;
|
||||
BYTE percent_hp;
|
||||
short affects[7];
|
||||
sh_int affects[7];
|
||||
} TPacketGCPartyUpdate;
|
||||
|
||||
typedef struct packet_party_remove
|
||||
|
@ -6,14 +6,15 @@
|
||||
|
||||
#include "debug_allocator.h"
|
||||
|
||||
#include "../../libthecore/include/stdafx.h"
|
||||
#include <libthecore/include/stdafx.h>
|
||||
|
||||
#include <common/singleton.h>
|
||||
#include <common/utils.h>
|
||||
#include <common/service.h>
|
||||
|
||||
#include <iostream>
|
||||
#include <algorithm>
|
||||
#include <math.h>
|
||||
#include <cmath>
|
||||
#include <list>
|
||||
#include <map>
|
||||
#include <set>
|
||||
@ -22,7 +23,7 @@
|
||||
#include <vector>
|
||||
#include <memory>
|
||||
|
||||
#include <float.h>
|
||||
#include <cfloat>
|
||||
#include <unordered_map>
|
||||
#include <unordered_set>
|
||||
|
||||
@ -32,12 +33,5 @@
|
||||
|
||||
#define PASSES_PER_SEC(sec) ((sec) * passes_per_sec)
|
||||
|
||||
#ifndef M_PI
|
||||
#define M_PI 3.14159265358979323846 /* pi */
|
||||
#endif
|
||||
#ifndef M_PI_2
|
||||
#define M_PI_2 1.57079632679489661923 /* pi/2 */
|
||||
#endif
|
||||
|
||||
#define IN
|
||||
#define OUT
|
||||
|
@ -1,16 +1,15 @@
|
||||
#include <stdio.h>
|
||||
#include <version.h>
|
||||
|
||||
void WriteVersion()
|
||||
{
|
||||
#ifndef __WIN32__
|
||||
FILE* fp = fopen("ver.txt", "w");
|
||||
void WriteVersion(std::ostream& out) {
|
||||
out << "Metin2 Game Server version " << __COMMIT_TAG__ << " "
|
||||
<< "(rev. " << __REVISION__ << ", date: " << __COMMIT_DATE__ << ")"
|
||||
<< std::endl;
|
||||
|
||||
if (fp)
|
||||
{
|
||||
fprintf(fp, "emulated game server\n");
|
||||
//fprintf(fp, "%s@%s:%s\n", __USER__, __HOSTNAME__, __PWD__);
|
||||
fclose(fp);
|
||||
}
|
||||
#endif
|
||||
out << "OS: " << __OS_NAME__ << ", "
|
||||
<< "target arch: " << __CPU_TARGET__ << ", "
|
||||
<< "compiler: " << __COMPILER__
|
||||
<< std::endl;
|
||||
|
||||
out << std::endl;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user