Browse Source

Fix a stupid mistake with plString usage.

Darryl Pogue 13 years ago
parent
commit
0973bd954a
  1. 4
      Sources/Plasma/Apps/plClientPatcher/UruPlayer.cpp
  2. 8
      Sources/Plasma/Apps/plUruLauncher/SelfPatcher.cpp

4
Sources/Plasma/Apps/plClientPatcher/UruPlayer.cpp

@ -244,7 +244,7 @@ static void NetErrorHandler (ENetProtocol protocol, ENetError error) {
}
plString msg = plString::Format("NetErr: %S: %S", srv, NetErrorToString(error));
plStatusLog::AddLineS("patcher.log", msg.cstr());
plStatusLog::AddLineS("patcher.log", msg.c_str());
// Notify GameTap something bad happened.
if (!s_patchError) {
@ -829,7 +829,7 @@ static void FileSrvIpAddressCallback (
if (IS_NET_ERROR(result)) {
plString msg = plString::Format("FileSrvIpAddressRequest failed: %S", NetErrorToString(result));
plStatusLog::AddLineS("patcher.log", msg.cstr());
plStatusLog::AddLineS("patcher.log", msg.c_str());
s_patchError = true;
return;

8
Sources/Plasma/Apps/plUruLauncher/SelfPatcher.cpp

@ -89,7 +89,7 @@ static wchar_t s_newPatcherFile[MAX_PATH];
//============================================================================
static void NetErrorHandler (ENetProtocol protocol, ENetError error) {
plString msg = plString::Format("NetErr: %S", NetErrorToString(error));
plStatusLog::AddLineS("patcher.log", msg.cstr());
plStatusLog::AddLineS("patcher.log", msg.c_str());
if (IS_NET_SUCCESS(s_patchResult))
s_patchResult = error;
@ -120,7 +120,7 @@ static void DownloadCallback (
default:
plString msg = plString::Format("Error getting patcher file: %S", NetErrorToString(result));
plStatusLog::AddLineS("patcher.log", msg.cstr());
plStatusLog::AddLineS("patcher.log", msg.c_str());
if (IS_NET_SUCCESS(s_patchResult))
s_patchResult = result;
@ -167,7 +167,7 @@ static void ManifestCallback (
default:
plString msg = plString::Format("Error getting patcher manifest: %S", NetErrorToString(result));
plStatusLog::AddLineS("patcher.log", msg.cstr());
plStatusLog::AddLineS("patcher.log", msg.c_str());
if (IS_NET_SUCCESS(s_patchResult))
s_patchResult = result;
@ -219,7 +219,7 @@ static void FileSrvIpAddressCallback (
if (IS_NET_ERROR(result)) {
plString msg = plString::Format("FileSrvIpAddressRequest failed: %S", NetErrorToString(result));
plStatusLog::AddLineS("patcher.log", msg.cstr());
plStatusLog::AddLineS("patcher.log", msg.c_str());
s_patchResult = result;
s_downloadComplete = true;

Loading…
Cancel
Save