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() {
Achievements::UnloadGame();
// Do nothing if we never inited.
if (!pspIsInited && !pspIsIniting && !pspIsQuitting) {
return;

View file

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