Browse Source

Update1 for MSVC10

Capitalize the ref macro in hsTypes.h due to a name collision.
msvc10
Skoader 13 years ago
parent
commit
626da5ae70
  1. 12
      MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/Apps/plClientPatcher/UruPlayer.cpp
  2. 12
      MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/Apps/plUruLauncher/SelfPatcher.cpp
  3. 4
      MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/CoreLib/hsTypes.h
  4. 10
      MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/CoreLibExe/hsExeError.cpp
  5. 34
      MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/CoreLibExe/hsExeMalloc.cpp
  6. 10
      MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/FeatureLib/pfGameMgr/BlueSpiral/pfGmBlueSpiral.cpp
  7. 12
      MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/FeatureLib/pfGameMgr/ClimbingWall/pfGmClimbingWall.cpp
  8. 22
      MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/FeatureLib/pfGameMgr/Heek/pfGmHeek.cpp
  9. 24
      MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/FeatureLib/pfGameMgr/Marker/pfGmMarker.cpp
  10. 6
      MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/FeatureLib/pfGameMgr/TicTacToe/pfGmTicTacToe.cpp
  11. 10
      MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/FeatureLib/pfGameMgr/VarSync/pfGmVarSync.cpp
  12. 12
      MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/FeatureLib/pfGameMgr/pfGameMgr.cpp
  13. 4
      MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/NucleusLib/pnAsyncCoreExe/Private/Nt/pnAceNt.cpp
  14. 12
      MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/NucleusLib/pnAsyncCoreExe/Private/Nt/pnAceNtSocket.cpp
  15. 20
      MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/NucleusLib/pnAsyncCoreExe/Private/W9x/pnAceW9xSocket.cpp
  16. 2
      MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/NucleusLib/pnAsyncCoreExe/Private/W9x/pnAceW9xThread.cpp
  17. 4
      MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/NucleusLib/pnAsyncCoreExe/Private/Win32/pnAceW32Thread.cpp
  18. 10
      MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/NucleusLib/pnAsyncCoreExe/pnAceCore.cpp
  19. 18
      MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/NucleusLib/pnAsyncCoreExe/pnAceLog.cpp
  20. 4
      MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/NucleusLib/pnIni/Private/pnIniCore.cpp
  21. 2
      MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/NucleusLib/pnIniExe/Private/Win32/pnW32IniChange.cpp
  22. 8
      MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/NucleusLib/pnNetCli/pnNcCli.cpp
  23. 4
      MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/NucleusLib/pnNetProtocol/Private/pnNpCommon.cpp
  24. 2
      MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/NucleusLib/pnSimpleNet/pnSimpleNet.cpp
  25. 2
      MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/NucleusLib/pnUtils/Private/Win32/pnUtW32Addr.cpp
  26. 2
      MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/NucleusLib/pnUtils/Private/pnUtArray.cpp
  27. 12
      MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/NucleusLib/pnUtils/Private/pnUtArray.h
  28. 4
      MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/NucleusLib/pnUtils/Private/pnUtBase64.cpp
  29. 10
      MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/NucleusLib/pnUtils/Private/pnUtCmd.cpp
  30. 10
      MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/NucleusLib/pnUtils/Private/pnUtCrypt.cpp
  31. 18
      MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/NucleusLib/pnUtils/Private/pnUtEndian.h
  32. 6
      MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/NucleusLib/pnUtils/Private/pnUtHash.h
  33. 8
      MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/NucleusLib/pnUtils/Private/pnUtList.h
  34. 10
      MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/NucleusLib/pnUtils/Private/pnUtRef.h
  35. 4
      MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/NucleusLib/pnUtils/Private/pnUtSpareList.cpp
  36. 4
      MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/NucleusLib/pnUtils/Private/pnUtUuid.h
  37. 4
      MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/PubUtilLib/plNetClientComm/plNetClientComm.cpp
  38. 72
      MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/PubUtilLib/plNetGameLib/Private/plNglAuth.cpp
  39. 6
      MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/PubUtilLib/plNetGameLib/Private/plNglCsr.cpp
  40. 10
      MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/PubUtilLib/plNetGameLib/Private/plNglFile.cpp
  41. 20
      MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/PubUtilLib/plNetGameLib/Private/plNglGame.cpp
  42. 8
      MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/PubUtilLib/plNetGameLib/Private/plNglGateKeeper.cpp

12
MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/Apps/plClientPatcher/UruPlayer.cpp

@ -386,9 +386,9 @@ static void DownloadCallback (
) { ) {
s_numConnectFailures = 0; s_numConnectFailures = 0;
ref(result); REF(result);
ref(param); REF(param);
ref(filename); REF(filename);
ManifestFile *mf = (ManifestFile *)param; ManifestFile *mf = (ManifestFile *)param;
if (IS_NET_ERROR(result) && s_running && !s_patchError) { if (IS_NET_ERROR(result) && s_running && !s_patchError) {
@ -732,7 +732,7 @@ static void ThinManifestCallback (
){ ){
s_numConnectFailures = 0; s_numConnectFailures = 0;
ref(group); REF(group);
plLauncherInfo * info = (plLauncherInfo *) param; plLauncherInfo * info = (plLauncherInfo *) param;
char text[256]; char text[256];
@ -831,7 +831,7 @@ static void FileSrvIpAddressCallback (
void * param, void * param,
const wchar addr[] const wchar addr[]
) { ) {
ref(param); REF(param);
NetCliGateKeeperDisconnect(); NetCliGateKeeperDisconnect();
@ -960,7 +960,7 @@ void UruPrepProc (void * param) {
void PlayerStopProc (void * param) { void PlayerStopProc (void * param) {
s_running = false; s_running = false;
plLauncherInfo *info = (plLauncherInfo *) param; plLauncherInfo *info = (plLauncherInfo *) param;
ref(param);
//TerminateProcess(s_pi.hProcess, kExitCodeTerminated); //TerminateProcess(s_pi.hProcess, kExitCodeTerminated);
info->stopCallback(kStatusOk, nil); info->stopCallback(kStatusOk, nil);
} }

12
MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/Apps/plUruLauncher/SelfPatcher.cpp

@ -87,7 +87,7 @@ static wchar s_newPatcherFile[MAX_PATH];
//============================================================================ //============================================================================
static void NetErrorHandler (ENetProtocol protocol, ENetError error) { static void NetErrorHandler (ENetProtocol protocol, ENetError error) {
ref(protocol); REF(protocol);
LogMsg(kLogError, L"NetErr: %s", NetErrorToString(error)); LogMsg(kLogError, L"NetErr: %s", NetErrorToString(error));
if (IS_NET_SUCCESS(s_patchResult)) if (IS_NET_SUCCESS(s_patchResult))
s_patchResult = error; s_patchResult = error;
@ -109,8 +109,8 @@ static void DownloadCallback (
const wchar filename[], const wchar filename[],
hsStream * writer hsStream * writer
) { ) {
ref(param); REF(param);
ref(filename); REF(filename);
if(IS_NET_ERROR(result)) { if(IS_NET_ERROR(result)) {
switch (result) { switch (result) {
@ -158,8 +158,8 @@ static void ManifestCallback (
const NetCliFileManifestEntry manifest[], const NetCliFileManifestEntry manifest[],
unsigned entryCount unsigned entryCount
) { ) {
ref(param); REF(param);
ref(group); REF(group);
if(IS_NET_ERROR(result)) { if(IS_NET_ERROR(result)) {
switch (result) { switch (result) {
@ -208,7 +208,7 @@ static void FileSrvIpAddressCallback (
void * param, void * param,
const wchar addr[] const wchar addr[]
) { ) {
ref(param); REF(param);
NetCliGateKeeperDisconnect(); NetCliGateKeeperDisconnect();

4
MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/CoreLib/hsTypes.h

@ -310,12 +310,12 @@ typedef hsColor32 hsRGBAColor32;
/**************************************************************************** /****************************************************************************
* *
* ref * REF
* References a variable to prevent compiler warnings * References a variable to prevent compiler warnings
* *
***/ ***/
#define ref(a) ((void *)&(a)) #define REF(a) ((void *)&(a))
/**************************************************************************** /****************************************************************************

10
MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/CoreLibExe/hsExeError.cpp

@ -79,8 +79,8 @@ AUTO_INIT_FUNC(hsExeErrorInit) {
//============================================================================ //============================================================================
static void DoAssert (int line, const char file[], const char msg[]) { static void DoAssert (int line, const char file[], const char msg[]) {
ref(line); REF(line);
ref(file); REF(file);
ErrorMinimizeAppWindow(); ErrorMinimizeAppWindow();
@ -252,8 +252,8 @@ void DebugMsgV (const char fmt[], va_list args) {
#else #else
ref(fmt); REF(fmt);
ref(args); REF(args);
#endif #endif
} }
@ -269,7 +269,7 @@ void __cdecl DebugMsg (const char fmt[], ...) {
#else #else
ref(fmt); REF(fmt);
#endif #endif
} }

34
MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/CoreLibExe/hsExeMalloc.cpp

@ -295,7 +295,7 @@ static void __cdecl ReportMem (EMemFile file, bool showDialog, const char fmt[],
//============================================================================ //============================================================================
#ifdef MEM_DEBUG #ifdef MEM_DEBUG
static void __cdecl MemDumpCallback (void * mem, void * param) { static void __cdecl MemDumpCallback (void * mem, void * param) {
ref(MemDumpCallback); REF(MemDumpCallback);
const _CrtMemBlockHeader * pHead = pHdr(mem); const _CrtMemBlockHeader * pHead = pHdr(mem);
MemDumpParam * dumpParam = (MemDumpParam *) param; MemDumpParam * dumpParam = (MemDumpParam *) param;
@ -337,7 +337,7 @@ static void __cdecl OnExitMemDumpCallback (void * mem, size_t) {
//=========================================================================== //===========================================================================
#ifdef MEM_DEBUG #ifdef MEM_DEBUG
static void __cdecl CheckLeaksOnExit () { static void __cdecl CheckLeaksOnExit () {
ref(CheckLeaksOnExit); REF(CheckLeaksOnExit);
if (!ErrorGetOption(kErrOptDisableMemLeakChecking)) { if (!ErrorGetOption(kErrOptDisableMemLeakChecking)) {
MemDumpParam param; MemDumpParam param;
param.file = kMemLeaks; param.file = kMemLeaks;
@ -357,17 +357,17 @@ static int __cdecl CrtAllocHook (
const unsigned char * szFileName, const unsigned char * szFileName,
int nLine int nLine
) { ) {
ref(method); REF(method);
ref(pUserData); REF(pUserData);
ref(nSize); REF(nSize);
ref(nBlockUse); REF(nBlockUse);
ref(lRequest); REF(lRequest);
ref(szFileName); REF(szFileName);
ref(nLine); REF(nLine);
if (nBlockUse == _NORMAL_BLOCK) { if (nBlockUse == _NORMAL_BLOCK) {
int xx = 0; int xx = 0;
ref(xx); REF(xx);
} }
return 1; return 1;
@ -434,7 +434,7 @@ void MemValidateNow () {
//============================================================================ //============================================================================
void MemSetValidation (unsigned on) { void MemSetValidation (unsigned on) {
ref(on); REF(on);
#ifdef MEM_DEBUG #ifdef MEM_DEBUG
#endif // MEM_DEBUG #endif // MEM_DEBUG
@ -459,7 +459,7 @@ void MemPopDisableTracking () {
//============================================================================ //============================================================================
void MemSetColor (unsigned short color) { void MemSetColor (unsigned short color) {
ref(color); REF(color);
#ifdef MEM_DEBUG #ifdef MEM_DEBUG
s_memColor = color & 0xFFFF; s_memColor = color & 0xFFFF;
@ -469,8 +469,8 @@ void MemSetColor (unsigned short color) {
//=========================================================================== //===========================================================================
void * MemAlloc (unsigned bytes, unsigned flags, const char file[], int line) { void * MemAlloc (unsigned bytes, unsigned flags, const char file[], int line) {
ref(file); REF(file);
ref(line); REF(line);
#ifdef MEM_DEBUG #ifdef MEM_DEBUG
unsigned block; unsigned block;
@ -520,7 +520,7 @@ void * MemAlloc (unsigned bytes, unsigned flags, const char file[], int line) {
//============================================================================ //============================================================================
void MemFree (void * ptr, unsigned flags) { void MemFree (void * ptr, unsigned flags) {
ref(flags); REF(flags);
if (!ptr) if (!ptr)
return; return;
@ -535,8 +535,8 @@ void MemFree (void * ptr, unsigned flags) {
//=========================================================================== //===========================================================================
void * MemRealloc (void * ptr, unsigned bytes, unsigned flags, const char file[], int line) { void * MemRealloc (void * ptr, unsigned bytes, unsigned flags, const char file[], int line) {
ref(file); REF(file);
ref(line); REF(line);
#ifdef HS_DEBUGGING #ifdef HS_DEBUGGING
unsigned oldBytes = ptr ? MemSize(ptr) : 0; unsigned oldBytes = ptr ? MemSize(ptr) : 0;

10
MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/FeatureLib/pfGameMgr/BlueSpiral/pfGmBlueSpiral.cpp

@ -150,7 +150,7 @@ void IBlueSpiral::OnOwnerChange (const Srv2Cli_Game_OwnerChange & msg) {
//============================================================================ //============================================================================
void IBlueSpiral::RecvClothOrder (const Srv2Cli_BlueSpiral_ClothOrder & msg, void * param) { void IBlueSpiral::RecvClothOrder (const Srv2Cli_BlueSpiral_ClothOrder & msg, void * param) {
ref(param); REF(param);
pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg); pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg);
gameCliMsg->Set(gameCli, msg); gameCliMsg->Set(gameCli, msg);
@ -159,7 +159,7 @@ void IBlueSpiral::RecvClothOrder (const Srv2Cli_BlueSpiral_ClothOrder & msg, voi
//============================================================================ //============================================================================
void IBlueSpiral::RecvSuccessfulHit (const Srv2Cli_BlueSpiral_SuccessfulHit & msg, void * param) { void IBlueSpiral::RecvSuccessfulHit (const Srv2Cli_BlueSpiral_SuccessfulHit & msg, void * param) {
ref(param); REF(param);
pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg); pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg);
gameCliMsg->Set(gameCli, msg); gameCliMsg->Set(gameCli, msg);
@ -168,7 +168,7 @@ void IBlueSpiral::RecvSuccessfulHit (const Srv2Cli_BlueSpiral_SuccessfulHit & ms
//============================================================================ //============================================================================
void IBlueSpiral::RecvGameWon (const Srv2Cli_BlueSpiral_GameWon & msg, void * param) { void IBlueSpiral::RecvGameWon (const Srv2Cli_BlueSpiral_GameWon & msg, void * param) {
ref(param); REF(param);
pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg); pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg);
gameCliMsg->Set(gameCli, msg); gameCliMsg->Set(gameCli, msg);
@ -177,7 +177,7 @@ void IBlueSpiral::RecvGameWon (const Srv2Cli_BlueSpiral_GameWon & msg, void * pa
//============================================================================ //============================================================================
void IBlueSpiral::RecvGameOver (const Srv2Cli_BlueSpiral_GameOver & msg, void * param) { void IBlueSpiral::RecvGameOver (const Srv2Cli_BlueSpiral_GameOver & msg, void * param) {
ref(param); REF(param);
pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg); pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg);
gameCliMsg->Set(gameCli, msg); gameCliMsg->Set(gameCli, msg);
@ -186,7 +186,7 @@ void IBlueSpiral::RecvGameOver (const Srv2Cli_BlueSpiral_GameOver & msg, void *
//============================================================================ //============================================================================
void IBlueSpiral::RecvGameStarted (const Srv2Cli_BlueSpiral_GameStarted & msg, void * param) { void IBlueSpiral::RecvGameStarted (const Srv2Cli_BlueSpiral_GameStarted & msg, void * param) {
ref(param); REF(param);
pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg); pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg);
gameCliMsg->Set(gameCli, msg); gameCliMsg->Set(gameCli, msg);

12
MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/FeatureLib/pfGameMgr/ClimbingWall/pfGmClimbingWall.cpp

@ -151,7 +151,7 @@ void IClimbingWall::OnOwnerChange (const Srv2Cli_Game_OwnerChange & msg) {
//============================================================================ //============================================================================
void IClimbingWall::RecvNumBlockersChanged (const Srv2Cli_ClimbingWall_NumBlockersChanged & msg, void * param) { void IClimbingWall::RecvNumBlockersChanged (const Srv2Cli_ClimbingWall_NumBlockersChanged & msg, void * param) {
ref(param); REF(param);
pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg); pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg);
gameCliMsg->Set(gameCli, msg); gameCliMsg->Set(gameCli, msg);
@ -160,7 +160,7 @@ void IClimbingWall::RecvNumBlockersChanged (const Srv2Cli_ClimbingWall_NumBlocke
//============================================================================ //============================================================================
void IClimbingWall::RecvReady (const Srv2Cli_ClimbingWall_Ready & msg, void * param) { void IClimbingWall::RecvReady (const Srv2Cli_ClimbingWall_Ready & msg, void * param) {
ref(param); REF(param);
pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg); pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg);
gameCliMsg->Set(gameCli, msg); gameCliMsg->Set(gameCli, msg);
@ -169,7 +169,7 @@ void IClimbingWall::RecvReady (const Srv2Cli_ClimbingWall_Ready & msg, void * pa
//============================================================================ //============================================================================
void IClimbingWall::RecvBlockersChanged (const Srv2Cli_ClimbingWall_BlockersChanged & msg, void * param) { void IClimbingWall::RecvBlockersChanged (const Srv2Cli_ClimbingWall_BlockersChanged & msg, void * param) {
ref (param); REF(param);
pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg); pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg);
gameCliMsg->Set(gameCli, msg); gameCliMsg->Set(gameCli, msg);
@ -178,7 +178,7 @@ void IClimbingWall::RecvBlockersChanged (const Srv2Cli_ClimbingWall_BlockersChan
//============================================================================ //============================================================================
void IClimbingWall::RecvPlayerEntered (const Srv2Cli_ClimbingWall_PlayerEntered & msg, void * param) { void IClimbingWall::RecvPlayerEntered (const Srv2Cli_ClimbingWall_PlayerEntered & msg, void * param) {
ref (param); REF(param);
pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg); pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg);
gameCliMsg->Set(gameCli, msg); gameCliMsg->Set(gameCli, msg);
@ -187,7 +187,7 @@ void IClimbingWall::RecvPlayerEntered (const Srv2Cli_ClimbingWall_PlayerEntered
//============================================================================ //============================================================================
void IClimbingWall::RecvSuitMachineLocked (const Srv2Cli_ClimbingWall_SuitMachineLocked & msg, void * param) { void IClimbingWall::RecvSuitMachineLocked (const Srv2Cli_ClimbingWall_SuitMachineLocked & msg, void * param) {
ref (param); REF(param);
pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg); pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg);
gameCliMsg->Set(gameCli, msg); gameCliMsg->Set(gameCli, msg);
@ -196,7 +196,7 @@ void IClimbingWall::RecvSuitMachineLocked (const Srv2Cli_ClimbingWall_SuitMachin
//============================================================================ //============================================================================
void IClimbingWall::RecvGameOver (const Srv2Cli_ClimbingWall_GameOver & msg, void * param) { void IClimbingWall::RecvGameOver (const Srv2Cli_ClimbingWall_GameOver & msg, void * param) {
ref (param); REF(param);
pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg); pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg);
gameCliMsg->Set(gameCli, msg); gameCliMsg->Set(gameCli, msg);

22
MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/FeatureLib/pfGameMgr/Heek/pfGmHeek.cpp

@ -151,7 +151,7 @@ void IHeek::OnOwnerChange (const Srv2Cli_Game_OwnerChange & msg) {
//============================================================================ //============================================================================
void IHeek::RecvPlayGame (const Srv2Cli_Heek_PlayGame & msg, void * param) { void IHeek::RecvPlayGame (const Srv2Cli_Heek_PlayGame & msg, void * param) {
ref(param); REF(param);
pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg); pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg);
gameCliMsg->Set(gameCli, msg); gameCliMsg->Set(gameCli, msg);
gameCliMsg->Send(gameCli->GetReceiver()); gameCliMsg->Send(gameCli->GetReceiver());
@ -159,7 +159,7 @@ void IHeek::RecvPlayGame (const Srv2Cli_Heek_PlayGame & msg, void * param) {
//============================================================================ //============================================================================
void IHeek::RecvGoodbye (const Srv2Cli_Heek_Goodbye & msg, void * param) { void IHeek::RecvGoodbye (const Srv2Cli_Heek_Goodbye & msg, void * param) {
ref(param); REF(param);
pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg); pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg);
gameCliMsg->Set(gameCli, msg); gameCliMsg->Set(gameCli, msg);
gameCliMsg->Send(gameCli->GetReceiver()); gameCliMsg->Send(gameCli->GetReceiver());
@ -167,7 +167,7 @@ void IHeek::RecvGoodbye (const Srv2Cli_Heek_Goodbye & msg, void * param) {
//============================================================================ //============================================================================
void IHeek::RecvWelcome (const Srv2Cli_Heek_Welcome & msg, void * param) { void IHeek::RecvWelcome (const Srv2Cli_Heek_Welcome & msg, void * param) {
ref(param); REF(param);
pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg); pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg);
gameCliMsg->Set(gameCli, msg); gameCliMsg->Set(gameCli, msg);
gameCliMsg->Send(gameCli->GetReceiver()); gameCliMsg->Send(gameCli->GetReceiver());
@ -175,7 +175,7 @@ void IHeek::RecvWelcome (const Srv2Cli_Heek_Welcome & msg, void * param) {
//============================================================================ //============================================================================
void IHeek::RecvDrop (const Srv2Cli_Heek_Drop & msg, void * param) { void IHeek::RecvDrop (const Srv2Cli_Heek_Drop & msg, void * param) {
ref(param); REF(param);
pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg); pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg);
gameCliMsg->Set(gameCli, msg); gameCliMsg->Set(gameCli, msg);
gameCliMsg->Send(gameCli->GetReceiver()); gameCliMsg->Send(gameCli->GetReceiver());
@ -183,7 +183,7 @@ void IHeek::RecvDrop (const Srv2Cli_Heek_Drop & msg, void * param) {
//============================================================================ //============================================================================
void IHeek::RecvSetup (const Srv2Cli_Heek_Setup & msg, void * param) { void IHeek::RecvSetup (const Srv2Cli_Heek_Setup & msg, void * param) {
ref(param); REF(param);
pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg); pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg);
gameCliMsg->Set(gameCli, msg); gameCliMsg->Set(gameCli, msg);
gameCliMsg->Send(gameCli->GetReceiver()); gameCliMsg->Send(gameCli->GetReceiver());
@ -191,7 +191,7 @@ void IHeek::RecvSetup (const Srv2Cli_Heek_Setup & msg, void * param) {
//============================================================================ //============================================================================
void IHeek::RecvLightState (const Srv2Cli_Heek_LightState & msg, void * param) { void IHeek::RecvLightState (const Srv2Cli_Heek_LightState & msg, void * param) {
ref(param); REF(param);
pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg); pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg);
gameCliMsg->Set(gameCli, msg); gameCliMsg->Set(gameCli, msg);
gameCliMsg->Send(gameCli->GetReceiver()); gameCliMsg->Send(gameCli->GetReceiver());
@ -199,7 +199,7 @@ void IHeek::RecvLightState (const Srv2Cli_Heek_LightState & msg, void * param) {
//============================================================================ //============================================================================
void IHeek::RecvInterfaceState (const Srv2Cli_Heek_InterfaceState & msg, void * param) { void IHeek::RecvInterfaceState (const Srv2Cli_Heek_InterfaceState & msg, void * param) {
ref(param); REF(param);
pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg); pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg);
gameCliMsg->Set(gameCli, msg); gameCliMsg->Set(gameCli, msg);
gameCliMsg->Send(gameCli->GetReceiver()); gameCliMsg->Send(gameCli->GetReceiver());
@ -207,7 +207,7 @@ void IHeek::RecvInterfaceState (const Srv2Cli_Heek_InterfaceState & msg, void *
//============================================================================ //============================================================================
void IHeek::RecvCountdownState (const Srv2Cli_Heek_CountdownState & msg, void * param) { void IHeek::RecvCountdownState (const Srv2Cli_Heek_CountdownState & msg, void * param) {
ref(param); REF(param);
pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg); pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg);
gameCliMsg->Set(gameCli, msg); gameCliMsg->Set(gameCli, msg);
gameCliMsg->Send(gameCli->GetReceiver()); gameCliMsg->Send(gameCli->GetReceiver());
@ -215,7 +215,7 @@ void IHeek::RecvCountdownState (const Srv2Cli_Heek_CountdownState & msg, void *
//============================================================================ //============================================================================
void IHeek::RecvWinLose (const Srv2Cli_Heek_WinLose & msg, void * param) { void IHeek::RecvWinLose (const Srv2Cli_Heek_WinLose & msg, void * param) {
ref(param); REF(param);
pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg); pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg);
gameCliMsg->Set(gameCli, msg); gameCliMsg->Set(gameCli, msg);
gameCliMsg->Send(gameCli->GetReceiver()); gameCliMsg->Send(gameCli->GetReceiver());
@ -223,7 +223,7 @@ void IHeek::RecvWinLose (const Srv2Cli_Heek_WinLose & msg, void * param) {
//============================================================================ //============================================================================
void IHeek::RecvGameWin (const Srv2Cli_Heek_GameWin & msg, void * param) { void IHeek::RecvGameWin (const Srv2Cli_Heek_GameWin & msg, void * param) {
ref(param); REF(param);
pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg); pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg);
gameCliMsg->Set(gameCli, msg); gameCliMsg->Set(gameCli, msg);
gameCliMsg->Send(gameCli->GetReceiver()); gameCliMsg->Send(gameCli->GetReceiver());
@ -231,7 +231,7 @@ void IHeek::RecvGameWin (const Srv2Cli_Heek_GameWin & msg, void * param) {
//============================================================================ //============================================================================
void IHeek::RecvPointUpdate (const Srv2Cli_Heek_PointUpdate & msg, void * param) { void IHeek::RecvPointUpdate (const Srv2Cli_Heek_PointUpdate & msg, void * param) {
ref(param); REF(param);
pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg); pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg);
gameCliMsg->Set(gameCli, msg); gameCliMsg->Set(gameCli, msg);
gameCliMsg->Send(gameCli->GetReceiver()); gameCliMsg->Send(gameCli->GetReceiver());

24
MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/FeatureLib/pfGameMgr/Marker/pfGmMarker.cpp

@ -175,7 +175,7 @@ void IMarker::RecvTeamAssigned (const Srv2Cli_Marker_TeamAssigned & msg, void *
//============================================================================ //============================================================================
void IMarker::RecvGameType (const Srv2Cli_Marker_GameType & msg, void * param) { void IMarker::RecvGameType (const Srv2Cli_Marker_GameType & msg, void * param) {
ref(param); REF(param);
pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg); pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg);
gameCliMsg->Set(gameCli, msg); gameCliMsg->Set(gameCli, msg);
@ -184,7 +184,7 @@ void IMarker::RecvGameType (const Srv2Cli_Marker_GameType & msg, void * param) {
//============================================================================ //============================================================================
void IMarker::RecvGameStarted (const Srv2Cli_Marker_GameStarted & msg, void * param) { void IMarker::RecvGameStarted (const Srv2Cli_Marker_GameStarted & msg, void * param) {
ref(param); REF(param);
pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg); pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg);
gameCliMsg->Set(gameCli, msg); gameCliMsg->Set(gameCli, msg);
@ -193,7 +193,7 @@ void IMarker::RecvGameStarted (const Srv2Cli_Marker_GameStarted & msg, void * pa
//============================================================================ //============================================================================
void IMarker::RecvGamePaused (const Srv2Cli_Marker_GamePaused & msg, void * param) { void IMarker::RecvGamePaused (const Srv2Cli_Marker_GamePaused & msg, void * param) {
ref(param); REF(param);
pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg); pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg);
gameCliMsg->Set(gameCli, msg); gameCliMsg->Set(gameCli, msg);
@ -202,7 +202,7 @@ void IMarker::RecvGamePaused (const Srv2Cli_Marker_GamePaused & msg, void * para
//============================================================================ //============================================================================
void IMarker::RecvGameReset (const Srv2Cli_Marker_GameReset & msg, void * param) { void IMarker::RecvGameReset (const Srv2Cli_Marker_GameReset & msg, void * param) {
ref(param); REF(param);
pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg); pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg);
gameCliMsg->Set(gameCli, msg); gameCliMsg->Set(gameCli, msg);
@ -211,7 +211,7 @@ void IMarker::RecvGameReset (const Srv2Cli_Marker_GameReset & msg, void * param)
//============================================================================ //============================================================================
void IMarker::RecvGameOver (const Srv2Cli_Marker_GameOver & msg, void * param) { void IMarker::RecvGameOver (const Srv2Cli_Marker_GameOver & msg, void * param) {
ref(param); REF(param);
pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg); pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg);
gameCliMsg->Set(gameCli, msg); gameCliMsg->Set(gameCli, msg);
@ -220,7 +220,7 @@ void IMarker::RecvGameOver (const Srv2Cli_Marker_GameOver & msg, void * param) {
//============================================================================ //============================================================================
void IMarker::RecvGameNameChanged (const Srv2Cli_Marker_GameNameChanged & msg, void * param) { void IMarker::RecvGameNameChanged (const Srv2Cli_Marker_GameNameChanged & msg, void * param) {
ref(param); REF(param);
pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg); pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg);
gameCliMsg->Set(gameCli, msg); gameCliMsg->Set(gameCli, msg);
@ -229,7 +229,7 @@ void IMarker::RecvGameNameChanged (const Srv2Cli_Marker_GameNameChanged & msg, v
//============================================================================ //============================================================================
void IMarker::RecvTimeLimitChanged (const Srv2Cli_Marker_TimeLimitChanged & msg, void * param) { void IMarker::RecvTimeLimitChanged (const Srv2Cli_Marker_TimeLimitChanged & msg, void * param) {
ref(param); REF(param);
pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg); pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg);
gameCliMsg->Set(gameCli, msg); gameCliMsg->Set(gameCli, msg);
@ -238,7 +238,7 @@ void IMarker::RecvTimeLimitChanged (const Srv2Cli_Marker_TimeLimitChanged & msg,
//============================================================================ //============================================================================
void IMarker::RecvGameDeleted (const Srv2Cli_Marker_GameDeleted & msg, void * param) { void IMarker::RecvGameDeleted (const Srv2Cli_Marker_GameDeleted & msg, void * param) {
ref(param); REF(param);
pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg); pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg);
gameCliMsg->Set(gameCli, msg); gameCliMsg->Set(gameCli, msg);
@ -250,7 +250,7 @@ void IMarker::RecvGameDeleted (const Srv2Cli_Marker_GameDeleted & msg, void * pa
//============================================================================ //============================================================================
void IMarker::RecvMarkerAdded (const Srv2Cli_Marker_MarkerAdded & msg, void * param) { void IMarker::RecvMarkerAdded (const Srv2Cli_Marker_MarkerAdded & msg, void * param) {
ref(param); REF(param);
pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg); pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg);
gameCliMsg->Set(gameCli, msg); gameCliMsg->Set(gameCli, msg);
@ -259,7 +259,7 @@ void IMarker::RecvMarkerAdded (const Srv2Cli_Marker_MarkerAdded & msg, void * pa
//============================================================================ //============================================================================
void IMarker::RecvMarkerDeleted (const Srv2Cli_Marker_MarkerDeleted & msg, void * param) { void IMarker::RecvMarkerDeleted (const Srv2Cli_Marker_MarkerDeleted & msg, void * param) {
ref(param); REF(param);
pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg); pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg);
gameCliMsg->Set(gameCli, msg); gameCliMsg->Set(gameCli, msg);
@ -268,7 +268,7 @@ void IMarker::RecvMarkerDeleted (const Srv2Cli_Marker_MarkerDeleted & msg, void
//============================================================================ //============================================================================
void IMarker::RecvMarkerNameChanged (const Srv2Cli_Marker_MarkerNameChanged & msg, void * param) { void IMarker::RecvMarkerNameChanged (const Srv2Cli_Marker_MarkerNameChanged & msg, void * param) {
ref(param); REF(param);
pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg); pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg);
gameCliMsg->Set(gameCli, msg); gameCliMsg->Set(gameCli, msg);
@ -277,7 +277,7 @@ void IMarker::RecvMarkerNameChanged (const Srv2Cli_Marker_MarkerNameChanged & ms
//============================================================================ //============================================================================
void IMarker::RecvMarkerCaptured (const Srv2Cli_Marker_MarkerCaptured & msg, void * param) { void IMarker::RecvMarkerCaptured (const Srv2Cli_Marker_MarkerCaptured & msg, void * param) {
ref(param); REF(param);
pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg); pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg);
gameCliMsg->Set(gameCli, msg); gameCliMsg->Set(gameCli, msg);

6
MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/FeatureLib/pfGameMgr/TicTacToe/pfGmTicTacToe.cpp

@ -153,7 +153,7 @@ void ITicTacToe::OnOwnerChange (const Srv2Cli_Game_OwnerChange & msg) {
//============================================================================ //============================================================================
void ITicTacToe::RecvGameStarted (const Srv2Cli_TTT_GameStarted & msg, void * param) { void ITicTacToe::RecvGameStarted (const Srv2Cli_TTT_GameStarted & msg, void * param) {
ref(param); REF(param);
// player that goes first is shown as X's. // player that goes first is shown as X's.
if (msg.yourTurn) { if (msg.yourTurn) {
@ -172,7 +172,7 @@ void ITicTacToe::RecvGameStarted (const Srv2Cli_TTT_GameStarted & msg, void * pa
//============================================================================ //============================================================================
void ITicTacToe::RecvGameOver (const Srv2Cli_TTT_GameOver & msg, void * param) { void ITicTacToe::RecvGameOver (const Srv2Cli_TTT_GameOver & msg, void * param) {
ref(param); REF(param);
pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg); pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg);
gameCliMsg->Set(gameCli, msg); gameCliMsg->Set(gameCli, msg);
@ -183,7 +183,7 @@ void ITicTacToe::RecvGameOver (const Srv2Cli_TTT_GameOver & msg, void * param) {
//============================================================================ //============================================================================
void ITicTacToe::RecvMoveMade (const Srv2Cli_TTT_MoveMade & msg, void * param) { void ITicTacToe::RecvMoveMade (const Srv2Cli_TTT_MoveMade & msg, void * param) {
ref(param); REF(param);
// Update the board with the appropriate piece // Update the board with the appropriate piece
if (msg.playerId == NetCommGetPlayer()->playerInt) if (msg.playerId == NetCommGetPlayer()->playerInt)

10
MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/FeatureLib/pfGameMgr/VarSync/pfGmVarSync.cpp

@ -150,7 +150,7 @@ void IVarSync::OnOwnerChange (const Srv2Cli_Game_OwnerChange & msg) {
//============================================================================ //============================================================================
void IVarSync::RecvStringVarChanged (const Srv2Cli_VarSync_StringVarChanged & msg, void * param) { void IVarSync::RecvStringVarChanged (const Srv2Cli_VarSync_StringVarChanged & msg, void * param) {
ref(param); REF(param);
pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg); pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg);
gameCliMsg->Set(gameCli, msg); gameCliMsg->Set(gameCli, msg);
@ -159,7 +159,7 @@ void IVarSync::RecvStringVarChanged (const Srv2Cli_VarSync_StringVarChanged & ms
//============================================================================ //============================================================================
void IVarSync::RecvNumericVarChanged (const Srv2Cli_VarSync_NumericVarChanged & msg, void * param) { void IVarSync::RecvNumericVarChanged (const Srv2Cli_VarSync_NumericVarChanged & msg, void * param) {
ref(param); REF(param);
pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg); pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg);
gameCliMsg->Set(gameCli, msg); gameCliMsg->Set(gameCli, msg);
@ -168,7 +168,7 @@ void IVarSync::RecvNumericVarChanged (const Srv2Cli_VarSync_NumericVarChanged &
//============================================================================ //============================================================================
void IVarSync::RecvAllVarsSent (const Srv2Cli_VarSync_AllVarsSent & msg, void * param) { void IVarSync::RecvAllVarsSent (const Srv2Cli_VarSync_AllVarsSent & msg, void * param) {
ref(param); REF(param);
pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg); pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg);
gameCliMsg->Set(gameCli, msg); gameCliMsg->Set(gameCli, msg);
@ -177,7 +177,7 @@ void IVarSync::RecvAllVarsSent (const Srv2Cli_VarSync_AllVarsSent & msg, void *
//============================================================================ //============================================================================
void IVarSync::RecvStringVarCreated (const Srv2Cli_VarSync_StringVarCreated & msg, void * param) { void IVarSync::RecvStringVarCreated (const Srv2Cli_VarSync_StringVarCreated & msg, void * param) {
ref(param); REF(param);
pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg); pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg);
gameCliMsg->Set(gameCli, msg); gameCliMsg->Set(gameCli, msg);
@ -186,7 +186,7 @@ void IVarSync::RecvStringVarCreated (const Srv2Cli_VarSync_StringVarCreated & ms
//============================================================================ //============================================================================
void IVarSync::RecvNumericVarCreated (const Srv2Cli_VarSync_NumericVarCreated & msg, void * param) { void IVarSync::RecvNumericVarCreated (const Srv2Cli_VarSync_NumericVarCreated & msg, void * param) {
ref(param); REF(param);
pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg); pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg);
gameCliMsg->Set(gameCli, msg); gameCliMsg->Set(gameCli, msg);

12
MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/FeatureLib/pfGameMgr/pfGameMgr.cpp

@ -205,7 +205,7 @@ void IGameMgr::RecvGameInstance (const Srv2Cli_GameMgr_GameInstance & msg, void
//============================================================================ //============================================================================
void IGameMgr::RecvInviteReceived (const Srv2Cli_GameMgr_InviteReceived & msg, void * param) { void IGameMgr::RecvInviteReceived (const Srv2Cli_GameMgr_InviteReceived & msg, void * param) {
ref(param); REF(param);
pfGameMgrMsg * gameMgrMsg = NEWZERO(pfGameMgrMsg); pfGameMgrMsg * gameMgrMsg = NEWZERO(pfGameMgrMsg);
gameMgrMsg->Set(msg); gameMgrMsg->Set(msg);
@ -216,7 +216,7 @@ void IGameMgr::RecvInviteReceived (const Srv2Cli_GameMgr_InviteReceived & msg, v
//============================================================================ //============================================================================
void IGameMgr::RecvInviteRevoked (const Srv2Cli_GameMgr_InviteRevoked & msg, void * param) { void IGameMgr::RecvInviteRevoked (const Srv2Cli_GameMgr_InviteRevoked & msg, void * param) {
ref(param); REF(param);
pfGameMgrMsg * gameMgrMsg = NEWZERO(pfGameMgrMsg); pfGameMgrMsg * gameMgrMsg = NEWZERO(pfGameMgrMsg);
gameMgrMsg->Set(msg); gameMgrMsg->Set(msg);
@ -587,7 +587,7 @@ void IGameCli::Recv (GameMsgHeader * msg, void * param) {
//============================================================================ //============================================================================
void IGameCli::RecvPlayerJoined (const Srv2Cli_Game_PlayerJoined & msg, void * param) { void IGameCli::RecvPlayerJoined (const Srv2Cli_Game_PlayerJoined & msg, void * param) {
ref(param); REF(param);
++playerCount; ++playerCount;
gameCli->OnPlayerJoined(msg); gameCli->OnPlayerJoined(msg);
@ -595,7 +595,7 @@ void IGameCli::RecvPlayerJoined (const Srv2Cli_Game_PlayerJoined & msg, void * p
//============================================================================ //============================================================================
void IGameCli::RecvPlayerLeft (const Srv2Cli_Game_PlayerLeft & msg, void * param) { void IGameCli::RecvPlayerLeft (const Srv2Cli_Game_PlayerLeft & msg, void * param) {
ref(param); REF(param);
--playerCount; --playerCount;
gameCli->OnPlayerLeft(msg); gameCli->OnPlayerLeft(msg);
@ -603,14 +603,14 @@ void IGameCli::RecvPlayerLeft (const Srv2Cli_Game_PlayerLeft & msg, void * param
//============================================================================ //============================================================================
void IGameCli::RecvInviteFailed (const Srv2Cli_Game_InviteFailed & msg, void * param) { void IGameCli::RecvInviteFailed (const Srv2Cli_Game_InviteFailed & msg, void * param) {
ref(param); REF(param);
gameCli->OnInviteFailed(msg); gameCli->OnInviteFailed(msg);
} }
//============================================================================ //============================================================================
void IGameCli::RecvOwnerChange (const Srv2Cli_Game_OwnerChange & msg, void * param) { void IGameCli::RecvOwnerChange (const Srv2Cli_Game_OwnerChange & msg, void * param) {
ref(param); REF(param);
gameCli->OnOwnerChange(msg); gameCli->OnOwnerChange(msg);
} }

4
MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/NucleusLib/pnAsyncCoreExe/Private/Nt/pnAceNt.cpp

@ -244,7 +244,7 @@ static void INtOpDispatch (
//=========================================================================== //===========================================================================
static unsigned THREADCALL NtWorkerThreadProc (AsyncThread * thread) { static unsigned THREADCALL NtWorkerThreadProc (AsyncThread * thread) {
ref(thread); REF(thread);
ThreadDenyBlock(); ThreadDenyBlock();
@ -340,7 +340,7 @@ void INtConnCompleteOperation (NtObject * ntObj) {
return; return;
DWORD err = GetLastError(); DWORD err = GetLastError();
ref(err); REF(err);
switch (ntObj->ioType) { switch (ntObj->ioType) {
case kNtFile: case kNtFile:
INtFileDelete((NtFile *) ntObj); INtFileDelete((NtFile *) ntObj);

12
MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/NucleusLib/pnAsyncCoreExe/Private/Nt/pnAceNtSocket.cpp

@ -806,10 +806,10 @@ static void __cdecl DumpInvalidData (
const char fmt[], const char fmt[],
... ...
) { ) {
ref(filename); REF(filename);
ref(bytes); REF(bytes);
ref(data); REF(data);
ref(fmt); REF(fmt);
wchar path[MAX_PATH]; wchar path[MAX_PATH];
PathGetProgramDirectory(path, arrsize(path)); PathGetProgramDirectory(path, arrsize(path));
@ -947,7 +947,7 @@ void INtSockDelete (
sock->notifyProc = nil; sock->notifyProc = nil;
notifyProc((AsyncSocket) sock, kNotifySocketDisconnect, nil, &sock->userState); notifyProc((AsyncSocket) sock, kNotifySocketDisconnect, nil, &sock->userState);
DWORD err = GetLastError(); DWORD err = GetLastError();
ref(err); REF(err);
} }
else { else {
// Since the no application notification procedure was // Since the no application notification procedure was
@ -1016,7 +1016,7 @@ void INtSocketOpCompleteSocketRead (
if (sock->connType == kConnTypeCliToAuth) { if (sock->connType == kConnTypeCliToAuth) {
int x = 0; int x = 0;
ref(x); REF(x);
} }
if (!SocketDispatchRead(sock)) if (!SocketDispatchRead(sock))

20
MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/NucleusLib/pnAsyncCoreExe/Private/W9x/pnAceW9xSocket.cpp

@ -1008,8 +1008,8 @@ void W9xSocketConnect (
unsigned localPort unsigned localPort
) { ) {
// Not supported for W9X // Not supported for W9X
ref(connectMs); REF(connectMs);
ref(localPort); REF(localPort);
// If necessary, startup the window and message queue // If necessary, startup the window and message queue
HWND window = StartupWindow(); HWND window = StartupWindow();
@ -1155,8 +1155,8 @@ unsigned W9xSocketStartListening (
const NetAddress & listenAddr, const NetAddress & listenAddr,
FAsyncNotifySocketProc notifyProc FAsyncNotifySocketProc notifyProc
) { ) {
ref(listenAddr); REF(listenAddr);
ref(notifyProc); REF(notifyProc);
return 0; return 0;
} }
@ -1166,8 +1166,8 @@ void W9xSocketStopListening (
const NetAddress & listenAddr, const NetAddress & listenAddr,
FAsyncNotifySocketProc notifyProc FAsyncNotifySocketProc notifyProc
) { ) {
ref(listenAddr); REF(listenAddr);
ref(notifyProc); REF(notifyProc);
} }
//=========================================================================== //===========================================================================
@ -1190,8 +1190,8 @@ void W9xSocketSetNotifyProc (
AsyncSocket sock, AsyncSocket sock,
FAsyncNotifySocketProc notifyProc FAsyncNotifySocketProc notifyProc
) { ) {
ref(sock); REF(sock);
ref(notifyProc); REF(notifyProc);
// This provider does not allow changing the notification procedure // This provider does not allow changing the notification procedure
FATAL("SocketSetNotifyProc"); FATAL("SocketSetNotifyProc");
@ -1204,8 +1204,8 @@ void W9xSocketSetBacklogAlloc (
) { ) {
// This provider does not limit the maximum backlog allocation // This provider does not limit the maximum backlog allocation
ref(sock); REF(sock);
ref(bufferSize); REF(bufferSize);
} }

2
MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/NucleusLib/pnAsyncCoreExe/Private/W9x/pnAceW9xThread.cpp

@ -392,7 +392,7 @@ bool W9xThreadWaitId (
AsyncId asyncId, AsyncId asyncId,
unsigned timeoutMs unsigned timeoutMs
) { ) {
ref(file); REF(file);
// Find a pending I/O operation with the given id // Find a pending I/O operation with the given id
s_critSect.Enter(); s_critSect.Enter();

4
MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/NucleusLib/pnAsyncCoreExe/Private/Win32/pnAceW32Thread.cpp

@ -104,7 +104,7 @@ AsyncThreadTaskList::~AsyncThreadTaskList () {
//=========================================================================== //===========================================================================
static unsigned THREADCALL ThreadTaskProc (AsyncThread * thread) { static unsigned THREADCALL ThreadTaskProc (AsyncThread * thread) {
ref(thread); REF(thread);
PerfAddCounter(kAsyncPerfThreadTaskThreadsActive, 1); PerfAddCounter(kAsyncPerfThreadTaskThreadsActive, 1);
@ -266,7 +266,7 @@ void AsyncThreadTaskAdd (
ASSERT(taskList); ASSERT(taskList);
ASSERT(callback); ASSERT(callback);
ASSERT(priority == kThreadTaskPriorityNormal); ASSERT(priority == kThreadTaskPriorityNormal);
ref(priority); REF(priority);
// Allocate a new task record // Allocate a new task record
ThreadTask * task = NEW(ThreadTask); ThreadTask * task = NEW(ThreadTask);

10
MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/NucleusLib/pnAsyncCoreExe/pnAceCore.cpp

@ -91,7 +91,7 @@ static void DoTransgamingCheck () {
//=========================================================================== //===========================================================================
static void IAsyncInitUseW9x () { static void IAsyncInitUseW9x () {
ref(IAsyncInitUseW9x); REF(IAsyncInitUseW9x);
#ifdef HS_BUILD_FOR_WIN32 #ifdef HS_BUILD_FOR_WIN32
W9xGetApi(&g_api); W9xGetApi(&g_api);
#else #else
@ -101,7 +101,7 @@ static void IAsyncInitUseW9x () {
//=========================================================================== //===========================================================================
static void IAsyncInitUseNt () { static void IAsyncInitUseNt () {
ref(IAsyncInitUseNt); REF(IAsyncInitUseNt);
#ifdef HS_BUILD_FOR_WIN32 #ifdef HS_BUILD_FOR_WIN32
NtGetApi(&g_api); NtGetApi(&g_api);
#else #else
@ -111,7 +111,7 @@ static void IAsyncInitUseNt () {
//=========================================================================== //===========================================================================
static void IAsyncInitUseUnix () { static void IAsyncInitUseUnix () {
ref(IAsyncInitUseUnix); REF(IAsyncInitUseUnix);
#ifdef HS_BUILD_FOR_UNIX #ifdef HS_BUILD_FOR_UNIX
#error Unix I/O not implemented yet #error Unix I/O not implemented yet
UxGetApi(&g_api); UxGetApi(&g_api);
@ -122,7 +122,7 @@ static void IAsyncInitUseUnix () {
//=========================================================================== //===========================================================================
static void IAsyncInitForClient () { static void IAsyncInitForClient () {
ref(IAsyncInitForClient); REF(IAsyncInitForClient);
#ifdef HS_BUILD_FOR_WIN32 #ifdef HS_BUILD_FOR_WIN32
DoTransgamingCheck(); DoTransgamingCheck();
if (s_transgaming) { if (s_transgaming) {
@ -140,7 +140,7 @@ static void IAsyncInitForClient () {
//=========================================================================== //===========================================================================
static void IAsyncInitForServer () { static void IAsyncInitForServer () {
ref(IAsyncInitForServer); REF(IAsyncInitForServer);
#ifdef HS_BUILD_FOR_WIN32 #ifdef HS_BUILD_FOR_WIN32
IAsyncInitUseNt(); IAsyncInitUseNt();
#elif HS_BUILD_FOR_UNIX #elif HS_BUILD_FOR_UNIX

18
MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/NucleusLib/pnAsyncCoreExe/pnAceLog.cpp

@ -143,8 +143,8 @@ static void LogFileNotifyProc (
AsyncNotifyFile * notify, AsyncNotifyFile * notify,
void ** userState void ** userState
) { ) {
ref(file); REF(file);
ref(userState); REF(userState);
switch (code) { switch (code) {
case kNotifyFileWrite: case kNotifyFileWrite:
@ -163,7 +163,7 @@ static void LogFileNotifyProc (
//============================================================================ //============================================================================
static void AllocLogBuffer_CS (unsigned index) { static void AllocLogBuffer_CS (unsigned index) {
ref(AllocLogBuffer_CS); REF(AllocLogBuffer_CS);
ASSERT(!s_logBuf[index]); ASSERT(!s_logBuf[index]);
s_logBuf[index] = (char *)ALLOC(s_logSize[index]); s_logBuf[index] = (char *)ALLOC(s_logSize[index]);
@ -175,7 +175,7 @@ static void AllocLogBuffer_CS (unsigned index) {
//============================================================================ //============================================================================
static void FreeLogBuffer_CS (unsigned index) { static void FreeLogBuffer_CS (unsigned index) {
ref(FreeLogBuffer_CS); REF(FreeLogBuffer_CS);
if (s_logBuf[index]) { if (s_logBuf[index]) {
FREE(s_logBuf[index]); FREE(s_logBuf[index]);
@ -322,7 +322,7 @@ static void FlushLogFile_CS (
unsigned index, unsigned index,
TimeDesc timeDesc TimeDesc timeDesc
) { ) {
ref(FlushLogFile_CS); REF(FlushLogFile_CS);
bool close = !s_running || (s_logTime[index].day != timeDesc.day); bool close = !s_running || (s_logTime[index].day != timeDesc.day);
WriteLogFile_CS(index, close); WriteLogFile_CS(index, close);
@ -332,7 +332,7 @@ static void FlushLogFile_CS (
//============================================================================ //============================================================================
static unsigned FlushLogsTimerCallback (void *) { static unsigned FlushLogsTimerCallback (void *) {
ref(FlushLogsTimerCallback); REF(FlushLogsTimerCallback);
AsyncLogFlush(); AsyncLogFlush();
return kAsyncTimeInfinite; return kAsyncTimeInfinite;
@ -427,9 +427,9 @@ void AsyncLogWriteMsg (
ELogSeverity severity, ELogSeverity severity,
const wchar msg[] const wchar msg[]
) { ) {
ref(facility); REF(facility);
ref(severity); REF(severity);
ref(msg); REF(msg);
if (!s_running) if (!s_running)
return; return;

4
MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/NucleusLib/pnIni/Private/pnIniCore.cpp

@ -741,8 +741,8 @@ unsigned IniGetBoundedValue (
unsigned maxVal, unsigned maxVal,
unsigned defVal unsigned defVal
) { ) {
ref(key); REF(key);
ref(section); REF(section);
if (!value) if (!value)
return defVal; return defVal;

2
MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/NucleusLib/pnIniExe/Private/Win32/pnW32IniChange.cpp

@ -126,7 +126,7 @@ static void ChangeDispatch_WL (IniChangeReg * marker) {
//=========================================================================== //===========================================================================
static unsigned THREADCALL IniSrvThreadProc (AsyncThread * thread) { static unsigned THREADCALL IniSrvThreadProc (AsyncThread * thread) {
ref(thread); REF(thread);
IniChangeReg marker; IniChangeReg marker;
marker.fNotify = nil; marker.fNotify = nil;

8
MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/NucleusLib/pnNetCli/pnNcCli.cpp

@ -143,7 +143,7 @@ namespace pnNetCli {
static void PutBufferOnWire (NetCli * cli, void * data, unsigned bytes) { static void PutBufferOnWire (NetCli * cli, void * data, unsigned bytes) {
byte * temp, * heap = NULL; byte * temp, * heap = NULL;
ref(temp); REF(temp);
if (cli->mode == kNetCliModeEncrypted) { if (cli->mode == kNetCliModeEncrypted) {
// Encrypt data... // Encrypt data...
@ -240,7 +240,7 @@ static void BufferedSendData (
return; return;
unsigned_ptr const * const msgEnd = msg + fieldCount; unsigned_ptr const * const msgEnd = msg + fieldCount;
ref(msgEnd); REF(msgEnd);
const NetMsgInitSend * sendMsg = NetMsgChannelFindSendMessage(cli->channel, msg[0]); const NetMsgInitSend * sendMsg = NetMsgChannelFindSendMessage(cli->channel, msg[0]);
ASSERT(msg[0] == sendMsg->msg.messageId); ASSERT(msg[0] == sendMsg->msg.messageId);
@ -1006,7 +1006,7 @@ bool NetCliDispatch (
if (cli->mode == kNetCliModeEncrypted) { if (cli->mode == kNetCliModeEncrypted) {
// Decrypt data... // Decrypt data...
byte * temp, * heap = NULL; byte * temp, * heap = NULL;
ref(temp); REF(temp);
#ifndef NO_ENCRYPTION #ifndef NO_ENCRYPTION
if (bytes <= 2048) if (bytes <= 2048)
@ -1024,7 +1024,7 @@ bool NetCliDispatch (
// Add data to accumulator and dispatch // Add data to accumulator and dispatch
cli->input.Add(bytes, data); cli->input.Add(bytes, data);
bool result = DispatchData(cli, param); bool result = DispatchData(cli, param);
ref(result); REF(result);
#ifdef SERVER #ifdef SERVER
cli->recvDispatch = result; cli->recvDispatch = result;

4
MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/NucleusLib/pnNetProtocol/Private/pnNpCommon.cpp

@ -156,8 +156,8 @@ static inline bool ICompareStringI (const T lhs[], const T rhs[]) {
//============================================================================ //============================================================================
static inline bool ICompareArray (const byte lhs[], const byte rhs[]) { static inline bool ICompareArray (const byte lhs[], const byte rhs[]) {
ref(lhs); REF(lhs);
ref(rhs); REF(rhs);
return false; return false;
} }

2
MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/NucleusLib/pnSimpleNet/pnSimpleNet.cpp

@ -412,7 +412,7 @@ static void AsyncLookupCallback (
unsigned addrCount, unsigned addrCount,
const NetAddress addrs[] const NetAddress addrs[]
) { ) {
ref(name); REF(name);
ConnectParam * cp = (ConnectParam *)param; ConnectParam * cp = (ConnectParam *)param;

2
MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/NucleusLib/pnUtils/Private/Win32/pnUtW32Addr.cpp

@ -101,7 +101,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
// 127.0.0.0 - 127.0.0.255 // 127.0.0.0 - 127.0.0.255
// (lowest) // (lowest)
static int NetAddressNodeSortValueNetOrder (NetAddressNode addr) { static int NetAddressNodeSortValueNetOrder (NetAddressNode addr) {
ref(NetAddressNodeSortValueNetOrder); REF(NetAddressNodeSortValueNetOrder);
// Loopback addresses // Loopback addresses
if ((addr & kNetClassALoopbackMask) == (kNetClassALoopbackAddr & kNetClassALoopbackMask)) if ((addr & kNetClassALoopbackMask) == (kNetClassALoopbackAddr & kNetClassALoopbackMask))
return 4; return 4;

2
MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/NucleusLib/pnUtils/Private/pnUtArray.cpp

@ -93,7 +93,7 @@ unsigned CBaseArray::CalcAllocGrowth (unsigned newAlloc, unsigned oldAlloc, unsi
//=========================================================================== //===========================================================================
void * CBaseArray::ReallocPtr (void * ptr, unsigned bytes) { void * CBaseArray::ReallocPtr (void * ptr, unsigned bytes) {
ref(ptr); REF(ptr);
void * newPtr = nil; void * newPtr = nil;
if (bytes) { if (bytes) {
newPtr = ALLOCFLAGS(bytes, ARR_MEMORY_FLAGS); newPtr = ALLOCFLAGS(bytes, ARR_MEMORY_FLAGS);

12
MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/NucleusLib/pnUtils/Private/pnUtArray.h

@ -291,12 +291,12 @@ template<class T>
class TArrayCopyBits { class TArrayCopyBits {
public: public:
inline static void Assign (T * dest, const T source[], unsigned count); inline static void Assign (T * dest, const T source[], unsigned count);
inline static void Construct (T * dest) { ref(dest); } inline static void Construct (T * dest) { REF(dest); }
inline static void Construct (T * dest, unsigned count) { ref(dest); ref(count); } inline static void Construct (T * dest, unsigned count) { REF(dest); REF(count); }
inline static void CopyConstruct (T * dest, const T & source); inline static void CopyConstruct (T * dest, const T & source);
inline static void CopyConstruct (T * dest, const T source[], unsigned count); inline static void CopyConstruct (T * dest, const T source[], unsigned count);
inline static void Destruct (T * dest) { ref(dest); } inline static void Destruct (T * dest) { REF(dest); }
inline static void Destruct (T * dest, unsigned count) { ref(dest); ref(count); } inline static void Destruct (T * dest, unsigned count) { REF(dest); REF(count); }
}; };
//=========================================================================== //===========================================================================
@ -378,14 +378,14 @@ void TArrayCopyObject<T>::CopyConstruct (T * dest, const T source[], unsigned co
//=========================================================================== //===========================================================================
template<class T> template<class T>
void TArrayCopyObject<T>::Destruct (T * dest) { void TArrayCopyObject<T>::Destruct (T * dest) {
ref(dest); REF(dest);
dest->~T(); dest->~T();
} }
//=========================================================================== //===========================================================================
template<class T> template<class T>
void TArrayCopyObject<T>::Destruct (T * dest, unsigned count) { void TArrayCopyObject<T>::Destruct (T * dest, unsigned count) {
ref(dest); REF(dest);
for (unsigned loop = count; loop--; ) for (unsigned loop = count; loop--; )
dest[loop].~T(); dest[loop].~T();
} }

4
MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/NucleusLib/pnUtils/Private/pnUtBase64.cpp

@ -107,7 +107,7 @@ unsigned Base64Encode (
ASSERT(dstChars >= Base64EncodeSize(srcChars)); ASSERT(dstChars >= Base64EncodeSize(srcChars));
ASSERT(dstData); ASSERT(dstData);
ref(dstChars); REF(dstChars);
const char * dstBase = dstData; const char * dstBase = dstData;
const byte * srcTerm = srcData + srcChars; const byte * srcTerm = srcData + srcChars;
@ -152,7 +152,7 @@ unsigned Base64Decode (
ASSERT(srcData); ASSERT(srcData);
ASSERT(dstChars >= Base64DecodeSize(srcChars)); ASSERT(dstChars >= Base64DecodeSize(srcChars));
ASSERT(dstData); ASSERT(dstData);
ref(dstChars); REF(dstChars);
const byte * dstBase = dstData; const byte * dstBase = dstData;
const char * srcTerm = srcData + srcChars; const char * srcTerm = srcData + srcChars;

10
MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/NucleusLib/pnUtils/Private/pnUtCmd.cpp

@ -613,15 +613,15 @@ bool CCmdParser::IsSpecified (const wchar name[]) const {
//=========================================================================== //===========================================================================
void CCmdParser::OnError (const wchar str[], ECmdError errorCode, const wchar arg[], const wchar value[]) { void CCmdParser::OnError (const wchar str[], ECmdError errorCode, const wchar arg[], const wchar value[]) {
ref(str); REF(str);
ref(errorCode); REF(errorCode);
ref(arg); REF(arg);
ref(value); REF(value);
} }
//=========================================================================== //===========================================================================
bool CCmdParser::OnExtra (const wchar str[]) { bool CCmdParser::OnExtra (const wchar str[]) {
ref(str); REF(str);
return false; return false;
} }

10
MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/NucleusLib/pnUtils/Private/pnUtCrypt.cpp

@ -159,7 +159,7 @@ static void Rc4Codec (
unsigned sourceBytes, unsigned sourceBytes,
const void * sourceData const void * sourceData
) { ) {
ref(encrypt); // RC4 uses the same algorithm to both encrypt and decrypt REF(encrypt); // RC4 uses the same algorithm to both encrypt and decrypt
dest->SetCount(sourceBytes); dest->SetCount(sourceBytes);
RC4((RC4_KEY *)key->handle, sourceBytes, (const unsigned char *)sourceData, dest->Ptr()); RC4((RC4_KEY *)key->handle, sourceBytes, (const unsigned char *)sourceData, dest->Ptr());
} }
@ -171,7 +171,7 @@ static void Rc4Codec (
unsigned bytes, unsigned bytes,
void * data void * data
) { ) {
ref(encrypt); // RC4 uses the same algorithm to both encrypt and decrypt REF(encrypt); // RC4 uses the same algorithm to both encrypt and decrypt
byte * temp = ALLOCA(byte, bytes); byte * temp = ALLOCA(byte, bytes);
RC4((RC4_KEY *)key->handle, bytes, (const unsigned char *)data, temp); RC4((RC4_KEY *)key->handle, bytes, (const unsigned char *)data, temp);
MemCopy(data, temp, bytes); MemCopy(data, temp, bytes);
@ -181,7 +181,7 @@ static void Rc4Codec (
//=========================================================================== //===========================================================================
void KeyRc4::Codec (bool encrypt, ARRAY(byte) * dest, unsigned sourceBytes, const void * sourceData) { void KeyRc4::Codec (bool encrypt, ARRAY(byte) * dest, unsigned sourceBytes, const void * sourceData) {
ref(encrypt); // RC4 uses the same algorithm to both encrypt and decrypt REF(encrypt); // RC4 uses the same algorithm to both encrypt and decrypt
dest->SetCount(sourceBytes); dest->SetCount(sourceBytes);
byte * destDataPtr = (byte *)dest->Ptr(); byte * destDataPtr = (byte *)dest->Ptr();
@ -381,8 +381,8 @@ void CryptKeyGenerate (
break; break;
case kCryptRsa: case kCryptRsa:
ref(keyBits); REF(keyBits);
ref(publicData); REF(publicData);
#if 0 #if 0
KeyRsa::KeyGen( KeyRsa::KeyGen(
keyBits, keyBits,

18
MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/NucleusLib/pnUtils/Private/pnUtEndian.h

@ -90,8 +90,8 @@ inline void EndianConvert (
word * array, word * array,
unsigned count unsigned count
) { ) {
ref(array); REF(array);
ref(count); REF(count);
return; return;
} }
@ -100,8 +100,8 @@ inline void EndianConvert (
dword * array, dword * array,
unsigned count unsigned count
) { ) {
ref(array); REF(array);
ref(count); REF(count);
return; return;
} }
@ -110,8 +110,8 @@ inline void EndianConvert (
qword * array, qword * array,
unsigned count unsigned count
) { ) {
ref(array); REF(array);
ref(count); REF(count);
return; return;
} }
@ -121,9 +121,9 @@ inline void EndianConvert (
unsigned elemCount, unsigned elemCount,
unsigned elemBytes unsigned elemBytes
) { ) {
ref(data); REF(data);
ref(elemCount); REF(elemCount);
ref(elemBytes); REF(elemBytes);
return; return;
} }

6
MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/NucleusLib/pnUtils/Private/pnUtHash.h

@ -219,7 +219,7 @@ TBaseHashTable<T>::TBaseHashTable () {
//=========================================================================== //===========================================================================
template<class T> template<class T>
TBaseHashTable<T>::TBaseHashTable (const TBaseHashTable<T> & source) { TBaseHashTable<T>::TBaseHashTable (const TBaseHashTable<T> & source) {
ref(source); REF(source);
#ifdef HS_DEBUGGING #ifdef HS_DEBUGGING
FATAL("No copy constructor"); FATAL("No copy constructor");
#endif #endif
@ -229,7 +229,7 @@ TBaseHashTable<T>::TBaseHashTable (const TBaseHashTable<T> & source) {
//=========================================================================== //===========================================================================
template<class T> template<class T>
TBaseHashTable<T> & TBaseHashTable<T>::operator= (const TBaseHashTable<T> & source) { TBaseHashTable<T> & TBaseHashTable<T>::operator= (const TBaseHashTable<T> & source) {
ref(source); REF(source);
#ifdef HS_DEBUGGING #ifdef HS_DEBUGGING
FATAL("No assignment operator"); FATAL("No assignment operator");
#endif #endif
@ -345,7 +345,7 @@ const T * TBaseHashTable<T>::Next (const T * object) const {
template<class T> template<class T>
void TBaseHashTable<T>::Order (T * linkedObject, ELinkType linkType, T * existingObject) { void TBaseHashTable<T>::Order (T * linkedObject, ELinkType linkType, T * existingObject) {
THashLink<T> & link = GetLink(linkedObject); THashLink<T> & link = GetLink(linkedObject);
ref(link); REF(link);
ASSERT(link.m_linkToFull.IsLinked()); ASSERT(link.m_linkToFull.IsLinked());
m_fullList.Link(linkedObject, linkType, existingObject); m_fullList.Link(linkedObject, linkType, existingObject);
} }

8
MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/NucleusLib/pnUtils/Private/pnUtList.h

@ -138,7 +138,7 @@ CBaseLink::CBaseLink () {
//=========================================================================== //===========================================================================
CBaseLink::CBaseLink (const CBaseLink & source) { CBaseLink::CBaseLink (const CBaseLink & source) {
ref(source); REF(source);
#ifdef HS_DEBUGGING #ifdef HS_DEBUGGING
if (source.IsLinked()) if (source.IsLinked())
FATAL("No copy constructor"); FATAL("No copy constructor");
@ -153,7 +153,7 @@ CBaseLink::~CBaseLink () {
//=========================================================================== //===========================================================================
CBaseLink & CBaseLink::operator= (const CBaseLink & source) { CBaseLink & CBaseLink::operator= (const CBaseLink & source) {
ref(source); REF(source);
#ifdef HS_DEBUGGING #ifdef HS_DEBUGGING
FATAL("No assignment operator"); FATAL("No assignment operator");
#endif #endif
@ -364,7 +364,7 @@ CBaseList::CBaseList () {
//=========================================================================== //===========================================================================
CBaseList::CBaseList (const CBaseList & source) { CBaseList::CBaseList (const CBaseList & source) {
m_linkOffset = LINK_OFFSET_UNINIT; m_linkOffset = LINK_OFFSET_UNINIT;
ref(source); REF(source);
} }
//=========================================================================== //===========================================================================
@ -375,7 +375,7 @@ CBaseList::~CBaseList () {
//=========================================================================== //===========================================================================
CBaseList & CBaseList::operator= (const CBaseList & source) { CBaseList & CBaseList::operator= (const CBaseList & source) {
ref(source); REF(source);
return *this; return *this;
} }

10
MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/NucleusLib/pnUtils/Private/pnUtRef.h

@ -102,7 +102,7 @@ public:
ASSERT(!zeroed); ASSERT(!zeroed);
#endif #endif
long prev = AtomicAdd(&m_ref, 1); long prev = AtomicAdd(&m_ref, 1);
ref(tag); REF(tag);
REFTRACE("Inc %p %s: %u", this, tag, prev+1); REFTRACE("Inc %p %s: %u", this, tag, prev+1);
return prev+1; return prev+1;
} }
@ -119,7 +119,7 @@ public:
ASSERT(!zeroed); ASSERT(!zeroed);
#endif #endif
long prev = AtomicAdd(&m_ref, n); long prev = AtomicAdd(&m_ref, n);
ref(tag); REF(tag);
REFTRACE("Inc %p %s: %u", this, tag, prev+n); REFTRACE("Inc %p %s: %u", this, tag, prev+n);
return prev+n; return prev+n;
} }
@ -149,7 +149,7 @@ public:
#endif #endif
OnZeroRef(); OnZeroRef();
} }
ref(tag); REF(tag);
REFTRACE("Dec %p %s: %u", this, tag, prev-1); REFTRACE("Dec %p %s: %u", this, tag, prev-1);
return prev-1; return prev-1;
} }
@ -161,8 +161,8 @@ public:
#ifdef HS_DEBUGGING #ifdef HS_DEBUGGING
ASSERT(!zeroed); ASSERT(!zeroed);
#endif #endif
ref(oldTag); REF(oldTag);
ref(newTag); REF(newTag);
REFTRACE("Inc %p %s: (xfer)", this, newTag); REFTRACE("Inc %p %s: (xfer)", this, newTag);
REFTRACE("Dec %p %s: (xfer)", this, oldTag); REFTRACE("Dec %p %s: (xfer)", this, oldTag);
} }

4
MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/NucleusLib/pnUtils/Private/pnUtSpareList.cpp

@ -93,7 +93,7 @@ void CBaseSpareList::Free (void * object, unsigned objectSize) {
#ifdef HS_DEBUGGING #ifdef HS_DEBUGGING
MemSet(object, (byte) ((unsigned) object >> 4), objectSize); MemSet(object, (byte) ((unsigned) object >> 4), objectSize);
#else #else
ref(objectSize); REF(objectSize);
#endif #endif
// link memory block onto head of spare list // link memory block onto head of spare list
@ -157,7 +157,7 @@ void CBaseSpareList::CleanUp (const char typeName[]) {
#endif #endif
} }
#else #else
ref(typeName); REF(typeName);
#endif #endif
// walk chain of AllocNodes and free each of them // walk chain of AllocNodes and free each of them

4
MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/NucleusLib/pnUtils/Private/pnUtUuid.h

@ -110,9 +110,9 @@ struct Uuid {
inline bool operator ! () const { return GuidIsNil(*this); } inline bool operator ! () const { return GuidIsNil(*this); }
inline bool operator < (const Uuid & rhs) const { return GuidCompare(*this, rhs) < 0; } inline bool operator < (const Uuid & rhs) const { return GuidCompare(*this, rhs) < 0; }
inline bool operator == (const Uuid & rhs) const { return GuidsAreEqual(*this, rhs); } inline bool operator == (const Uuid & rhs) const { return GuidsAreEqual(*this, rhs); }
inline bool operator == (int rhs) const { ref(rhs); ASSERT(!rhs); return GuidsAreEqual(*this, kNilGuid); } inline bool operator == (int rhs) const { REF(rhs); ASSERT(!rhs); return GuidsAreEqual(*this, kNilGuid); }
inline bool operator != (const Uuid & rhs) const { return !GuidsAreEqual(*this, rhs); } inline bool operator != (const Uuid & rhs) const { return !GuidsAreEqual(*this, rhs); }
inline bool operator != (int rhs) const { ref(rhs); ASSERT(!rhs); return !GuidsAreEqual(*this, kNilGuid); } inline bool operator != (int rhs) const { REF(rhs); ASSERT(!rhs); return !GuidsAreEqual(*this, kNilGuid); }
}; };
#include <PopPack.h> #include <PopPack.h>

4
MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/PubUtilLib/plNetClientComm/plNetClientComm.cpp

@ -448,7 +448,7 @@ static void INetCliAuthCreatePlayerRequestCallback (
void * param, void * param,
const NetCliAuthPlayerInfo & playerInfo const NetCliAuthPlayerInfo & playerInfo
) { ) {
ref(param); REF(param);
if (IS_NET_ERROR(result)) { if (IS_NET_ERROR(result)) {
LogMsg(kLogDebug, L"Create player failed: %s", NetErrorToString(result)); LogMsg(kLogDebug, L"Create player failed: %s", NetErrorToString(result));
@ -522,7 +522,7 @@ static void INetCliAuthChangePasswordCallback (
ENetError result, ENetError result,
void * param void * param
) { ) {
ref(param); REF(param);
if (IS_NET_ERROR(result)) { if (IS_NET_ERROR(result)) {
LogMsg(kLogDebug, L"Change password failed: %s", NetErrorToString(result)); LogMsg(kLogDebug, L"Change password failed: %s", NetErrorToString(result));

72
MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/PubUtilLib/plNetGameLib/Private/plNglAuth.cpp

@ -1549,7 +1549,7 @@ static void AsyncLookupCallback (
unsigned addrCount, unsigned addrCount,
const NetAddress addrs[] const NetAddress addrs[]
) { ) {
ref(param); REF(param);
if (!addrCount) { if (!addrCount) {
ReportNetError(kNetProtocolCli2Auth, kNetErrNameLookupFailed); ReportNetError(kNetProtocolCli2Auth, kNetErrNameLookupFailed);
@ -2004,8 +2004,8 @@ static bool Recv_KickedOff (
unsigned bytes, unsigned bytes,
void * param void * param
) { ) {
ref(bytes); REF(bytes);
ref(param); REF(param);
const Auth2Cli_KickedOff & msg = *(const Auth2Cli_KickedOff *)buffer; const Auth2Cli_KickedOff & msg = *(const Auth2Cli_KickedOff *)buffer;
@ -2537,7 +2537,7 @@ bool PingRequestTrans::Recv (
const byte msg[], const byte msg[],
unsigned bytes unsigned bytes
) { ) {
ref(bytes); REF(bytes);
const Auth2Cli_PingReply & reply = *(const Auth2Cli_PingReply *)msg; const Auth2Cli_PingReply & reply = *(const Auth2Cli_PingReply *)msg;
@ -2600,7 +2600,7 @@ bool AccountExistsRequestTrans::Recv (
const byte msg[], const byte msg[],
unsigned bytes unsigned bytes
) { ) {
ref(bytes); REF(bytes);
const Auth2Cli_AccountExistsReply & reply = *(const Auth2Cli_AccountExistsReply *)msg; const Auth2Cli_AccountExistsReply & reply = *(const Auth2Cli_AccountExistsReply *)msg;
@ -2709,7 +2709,7 @@ bool LoginRequestTrans::Recv (
const byte msg[], const byte msg[],
unsigned bytes unsigned bytes
) { ) {
ref(bytes); REF(bytes);
dword msgId = (dword)*msg; dword msgId = (dword)*msg;
switch (msgId) { switch (msgId) {
@ -2798,7 +2798,7 @@ bool AgeRequestTrans::Recv (
const byte msg[], const byte msg[],
unsigned bytes unsigned bytes
) { ) {
ref(bytes); REF(bytes);
const Auth2Cli_AgeReply & reply = *(const Auth2Cli_AgeReply *) msg; const Auth2Cli_AgeReply & reply = *(const Auth2Cli_AgeReply *) msg;
m_gameSrvNode = reply.gameSrvNode; m_gameSrvNode = reply.gameSrvNode;
m_ageMcpId = reply.ageMcpId; m_ageMcpId = reply.ageMcpId;
@ -2871,7 +2871,7 @@ bool AccountCreateRequestTrans::Recv (
const byte msg[], const byte msg[],
unsigned bytes unsigned bytes
) { ) {
ref(bytes); REF(bytes);
const Auth2Cli_AcctCreateReply & reply = *(const Auth2Cli_AcctCreateReply *) msg; const Auth2Cli_AcctCreateReply & reply = *(const Auth2Cli_AcctCreateReply *) msg;
m_result = reply.result; m_result = reply.result;
@ -2943,7 +2943,7 @@ bool AccountCreateFromKeyRequestTrans::Recv (
const byte msg[], const byte msg[],
unsigned bytes unsigned bytes
) { ) {
ref(bytes); REF(bytes);
const Auth2Cli_AcctCreateFromKeyReply & reply = *(const Auth2Cli_AcctCreateFromKeyReply *) msg; const Auth2Cli_AcctCreateFromKeyReply & reply = *(const Auth2Cli_AcctCreateFromKeyReply *) msg;
m_result = reply.result; m_result = reply.result;
@ -3011,7 +3011,7 @@ bool PlayerCreateRequestTrans::Recv (
const byte msg[], const byte msg[],
unsigned bytes unsigned bytes
) { ) {
ref(bytes); REF(bytes);
const Auth2Cli_PlayerCreateReply & reply = *(const Auth2Cli_PlayerCreateReply *) msg; const Auth2Cli_PlayerCreateReply & reply = *(const Auth2Cli_PlayerCreateReply *) msg;
if (!IS_NET_ERROR(reply.result)) { if (!IS_NET_ERROR(reply.result)) {
m_playerInfo.playerInt = reply.playerInt; m_playerInfo.playerInt = reply.playerInt;
@ -3178,7 +3178,7 @@ bool SetPlayerRequestTrans::Recv (
const byte msg[], const byte msg[],
unsigned bytes unsigned bytes
) { ) {
ref(bytes); REF(bytes);
const Auth2Cli_AcctSetPlayerReply & reply = *(const Auth2Cli_AcctSetPlayerReply *) msg; const Auth2Cli_AcctSetPlayerReply & reply = *(const Auth2Cli_AcctSetPlayerReply *) msg;
m_result = reply.result; m_result = reply.result;
m_state = kTransStateComplete; m_state = kTransStateComplete;
@ -3240,7 +3240,7 @@ bool AccountChangePasswordRequestTrans::Recv (
const byte msg[], const byte msg[],
unsigned bytes unsigned bytes
) { ) {
ref(bytes); REF(bytes);
const Auth2Cli_AcctChangePasswordReply & reply = *(const Auth2Cli_AcctChangePasswordReply *) msg; const Auth2Cli_AcctChangePasswordReply & reply = *(const Auth2Cli_AcctChangePasswordReply *) msg;
m_result = reply.result; m_result = reply.result;
@ -3296,7 +3296,7 @@ bool GetPublicAgeListTrans::Recv (
const byte msg[], const byte msg[],
unsigned bytes unsigned bytes
) { ) {
ref(bytes); REF(bytes);
const Auth2Cli_PublicAgeList & reply = *(const Auth2Cli_PublicAgeList *) msg; const Auth2Cli_PublicAgeList & reply = *(const Auth2Cli_PublicAgeList *) msg;
if (IS_NET_SUCCESS(reply.result)) if (IS_NET_SUCCESS(reply.result))
@ -3358,7 +3358,7 @@ bool AccountSetRolesRequestTrans::Recv (
const byte msg[], const byte msg[],
unsigned bytes unsigned bytes
) { ) {
ref(bytes); REF(bytes);
const Auth2Cli_AcctSetRolesReply & reply = *(const Auth2Cli_AcctSetRolesReply *) msg; const Auth2Cli_AcctSetRolesReply & reply = *(const Auth2Cli_AcctSetRolesReply *) msg;
m_result = reply.result; m_result = reply.result;
@ -3416,7 +3416,7 @@ bool AccountSetBillingTypeRequestTrans::Recv (
const byte msg[], const byte msg[],
unsigned bytes unsigned bytes
) { ) {
ref(bytes); REF(bytes);
const Auth2Cli_AcctSetBillingTypeReply & reply = *(const Auth2Cli_AcctSetBillingTypeReply *) msg; const Auth2Cli_AcctSetBillingTypeReply & reply = *(const Auth2Cli_AcctSetBillingTypeReply *) msg;
m_result = reply.result; m_result = reply.result;
@ -3471,7 +3471,7 @@ bool AccountActivateRequestTrans::Recv (
const byte msg[], const byte msg[],
unsigned bytes unsigned bytes
) { ) {
ref(bytes); REF(bytes);
const Auth2Cli_AcctActivateReply & reply = *(const Auth2Cli_AcctActivateReply *) msg; const Auth2Cli_AcctActivateReply & reply = *(const Auth2Cli_AcctActivateReply *) msg;
m_result = reply.result; m_result = reply.result;
@ -3526,7 +3526,7 @@ bool FileListRequestTrans::Recv (
const byte msg[], const byte msg[],
unsigned bytes unsigned bytes
) { ) {
ref(bytes); REF(bytes);
const Auth2Cli_FileListReply & reply = *(const Auth2Cli_FileListReply *) msg; const Auth2Cli_FileListReply & reply = *(const Auth2Cli_FileListReply *) msg;
dword wcharCount = reply.wcharCount; dword wcharCount = reply.wcharCount;
@ -3642,7 +3642,7 @@ bool FileDownloadRequestTrans::Recv (
const byte msg[], const byte msg[],
unsigned bytes unsigned bytes
) { ) {
ref(bytes); REF(bytes);
const Auth2Cli_FileDownloadChunk & reply = *(const Auth2Cli_FileDownloadChunk *) msg; const Auth2Cli_FileDownloadChunk & reply = *(const Auth2Cli_FileDownloadChunk *) msg;
if (IS_NET_ERROR(reply.result)) { if (IS_NET_ERROR(reply.result)) {
@ -3977,7 +3977,7 @@ bool VaultFetchNodeTrans::Recv (
const byte msg[], const byte msg[],
unsigned bytes unsigned bytes
) { ) {
ref(bytes); REF(bytes);
const Auth2Cli_VaultNodeFetched & reply = *(const Auth2Cli_VaultNodeFetched *) msg; const Auth2Cli_VaultNodeFetched & reply = *(const Auth2Cli_VaultNodeFetched *) msg;
@ -4055,7 +4055,7 @@ bool VaultFindNodeTrans::Recv (
const byte msg[], const byte msg[],
unsigned bytes unsigned bytes
) { ) {
ref(bytes); REF(bytes);
const Auth2Cli_VaultNodeFindReply & reply = *(const Auth2Cli_VaultNodeFindReply *) msg; const Auth2Cli_VaultNodeFindReply & reply = *(const Auth2Cli_VaultNodeFindReply *) msg;
@ -4125,7 +4125,7 @@ bool VaultCreateNodeTrans::Recv (
const byte msg[], const byte msg[],
unsigned bytes unsigned bytes
) { ) {
ref(bytes); REF(bytes);
const Auth2Cli_VaultNodeCreated & reply = *(const Auth2Cli_VaultNodeCreated *) msg; const Auth2Cli_VaultNodeCreated & reply = *(const Auth2Cli_VaultNodeCreated *) msg;
@ -4195,7 +4195,7 @@ bool VaultSaveNodeTrans::Recv (
const byte msg[], const byte msg[],
unsigned bytes unsigned bytes
) { ) {
ref(bytes); REF(bytes);
const Auth2Cli_VaultSaveNodeReply & reply = *(const Auth2Cli_VaultSaveNodeReply *) msg; const Auth2Cli_VaultSaveNodeReply & reply = *(const Auth2Cli_VaultSaveNodeReply *) msg;
@ -4260,7 +4260,7 @@ bool VaultAddNodeTrans::Recv (
const byte msg[], const byte msg[],
unsigned bytes unsigned bytes
) { ) {
ref(bytes); REF(bytes);
const Auth2Cli_VaultAddNodeReply & reply = *(const Auth2Cli_VaultAddNodeReply *) msg; const Auth2Cli_VaultAddNodeReply & reply = *(const Auth2Cli_VaultAddNodeReply *) msg;
@ -4322,7 +4322,7 @@ bool VaultRemoveNodeTrans::Recv (
const byte msg[], const byte msg[],
unsigned bytes unsigned bytes
) { ) {
ref(bytes); REF(bytes);
const Auth2Cli_VaultRemoveNodeReply & reply = *(const Auth2Cli_VaultRemoveNodeReply *) msg; const Auth2Cli_VaultRemoveNodeReply & reply = *(const Auth2Cli_VaultRemoveNodeReply *) msg;
@ -4395,7 +4395,7 @@ bool SetPlayerBanStatusRequestTrans::Recv (
const byte msg[], const byte msg[],
unsigned bytes unsigned bytes
) { ) {
ref(bytes); REF(bytes);
const Auth2Cli_SetPlayerBanStatusReply & reply = *(const Auth2Cli_SetPlayerBanStatusReply *) msg; const Auth2Cli_SetPlayerBanStatusReply & reply = *(const Auth2Cli_SetPlayerBanStatusReply *) msg;
m_result = reply.result; m_result = reply.result;
@ -4453,7 +4453,7 @@ bool ChangePlayerNameRequestTrans::Recv (
const byte msg[], const byte msg[],
unsigned bytes unsigned bytes
) { ) {
ref(bytes); REF(bytes);
const Auth2Cli_ChangePlayerNameReply & reply = *(const Auth2Cli_ChangePlayerNameReply *) msg; const Auth2Cli_ChangePlayerNameReply & reply = *(const Auth2Cli_ChangePlayerNameReply *) msg;
m_result = reply.result; m_result = reply.result;
@ -4515,7 +4515,7 @@ bool SendFriendInviteTrans::Recv (
const byte msg[], const byte msg[],
unsigned bytes unsigned bytes
) { ) {
ref(bytes); REF(bytes);
const Auth2Cli_SendFriendInviteReply & reply = *(const Auth2Cli_SendFriendInviteReply *) msg; const Auth2Cli_SendFriendInviteReply & reply = *(const Auth2Cli_SendFriendInviteReply *) msg;
m_result = reply.result; m_result = reply.result;
@ -4606,7 +4606,7 @@ bool ScoreCreateTrans::Recv (
const byte msg[], const byte msg[],
unsigned bytes unsigned bytes
) { ) {
ref(bytes); REF(bytes);
const Auth2Cli_ScoreCreateReply & reply = *(const Auth2Cli_ScoreCreateReply *) msg; const Auth2Cli_ScoreCreateReply & reply = *(const Auth2Cli_ScoreCreateReply *) msg;
m_scoreId = reply.scoreId; m_scoreId = reply.scoreId;
@ -4666,7 +4666,7 @@ bool ScoreDeleteTrans::Recv (
const byte msg[], const byte msg[],
unsigned bytes unsigned bytes
) { ) {
ref(bytes); REF(bytes);
const Auth2Cli_ScoreDeleteReply & reply = *(const Auth2Cli_ScoreDeleteReply *) msg; const Auth2Cli_ScoreDeleteReply & reply = *(const Auth2Cli_ScoreDeleteReply *) msg;
m_result = reply.result; m_result = reply.result;
@ -4733,7 +4733,7 @@ bool ScoreGetScoresTrans::Recv (
const byte msg[], const byte msg[],
unsigned bytes unsigned bytes
) { ) {
ref(bytes); REF(bytes);
const Auth2Cli_ScoreGetScoresReply & reply = *(const Auth2Cli_ScoreGetScoresReply *) msg; const Auth2Cli_ScoreGetScoresReply & reply = *(const Auth2Cli_ScoreGetScoresReply *) msg;
if (reply.scoreCount > 0) { if (reply.scoreCount > 0) {
@ -4809,7 +4809,7 @@ bool ScoreAddPointsTrans::Recv (
const byte msg[], const byte msg[],
unsigned bytes unsigned bytes
) { ) {
ref(bytes); REF(bytes);
const Auth2Cli_ScoreAddPointsReply & reply = *(const Auth2Cli_ScoreAddPointsReply *) msg; const Auth2Cli_ScoreAddPointsReply & reply = *(const Auth2Cli_ScoreAddPointsReply *) msg;
m_result = reply.result; m_result = reply.result;
@ -4872,7 +4872,7 @@ bool ScoreTransferPointsTrans::Recv (
const byte msg[], const byte msg[],
unsigned bytes unsigned bytes
) { ) {
ref(bytes); REF(bytes);
const Auth2Cli_ScoreTransferPointsReply & reply = *(const Auth2Cli_ScoreTransferPointsReply *) msg; const Auth2Cli_ScoreTransferPointsReply & reply = *(const Auth2Cli_ScoreTransferPointsReply *) msg;
m_result = reply.result; m_result = reply.result;
@ -4932,7 +4932,7 @@ bool ScoreSetPointsTrans::Recv (
const byte msg[], const byte msg[],
unsigned bytes unsigned bytes
) { ) {
ref(bytes); REF(bytes);
const Auth2Cli_ScoreSetPointsReply & reply = *(const Auth2Cli_ScoreSetPointsReply *) msg; const Auth2Cli_ScoreSetPointsReply & reply = *(const Auth2Cli_ScoreSetPointsReply *) msg;
m_result = reply.result; m_result = reply.result;
@ -5013,7 +5013,7 @@ bool ScoreGetRanksTrans::Recv (
const byte msg[], const byte msg[],
unsigned bytes unsigned bytes
) { ) {
ref(bytes); REF(bytes);
const Auth2Cli_ScoreGetRanksReply & reply = *(const Auth2Cli_ScoreGetRanksReply *) msg; const Auth2Cli_ScoreGetRanksReply & reply = *(const Auth2Cli_ScoreGetRanksReply *) msg;
if (reply.rankCount > 0) { if (reply.rankCount > 0) {
@ -5709,7 +5709,7 @@ unsigned NetCliAuthVaultNodeSave (
void NetCliAuthVaultNodeDelete ( void NetCliAuthVaultNodeDelete (
unsigned nodeId unsigned nodeId
) { ) {
ref(nodeId); REF(nodeId);
hsAssert(false, "eric, implement me"); hsAssert(false, "eric, implement me");
} }
@ -5842,7 +5842,7 @@ void NetCliAuthSetRecvBufferHandler (
void NetCliAuthSendCCRPetition ( void NetCliAuthSendCCRPetition (
const wchar * petitionText const wchar * petitionText
) { ) {
ref(petitionText); REF(petitionText);
hsAssert(false, "eric, implement me."); hsAssert(false, "eric, implement me.");
} }

6
MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/PubUtilLib/plNetGameLib/Private/plNglCsr.cpp

@ -187,7 +187,7 @@ static CliCsConn * GetConnIncRef_CS (const char tag[]) {
//============================================================================ //============================================================================
static CliCsConn * GetConnIncRef (const char tag[]) { static CliCsConn * GetConnIncRef (const char tag[]) {
ref(GetConnIncRef); REF(GetConnIncRef);
CliCsConn * conn; CliCsConn * conn;
s_critsect.Enter(); s_critsect.Enter();
@ -420,7 +420,7 @@ static void AsyncLookupCallback (
unsigned addrCount, unsigned addrCount,
const NetAddress addrs[] const NetAddress addrs[]
) { ) {
ref(name); REF(name);
if (!addrCount) { if (!addrCount) {
ReportNetError(kNetProtocolCli2Auth, kNetErrNameLookupFailed); ReportNetError(kNetProtocolCli2Auth, kNetErrNameLookupFailed);
@ -697,7 +697,7 @@ bool LoginRequestTrans::Recv (
const byte msg[], const byte msg[],
unsigned bytes unsigned bytes
) { ) {
ref(bytes); REF(bytes);
const Csr2Cli_LoginReply & reply = *(const Csr2Cli_LoginReply *) msg; const Csr2Cli_LoginReply & reply = *(const Csr2Cli_LoginReply *) msg;

10
MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/PubUtilLib/plNetGameLib/Private/plNglFile.cpp

@ -563,7 +563,7 @@ static void AsyncLookupCallback (
unsigned addrCount, unsigned addrCount,
const NetAddress addrs[] const NetAddress addrs[]
) { ) {
ref(param); REF(param);
if (!addrCount) { if (!addrCount) {
ReportNetError(kNetProtocolCli2File, kNetErrNameLookupFailed); ReportNetError(kNetProtocolCli2File, kNetErrNameLookupFailed);
@ -793,7 +793,7 @@ void CliFileConn::Dispatch (const Cli2File_MsgHeader * msg) {
bool CliFileConn::Recv_PingReply ( bool CliFileConn::Recv_PingReply (
const File2Cli_PingReply * msg const File2Cli_PingReply * msg
) { ) {
ref(msg); REF(msg);
return true; return true;
} }
@ -874,7 +874,7 @@ bool BuildIdRequestTrans::Recv (
const byte msg[], const byte msg[],
unsigned bytes unsigned bytes
) { ) {
ref(bytes); REF(bytes);
const File2Cli_BuildIdReply & reply = *(const File2Cli_BuildIdReply *) msg; const File2Cli_BuildIdReply & reply = *(const File2Cli_BuildIdReply *) msg;
if (IS_NET_ERROR(reply.result)) { if (IS_NET_ERROR(reply.result)) {
@ -960,7 +960,7 @@ bool ManifestRequestTrans::Recv (
) { ) {
m_timeoutAtMs = TimeGetMs() + NetTransGetTimeoutMs(); // Reset the timeout counter m_timeoutAtMs = TimeGetMs() + NetTransGetTimeoutMs(); // Reset the timeout counter
ref(bytes); REF(bytes);
const File2Cli_ManifestReply & reply = *(const File2Cli_ManifestReply *) msg; const File2Cli_ManifestReply & reply = *(const File2Cli_ManifestReply *) msg;
dword numFiles = reply.numFiles; dword numFiles = reply.numFiles;
@ -1173,7 +1173,7 @@ bool DownloadRequestTrans::Recv (
) { ) {
m_timeoutAtMs = TimeGetMs() + NetTransGetTimeoutMs(); // Reset the timeout counter m_timeoutAtMs = TimeGetMs() + NetTransGetTimeoutMs(); // Reset the timeout counter
ref(bytes); REF(bytes);
const File2Cli_FileDownloadReply & reply = *(const File2Cli_FileDownloadReply *) msg; const File2Cli_FileDownloadReply & reply = *(const File2Cli_FileDownloadReply *) msg;
dword byteCount = reply.byteCount; dword byteCount = reply.byteCount;

20
MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/PubUtilLib/plNetGameLib/Private/plNglGame.cpp

@ -430,9 +430,9 @@ static bool Recv_PingReply (
unsigned bytes, unsigned bytes,
void * param void * param
) { ) {
ref(msg); REF(msg);
ref(bytes); REF(bytes);
ref(param); REF(param);
return true; return true;
} }
@ -442,8 +442,8 @@ static bool Recv_JoinAgeReply (
unsigned bytes, unsigned bytes,
void * param void * param
) { ) {
ref(bytes); REF(bytes);
ref(param); REF(param);
const Game2Cli_JoinAgeReply & reply = *(const Game2Cli_JoinAgeReply *)msg; const Game2Cli_JoinAgeReply & reply = *(const Game2Cli_JoinAgeReply *)msg;
if (sizeof(reply) != bytes) if (sizeof(reply) != bytes)
@ -460,8 +460,8 @@ static bool Recv_PropagateBuffer (
unsigned bytes, unsigned bytes,
void * param void * param
) { ) {
ref(bytes); REF(bytes);
ref(param); REF(param);
const Game2Cli_PropagateBuffer & reply = *(const Game2Cli_PropagateBuffer *)msg; const Game2Cli_PropagateBuffer & reply = *(const Game2Cli_PropagateBuffer *)msg;
@ -481,8 +481,8 @@ static bool Recv_GameMgrMsg (
unsigned bytes, unsigned bytes,
void * param void * param
) { ) {
ref(bytes); REF(bytes);
ref(param); REF(param);
const Game2Cli_GameMgrMsg & reply = *(const Game2Cli_GameMgrMsg *)msg; const Game2Cli_GameMgrMsg & reply = *(const Game2Cli_GameMgrMsg *)msg;
@ -571,7 +571,7 @@ bool JoinAgeRequestTrans::Recv (
const byte msg[], const byte msg[],
unsigned bytes unsigned bytes
) { ) {
ref(bytes); REF(bytes);
const Game2Cli_JoinAgeReply & reply = *(const Game2Cli_JoinAgeReply *) msg; const Game2Cli_JoinAgeReply & reply = *(const Game2Cli_JoinAgeReply *) msg;
m_result = reply.result; m_result = reply.result;

8
MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/PubUtilLib/plNetGameLib/Private/plNglGateKeeper.cpp

@ -488,7 +488,7 @@ static void AsyncLookupCallback (
unsigned addrCount, unsigned addrCount,
const NetAddress addrs[] const NetAddress addrs[]
) { ) {
ref(param); REF(param);
if (!addrCount) { if (!addrCount) {
ReportNetError(kNetProtocolCli2GateKeeper, kNetErrNameLookupFailed); ReportNetError(kNetProtocolCli2GateKeeper, kNetErrNameLookupFailed);
@ -818,7 +818,7 @@ bool PingRequestTrans::Recv (
const byte msg[], const byte msg[],
unsigned bytes unsigned bytes
) { ) {
ref(bytes); REF(bytes);
const GateKeeper2Cli_PingReply & reply = *(const GateKeeper2Cli_PingReply *)msg; const GateKeeper2Cli_PingReply & reply = *(const GateKeeper2Cli_PingReply *)msg;
@ -882,7 +882,7 @@ bool FileSrvIpAddressRequestTrans::Recv (
const byte msg[], const byte msg[],
unsigned bytes unsigned bytes
) { ) {
ref(bytes); REF(bytes);
const GateKeeper2Cli_FileSrvIpAddressReply & reply = *(const GateKeeper2Cli_FileSrvIpAddressReply *)msg; const GateKeeper2Cli_FileSrvIpAddressReply & reply = *(const GateKeeper2Cli_FileSrvIpAddressReply *)msg;
@ -942,7 +942,7 @@ bool AuthSrvIpAddressRequestTrans::Recv (
const byte msg[], const byte msg[],
unsigned bytes unsigned bytes
) { ) {
ref(bytes); REF(bytes);
const GateKeeper2Cli_AuthSrvIpAddressReply & reply = *(const GateKeeper2Cli_AuthSrvIpAddressReply *)msg; const GateKeeper2Cli_AuthSrvIpAddressReply & reply = *(const GateKeeper2Cli_AuthSrvIpAddressReply *)msg;

Loading…
Cancel
Save