From c2ef287f51fdba4f696e6cd893a1000fcaf84598 Mon Sep 17 00:00:00 2001 From: Sacha Date: Sat, 1 Jun 2013 17:10:22 +1000 Subject: [PATCH] Buildfix for Symbian/Meego and other platforms. --- Core/Dialog/PSPOskDialog.cpp | 10 ++++++++++ Core/Dialog/PSPOskDialog.h | 1 + 2 files changed, 11 insertions(+) diff --git a/Core/Dialog/PSPOskDialog.cpp b/Core/Dialog/PSPOskDialog.cpp index 5054b9330b..3d9bf7bddf 100755 --- a/Core/Dialog/PSPOskDialog.cpp +++ b/Core/Dialog/PSPOskDialog.cpp @@ -862,6 +862,16 @@ static void DoBasePointer(PointerWrap &p, T **ptr) } +int PSPOskDialog::Shutdown(bool force) +{ + if (status != SCE_UTILITY_STATUS_FINISHED && !force) + return SCE_ERROR_UTILITY_INVALID_STATUS; + + PSPDialog::Shutdown(); + + return 0; +} + void PSPOskDialog::DoState(PointerWrap &p) { PSPDialog::DoState(p); diff --git a/Core/Dialog/PSPOskDialog.h b/Core/Dialog/PSPOskDialog.h index 886b229c5e..c3e587834c 100644 --- a/Core/Dialog/PSPOskDialog.h +++ b/Core/Dialog/PSPOskDialog.h @@ -161,6 +161,7 @@ public: virtual int Init(u32 oskPtr); virtual int Update(); + virtual int Shutdown(bool force = false); virtual void DoState(PointerWrap &p); private: void ConvertUCS2ToUTF8(std::string& _string, const u32 em_address);