diff --git a/source/ps/CConsole.cpp b/source/ps/CConsole.cpp index 966de9a90b..785c98e2df 100644 --- a/source/ps/CConsole.cpp +++ b/source/ps/CConsole.cpp @@ -639,9 +639,9 @@ void CConsole::SaveHistory() } if (g_VFS->CreateFile(m_HistoryFile, buffer.Data(), buffer.Size()) == INFO::OK) - ONCE(debug_printf("FILES| Console command history written to %s\n", m_HistoryFile.string8().c_str())); + ONCE(debug_printf("FILES| Console command history written to '%s'\n", m_HistoryFile.string8().c_str())); else - debug_printf("FILES| Failed to write console command history to %s\n", m_HistoryFile.string8().c_str()); + debug_printf("FILES| Failed to write console command history to '%s'\n", m_HistoryFile.string8().c_str()); } static bool isUnprintableChar(SDL_Keysym key) diff --git a/source/ps/CLogger.cpp b/source/ps/CLogger.cpp index e12f05641f..96d54f00da 100644 --- a/source/ps/CLogger.cpp +++ b/source/ps/CLogger.cpp @@ -72,11 +72,11 @@ CLogger::CLogger() { OsPath mainlogPath(psLogDir() / (L"mainlog" + g_UniqueLogPostfix + L".html")); m_MainLog = new std::ofstream(OsString(mainlogPath).c_str(), std::ofstream::out | std::ofstream::trunc); - debug_printf("FILES| Main log written to %s\n", mainlogPath.string8().c_str()); + debug_printf("FILES| Main log written to '%s'\n", mainlogPath.string8().c_str()); OsPath interestinglogPath(psLogDir() / (L"interestinglog" + g_UniqueLogPostfix + L".html")); m_InterestingLog = new std::ofstream(OsString(interestinglogPath).c_str(), std::ofstream::out | std::ofstream::trunc); - debug_printf("FILES| Interesting log written to %s\n", interestinglogPath.string8().c_str()); + debug_printf("FILES| Interesting log written to '%s'\n", interestinglogPath.string8().c_str()); m_OwnsStreams = true; m_UseDebugPrintf = true; diff --git a/source/ps/Replay.cpp b/source/ps/Replay.cpp index dbf561156c..843234a483 100644 --- a/source/ps/Replay.cpp +++ b/source/ps/Replay.cpp @@ -82,7 +82,7 @@ void CReplayLogger::StartGame(JS::MutableHandleValue attribs) Script::SetProperty(rq, attribs, "mods", mods); m_Directory = createDateIndexSubdirectory(VisualReplay::GetDirectoryPath()); - debug_printf("FILES| Replay written to %s\n", m_Directory.string8().c_str()); + debug_printf("FILES| Replay written to '%s'\n", m_Directory.string8().c_str()); m_Stream = new std::ofstream(OsString(m_Directory / L"commands.txt").c_str(), std::ofstream::out | std::ofstream::trunc); *m_Stream << "start " << Script::StringifyJSON(rq, attribs, false) << "\n"; @@ -133,10 +133,10 @@ void CReplayLogger::SaveMetadata(const CSimulation2& simulation) { stream << Script::StringifyJSON(rq, &metadata, false); stream.close(); - debug_printf("FILES| Replay metadata written to %s\n", fileName.string8().c_str()); + debug_printf("FILES| Replay metadata written to '%s'\n", fileName.string8().c_str()); } else - debug_printf("FILES| Failed to write replay metadata to %s\n", fileName.string8().c_str()); + debug_printf("FILES| Failed to write replay metadata to '%s'\n", fileName.string8().c_str()); } diff --git a/source/ps/UserReport.cpp b/source/ps/UserReport.cpp index 07d5d892e9..73805be9d3 100644 --- a/source/ps/UserReport.cpp +++ b/source/ps/UserReport.cpp @@ -616,12 +616,12 @@ void CUserReporter::SubmitReport(const std::string& type, int version, const std std::ofstream stream(OsString(path), std::ofstream::trunc); if (stream) { - debug_printf("FILES| UserReport written to %s\n", path.string8().c_str()); + debug_printf("FILES| UserReport written to '%s'\n", path.string8().c_str()); stream << dataHumanReadable << std::endl; stream.close(); } else - debug_printf("FILES| Failed to write UserReport to %s\n", path.string8().c_str()); + debug_printf("FILES| Failed to write UserReport to '%s'\n", path.string8().c_str()); } // If not initialised, discard the report diff --git a/source/ps/Util.cpp b/source/ps/Util.cpp index bda0a7b159..e5b174da64 100644 --- a/source/ps/Util.cpp +++ b/source/ps/Util.cpp @@ -123,7 +123,7 @@ void WriteSystemInfo() fclose(f); f = 0; - debug_printf("FILES| Hardware details written to %s\n", pathname.string8().c_str()); + debug_printf("FILES| Hardware details written to '%s'\n", pathname.string8().c_str()); } diff --git a/source/ps/scripting/JSInterface_VFS.cpp b/source/ps/scripting/JSInterface_VFS.cpp index 87880a90cd..596b3436ff 100644 --- a/source/ps/scripting/JSInterface_VFS.cpp +++ b/source/ps/scripting/JSInterface_VFS.cpp @@ -227,9 +227,9 @@ void WriteJSONFile(const ScriptInterface& scriptInterface, const std::wstring& f OsPath realPath; g_VFS->GetRealPath(path, realPath, false); if (g_VFS->CreateFile(path, buf.Data(), buf.Size()) == INFO::OK) - debug_printf("FILES| JSON data written to %s\n", realPath.string8().c_str()); + debug_printf("FILES| JSON data written to '%s'\n", realPath.string8().c_str()); else - debug_printf("FILES| Failed to write JSON data to %s\n", realPath.string8().c_str()); + debug_printf("FILES| Failed to write JSON data to '%s'\n", realPath.string8().c_str()); } bool DeleteCampaignSave(const CStrW& filePath)