From 81e1293693e423ad5e039cb0933d2ab957ab0aa9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Mon, 26 Jun 2023 17:21:39 +0200 Subject: [PATCH] Token name and path fix --- UI/NativeApp.cpp | 4 ++-- UI/RetroAchievements.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/UI/NativeApp.cpp b/UI/NativeApp.cpp index 024f3e7883..d2650bf961 100644 --- a/UI/NativeApp.cpp +++ b/UI/NativeApp.cpp @@ -1423,8 +1423,8 @@ void NativeShutdown() { // In the future, we might make this more sophisticated, such as storing in the app private directory on Android. // Right now we just store secrets in separate files next to ppsspp.ini. The important thing is keeping them out of it // since we often ask people to post or send the ini for debugging. -Path GetSecretPath(const char *nameOfSecret) { - return g_Config.memStickDirectory / ("PSP/SYSTEM/ppsspp_" + std::string(nameOfSecret) + ".dat"); +static Path GetSecretPath(const char *nameOfSecret) { + return GetSysDirectory(DIRECTORY_SYSTEM) / ("ppsspp_" + std::string(nameOfSecret) + ".dat"); } // name should be simple alphanumerics to avoid problems on Windows. diff --git a/UI/RetroAchievements.cpp b/UI/RetroAchievements.cpp index f0ad6f622d..740a6fb9d7 100644 --- a/UI/RetroAchievements.cpp +++ b/UI/RetroAchievements.cpp @@ -164,7 +164,7 @@ static constexpr UI::UISound UNLOCK_SOUND_NAME = UI::UISound::TOGGLE_ON; static constexpr UI::UISound LBSUBMIT_SOUND_NAME = UI::UISound::TOGGLE_OFF; // It's the name of the secret, not a secret name - the value is not secret :) -static const char *RA_TOKEN_SECRET_NAME = "retroachievements "; +static const char *RA_TOKEN_SECRET_NAME = "retroachievements"; static void FormattedError(const char *format, ...); static void LogFailedResponseJSON(const Common::HTTPDownloader::Request::Data &data);