Move Achievements::Shutdown to PSP_Shutdown

This commit is contained in:
Henrik Rydgård 2023-07-16 09:10:39 +02:00
parent 36d26613d3
commit 5245a691ca
2 changed files with 2 additions and 1 deletions

View file

@ -545,6 +545,8 @@ bool PSP_IsQuitting() {
} }
void PSP_Shutdown() { void PSP_Shutdown() {
Achievements::UnloadGame();
// Do nothing if we never inited. // Do nothing if we never inited.
if (!pspIsInited && !pspIsIniting && !pspIsQuitting) { if (!pspIsInited && !pspIsIniting && !pspIsQuitting) {
return; return;

View file

@ -405,7 +405,6 @@ void EmuScreen::bootComplete() {
EmuScreen::~EmuScreen() { EmuScreen::~EmuScreen() {
// If we were invalid, it would already be shutdown. // If we were invalid, it would already be shutdown.
Achievements::UnloadGame();
if (!invalid_ || bootPending_) { if (!invalid_ || bootPending_) {
PSP_Shutdown(); PSP_Shutdown();
} }