this is a more "clean" conversion to 64 bit than the type-fixups branch, which does borrow some elements from it but has far less find and replace...it is about 98-99% done, notes to follow later

This commit is contained in:
DarthArgus
2017-01-24 03:35:59 +00:00
parent 42b949c3dc
commit 36686348e9
458 changed files with 2282 additions and 2367 deletions
@@ -6,10 +6,10 @@
#include "Request.h"
#include "Response.h"
const unsigned short EMPTY_STRING[1] = { 0 };
const uint16_t EMPTY_STRING[1] = { 0 };
const char * DEFAULT_GAMECODE = "SWG";
const char * DEFAULT_HOST = "localhost";
const unsigned short DEFAULT_PORT = 2000;
const uint16_t DEFAULT_PORT = 2000;
namespace CTService
{
@@ -21,7 +21,7 @@ CTServiceAPI::CTServiceAPI(const char *hostName, const char *game)
//-----------------------------------------------
{
std::vector<const char *> hostArray;
std::vector<short> portArray;
std::vector<int16_t> portArray;
char hostConfig[4096];
if (hostName == nullptr)
hostName = DEFAULT_HOST;
@@ -34,7 +34,7 @@ CTServiceAPI::CTServiceAPI(const char *hostName, const char *game)
{
char * host = ptr;
char * portStr = strchr(host, ':');
unsigned short port = DEFAULT_PORT;
uint16_t port = DEFAULT_PORT;
if (portStr)
{
*portStr++ = 0;