diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-02-01 15:08:12 +0100 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-02-01 15:08:12 +0100 |
commit | cb1ce1416948bea94bd0bb4bb3a66a74cc16557b (patch) | |
tree | 9809332db528931f427a3ca6f46d46f561a644be /source/cPlayer.cpp | |
parent | AString logging fix (diff) | |
download | cuberite-cb1ce1416948bea94bd0bb4bb3a66a74cc16557b.tar cuberite-cb1ce1416948bea94bd0bb4bb3a66a74cc16557b.tar.gz cuberite-cb1ce1416948bea94bd0bb4bb3a66a74cc16557b.tar.bz2 cuberite-cb1ce1416948bea94bd0bb4bb3a66a74cc16557b.tar.lz cuberite-cb1ce1416948bea94bd0bb4bb3a66a74cc16557b.tar.xz cuberite-cb1ce1416948bea94bd0bb4bb3a66a74cc16557b.tar.zst cuberite-cb1ce1416948bea94bd0bb4bb3a66a74cc16557b.zip |
Diffstat (limited to '')
-rw-r--r-- | source/cPlayer.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/cPlayer.cpp b/source/cPlayer.cpp index f10dc3586..982427a86 100644 --- a/source/cPlayer.cpp +++ b/source/cPlayer.cpp @@ -799,7 +799,7 @@ bool cPlayer::LoadFromDisk() std::auto_ptr<char> buffer(new char[FileSize]);
if (f.Read(buffer.get(), FileSize) != FileSize)
{
- LOGERROR("ERROR READING FROM FILE \"%s\"", SourceFile);
+ LOGERROR("ERROR READING FROM FILE \"%s\"", SourceFile.c_str());
return false;
}
f.Close();
@@ -808,7 +808,7 @@ bool cPlayer::LoadFromDisk() Json::Reader reader;
if (!reader.parse(buffer.get(), root, false))
{
- LOGERROR("ERROR WHILE PARSING JSON FROM FILE %s", SourceFile);
+ LOGERROR("ERROR WHILE PARSING JSON FROM FILE %s", SourceFile.c_str());
}
buffer.reset();
@@ -882,12 +882,12 @@ bool cPlayer::SaveToDisk() cFile f;
if (!f.Open(SourceFile, cFile::fmWrite))
{
- LOGERROR("ERROR WRITING PLAYER \"%s\" TO FILE \"%s\" - cannot open file", m_pState->PlayerName.c_str(), SourceFile);
+ LOGERROR("ERROR WRITING PLAYER \"%s\" TO FILE \"%s\" - cannot open file", m_pState->PlayerName.c_str(), SourceFile.c_str());
return false;
}
if (f.Write(JsonData.c_str(), JsonData.size()) != JsonData.size())
{
- LOGERROR("ERROR WRITING PLAYER JSON TO FILE \"%s\"", SourceFile);
+ LOGERROR("ERROR WRITING PLAYER JSON TO FILE \"%s\"", SourceFile.c_str());
return false;
}
return true;
|