From 60bb43d35c248596bf862deee3c3e631a2c26a6c Mon Sep 17 00:00:00 2001 From: LeXofLeviafan Date: Sat, 28 Jun 2025 02:37:16 +0200 Subject: [PATCH] Cmd line: fix RA init with -d1 parameter --- source/RetroAchievements.cpp | 4 ++-- source/RetroAchievements.h | 2 +- source/Windows/AppleWin.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/source/RetroAchievements.cpp b/source/RetroAchievements.cpp index 741955e86..2c0c898e8 100644 --- a/source/RetroAchievements.cpp +++ b/source/RetroAchievements.cpp @@ -179,7 +179,7 @@ static void RA_InitShared() RA_InstallSharedFunctions(&GameIsActive, &CauseUnpause, &CausePause, &RebuildMenu, &GetEstimatedGameTitle, &ResetEmulation, &LoadROM); } -void RA_InitSystem() +void RA_InitSystem(bool waitForLogin) { if (is_initialized) { @@ -191,7 +191,7 @@ void RA_InitSystem() RA_Init(GetFrame().g_hFrameWindow, RA_AppleWin, RAPPLEWIN_VERSION); RA_InitShared(); - RA_AttemptLogin(false); + RA_AttemptLogin(waitForLogin); is_initialized = true; } diff --git a/source/RetroAchievements.h b/source/RetroAchievements.h index 1c75a7025..0be87e698 100644 --- a/source/RetroAchievements.h +++ b/source/RetroAchievements.h @@ -40,7 +40,7 @@ extern bool is_initialized; void reset_file_info(FileInfo *file); void free_file_info(FileInfo *file); -void RA_InitSystem(); +void RA_InitSystem(bool waitForLogin); void RA_InitUI(); void RA_InitMemory(); int RA_PrepareLoadNewRom(const char *file_name, FileType file_type); diff --git a/source/Windows/AppleWin.cpp b/source/Windows/AppleWin.cpp index 8dfbbd34a..dabb72733 100644 --- a/source/Windows/AppleWin.cpp +++ b/source/Windows/AppleWin.cpp @@ -884,7 +884,7 @@ static void RepeatInitialization(void) } #if USE_RETROACHIEVEMENTS - RA_InitSystem(); + RA_InitSystem(g_cmdLine.szImageName_drive[SLOT6][DRIVE_1] != NULL); LogFileOutput("Init: RA_InitSystem()\n"); RA_InitUI();