diff options
Diffstat (limited to 'src/core/telemetry_session.cpp')
| -rw-r--r-- | src/core/telemetry_session.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/telemetry_session.cpp b/src/core/telemetry_session.cpp index b9a603df3..69aa7a7be 100644 --- a/src/core/telemetry_session.cpp +++ b/src/core/telemetry_session.cpp | |||
| @@ -37,7 +37,8 @@ static u64 GenerateTelemetryId() { | |||
| 37 | 37 | ||
| 38 | u64 GetTelemetryId() { | 38 | u64 GetTelemetryId() { |
| 39 | u64 telemetry_id{}; | 39 | u64 telemetry_id{}; |
| 40 | static const std::string& filename{FileUtil::GetUserPath(D_CONFIG_IDX) + "telemetry_id"}; | 40 | static const std::string& filename{FileUtil::GetUserPath(FileUtil::UserPath::ConfigDir) + |
| 41 | "telemetry_id"}; | ||
| 41 | 42 | ||
| 42 | if (FileUtil::Exists(filename)) { | 43 | if (FileUtil::Exists(filename)) { |
| 43 | FileUtil::IOFile file(filename, "rb"); | 44 | FileUtil::IOFile file(filename, "rb"); |
| @@ -61,7 +62,8 @@ u64 GetTelemetryId() { | |||
| 61 | 62 | ||
| 62 | u64 RegenerateTelemetryId() { | 63 | u64 RegenerateTelemetryId() { |
| 63 | const u64 new_telemetry_id{GenerateTelemetryId()}; | 64 | const u64 new_telemetry_id{GenerateTelemetryId()}; |
| 64 | static const std::string& filename{FileUtil::GetUserPath(D_CONFIG_IDX) + "telemetry_id"}; | 65 | static const std::string& filename{FileUtil::GetUserPath(FileUtil::UserPath::ConfigDir) + |
| 66 | "telemetry_id"}; | ||
| 65 | 67 | ||
| 66 | FileUtil::IOFile file(filename, "wb"); | 68 | FileUtil::IOFile file(filename, "wb"); |
| 67 | if (!file.IsOpen()) { | 69 | if (!file.IsOpen()) { |