Remove AUTO_VAR macro and _toString function (#592)
This commit is contained in:
@@ -51,7 +51,7 @@ HRESULT CDurangoTelemetryManager::Flush()
|
||||
bool CDurangoTelemetryManager::RecordPlayerSessionStart(int iPad)
|
||||
{
|
||||
durangoStats()->generatePlayerSession();
|
||||
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -123,7 +123,7 @@ bool CDurangoTelemetryManager::RecordPlayerSessionExit(int iPad, int exitStatus)
|
||||
bool CDurangoTelemetryManager::RecordLevelStart(int iPad, ESen_FriendOrMatch friendsOrMatch, ESen_CompeteOrCoop competeOrCoop, int difficulty, int numberOfLocalPlayers, int numberOfOnlinePlayers)
|
||||
{
|
||||
CTelemetryManager::RecordLevelStart(iPad, friendsOrMatch, competeOrCoop, difficulty, numberOfLocalPlayers, numberOfOnlinePlayers);
|
||||
|
||||
|
||||
ULONG hr = 0;
|
||||
|
||||
// Grab player info.
|
||||
@@ -191,10 +191,10 @@ bool CDurangoTelemetryManager::RecordLevelStart(int iPad, ESen_FriendOrMatch fri
|
||||
GetSubLevelId(iPad),
|
||||
GetLevelInstanceID(),
|
||||
&ZERO_GUID,
|
||||
friendsOrMatch,
|
||||
competeOrCoop,
|
||||
difficulty,
|
||||
numberOfLocalPlayers,
|
||||
friendsOrMatch,
|
||||
competeOrCoop,
|
||||
difficulty,
|
||||
numberOfLocalPlayers,
|
||||
numberOfOnlinePlayers,
|
||||
&ZERO_GUID
|
||||
);
|
||||
@@ -219,10 +219,10 @@ bool CDurangoTelemetryManager::RecordLevelStart(int iPad, ESen_FriendOrMatch fri
|
||||
// Durango //
|
||||
/* GUID */ guid2str(DurangoStats::getPlayerSession()).c_str(),
|
||||
/* WSTR */ DurangoStats::getMultiplayerCorrelationId(),
|
||||
/* int */ friendsOrMatch,
|
||||
/* int */ competeOrCoop,
|
||||
/* int */ difficulty,
|
||||
/* int */ numberOfLocalPlayers,
|
||||
/* int */ friendsOrMatch,
|
||||
/* int */ competeOrCoop,
|
||||
/* int */ difficulty,
|
||||
/* int */ numberOfLocalPlayers,
|
||||
/* int */ numberOfOnlinePlayers
|
||||
|
||||
);
|
||||
@@ -577,7 +577,7 @@ bool CDurangoTelemetryManager::RecordMediaShareUpload(int iPad, ESen_MediaDestin
|
||||
mediaDestination,
|
||||
mediaType
|
||||
);
|
||||
#else
|
||||
#else
|
||||
ULONG hr = -1;
|
||||
#endif
|
||||
|
||||
@@ -974,11 +974,11 @@ DurangoStats *CDurangoTelemetryManager::durangoStats()
|
||||
wstring CDurangoTelemetryManager::guid2str(LPCGUID guid)
|
||||
{
|
||||
wstring out = L"GUID<";
|
||||
out += _toString<unsigned long>(guid->Data1);
|
||||
out += std::to_wstring(guid->Data1);
|
||||
out += L":";
|
||||
out += _toString<unsigned short>(guid->Data2);
|
||||
out += std::to_wstring(guid->Data2);
|
||||
out += L":";
|
||||
out += _toString<unsigned short>(guid->Data3);
|
||||
out += std::to_wstring(guid->Data3);
|
||||
//out += L":";
|
||||
//out += convStringToWstring(string((char*)&guid->Data4,8));
|
||||
out += L">";
|
||||
|
||||
Reference in New Issue
Block a user