mirror of
https://github.com/glest/glest-source.git
synced 2025-02-24 19:52:25 +01:00
- added some debug code for network protocol
This commit is contained in:
parent
4fcfb4de57
commit
c1e2eac47d
@ -3080,6 +3080,8 @@ int glestMain(int argc, char** argv) {
|
|||||||
printf("\nCompiled using: %s on: %s platform: %s endianness: %s",getCompilerNameString().c_str(),getCompileDateTime().c_str(),getPlatformNameString().c_str(),(Shared::PlatformByteOrder::isBigEndian() == true ? "big" : "little"));
|
printf("\nCompiled using: %s on: %s platform: %s endianness: %s",getCompilerNameString().c_str(),getCompileDateTime().c_str(),getPlatformNameString().c_str(),(Shared::PlatformByteOrder::isBigEndian() == true ? "big" : "little"));
|
||||||
|
|
||||||
|
|
||||||
|
printf("\n\nData type sizes int8 = %zu int16 = %zu int32 = %zu int64 = %zu\n\n",sizeof(int8),sizeof(int16),sizeof(int32),sizeof(int64));
|
||||||
|
|
||||||
Config::getInstance().setBool("DebugNetworkPackets",true,true);
|
Config::getInstance().setBool("DebugNetworkPackets",true,true);
|
||||||
NetworkMessageIntro data(424336, "mg_version_x","player_x", 3, nmgstOk,444444, 555555, "english");
|
NetworkMessageIntro data(424336, "mg_version_x","player_x", 3, nmgstOk,444444, 555555, "english");
|
||||||
unsigned char *buf = data.packMessage();
|
unsigned char *buf = data.packMessage();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user