From 2d8e03d177d20f22c2776b77b2d704a5009ce0fa Mon Sep 17 00:00:00 2001 From: chriszero Date: Sat, 21 Feb 2015 16:43:14 +0100 Subject: Add feature: recovers menustate before playing --- plex.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'plex.h') diff --git a/plex.h b/plex.h index 89075f5..c2570c8 100644 --- a/plex.h +++ b/plex.h @@ -56,10 +56,15 @@ private: eOSState LevelUp(void); /// Handle menu item selection eOSState ProcessSelected(); + + static std::shared_ptr pLastService; + static int lastCurrentItem; public: cPlexBrowser(const char *title, std::shared_ptr Service); virtual eOSState ProcessKey(eKeys); + + static cPlexBrowser* RecoverLastState(); }; @@ -98,6 +103,9 @@ public: virtual bool SetupParse(const char *, const char *); static void PlayFile(plexclient::Video Vid); + +public: + static volatile bool CalledFromCode; }; -- cgit v1.2.3