forked from mirrors/0ad
Show system_info.txt, console.txt, json file, userreport_hw.txt paths in the terminal when it's written to the disk.
Discussed with: @vladislavbelov Idea by: @elexis Differential Revsion: https://code.wildfiregames.com/D2212 This was SVN commit r26544.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2021 Wildfire Games.
|
||||
/* Copyright (C) 2022 Wildfire Games.
|
||||
* This file is part of 0 A.D.
|
||||
*
|
||||
* 0 A.D. is free software: you can redistribute it and/or modify
|
||||
@@ -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("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("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
|
||||
|
||||
Reference in New Issue
Block a user