mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 13:30:02 +00:00
Correctly shutdown dialogs on game reset.
This commit is contained in:
parent
aaddde2f62
commit
7d17ed8a8e
@ -58,7 +58,7 @@ void PSPDialog::DisplayMessage(std::string text)
|
||||
PPGeDrawTextWrapped(text.c_str(), 40, 50, 420, PPGE_ALIGN_LEFT, 0.55f, CalcFadedColor(0xFFFFFFFF));
|
||||
}
|
||||
|
||||
int PSPDialog::Shutdown()
|
||||
int PSPDialog::Shutdown(bool force)
|
||||
{
|
||||
status = SCE_UTILITY_STATUS_SHUTDOWN;
|
||||
return 0;
|
||||
|
@ -52,7 +52,7 @@ public:
|
||||
virtual ~PSPDialog();
|
||||
|
||||
virtual int Update();
|
||||
virtual int Shutdown();
|
||||
virtual int Shutdown(bool force = false);
|
||||
virtual void DoState(PointerWrap &p);
|
||||
|
||||
enum DialogStatus
|
||||
|
@ -239,7 +239,7 @@ int PSPMsgDialog::Abort()
|
||||
return PSPDialog::Shutdown();
|
||||
}
|
||||
|
||||
int PSPMsgDialog::Shutdown()
|
||||
int PSPMsgDialog::Shutdown(bool force)
|
||||
{
|
||||
return PSPDialog::Shutdown();
|
||||
}
|
||||
|
@ -59,7 +59,7 @@ public:
|
||||
|
||||
virtual int Init(unsigned int paramAddr);
|
||||
virtual int Update();
|
||||
virtual int Shutdown();
|
||||
virtual int Shutdown(bool force = false);
|
||||
virtual void DoState(PointerWrap &p);
|
||||
int Abort();
|
||||
|
||||
|
@ -860,9 +860,9 @@ int PSPSaveDialog::Update()
|
||||
return 0;
|
||||
}
|
||||
|
||||
int PSPSaveDialog::Shutdown()
|
||||
int PSPSaveDialog::Shutdown(bool force)
|
||||
{
|
||||
if (status != SCE_UTILITY_STATUS_FINISHED)
|
||||
if (status != SCE_UTILITY_STATUS_FINISHED && !force)
|
||||
return SCE_ERROR_UTILITY_INVALID_STATUS;
|
||||
|
||||
PSPDialog::Shutdown();
|
||||
|
@ -69,7 +69,7 @@ public:
|
||||
|
||||
virtual int Init(int paramAddr);
|
||||
virtual int Update();
|
||||
virtual int Shutdown();
|
||||
virtual int Shutdown(bool force = false);
|
||||
virtual void DoState(PointerWrap &p);
|
||||
|
||||
private :
|
||||
|
@ -77,10 +77,10 @@ void __UtilityDoState(PointerWrap &p)
|
||||
|
||||
void __UtilityShutdown()
|
||||
{
|
||||
saveDialog.Shutdown();
|
||||
msgDialog.Shutdown();
|
||||
oskDialog.Shutdown();
|
||||
netDialog.Shutdown();
|
||||
saveDialog.Shutdown(true);
|
||||
msgDialog.Shutdown(true);
|
||||
oskDialog.Shutdown(true);
|
||||
netDialog.Shutdown(true);
|
||||
}
|
||||
|
||||
int __UtilityGetStatus()
|
||||
|
Loading…
Reference in New Issue
Block a user