Skip to content

Commit

Permalink
Token name and path fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed Jun 26, 2023
1 parent d4239e7 commit 81e1293
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions UI/NativeApp.cpp
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion UI/RetroAchievements.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit 81e1293

Please sign in to comment.