summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-08-21 02:06:22 +0200
committerLioncash <mathew1800@gmail.com>2018-08-21 02:06:25 +0200
commitb5fb246a99962b69079a6742b602d58a3f15a843 (patch)
treefe2bf37d59c323ad20ba6cb5951762d56414987b
parentMerge pull request #1064 from lioncash/telemetry (diff)
downloadyuzu-b5fb246a99962b69079a6742b602d58a3f15a843.tar
yuzu-b5fb246a99962b69079a6742b602d58a3f15a843.tar.gz
yuzu-b5fb246a99962b69079a6742b602d58a3f15a843.tar.bz2
yuzu-b5fb246a99962b69079a6742b602d58a3f15a843.tar.lz
yuzu-b5fb246a99962b69079a6742b602d58a3f15a843.tar.xz
yuzu-b5fb246a99962b69079a6742b602d58a3f15a843.tar.zst
yuzu-b5fb246a99962b69079a6742b602d58a3f15a843.zip
-rw-r--r--src/core/telemetry_session.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/telemetry_session.cpp b/src/core/telemetry_session.cpp
index 7e4584fc2..69383330f 100644
--- a/src/core/telemetry_session.cpp
+++ b/src/core/telemetry_session.cpp
@@ -19,8 +19,8 @@ static u64 GenerateTelemetryId() {
u64 GetTelemetryId() {
u64 telemetry_id{};
- static const std::string& filename{FileUtil::GetUserPath(FileUtil::UserPath::ConfigDir) +
- "telemetry_id"};
+ const std::string filename{FileUtil::GetUserPath(FileUtil::UserPath::ConfigDir) +
+ "telemetry_id"};
if (FileUtil::Exists(filename)) {
FileUtil::IOFile file(filename, "rb");
@@ -44,8 +44,8 @@ u64 GetTelemetryId() {
u64 RegenerateTelemetryId() {
const u64 new_telemetry_id{GenerateTelemetryId()};
- static const std::string& filename{FileUtil::GetUserPath(FileUtil::UserPath::ConfigDir) +
- "telemetry_id"};
+ const std::string filename{FileUtil::GetUserPath(FileUtil::UserPath::ConfigDir) +
+ "telemetry_id"};
FileUtil::IOFile file(filename, "wb");
if (!file.IsOpen()) {