diff options
| author | 2018-07-21 18:30:04 -0700 | |
|---|---|---|
| committer | 2018-07-21 18:30:04 -0700 | |
| commit | 9533875eeb729d20ce2f92e9363a55c5894d262a (patch) | |
| tree | fb594e919f10e136dfcb523a71b1dd6a3a30bb53 /src/core/telemetry_session.cpp | |
| parent | Merge pull request #762 from Subv/ioctl2 (diff) | |
| parent | file_util: Use an enum class for GetUserPath() (diff) | |
| download | yuzu-9533875eeb729d20ce2f92e9363a55c5894d262a.tar.gz yuzu-9533875eeb729d20ce2f92e9363a55c5894d262a.tar.xz yuzu-9533875eeb729d20ce2f92e9363a55c5894d262a.zip | |
Merge pull request #760 from lioncash/path
file_util: Use an enum class for GetUserPath()
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()) { |