diff options
Diffstat (limited to 'lib/class/localplay.class.php')
-rw-r--r-- | lib/class/localplay.class.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/class/localplay.class.php b/lib/class/localplay.class.php index 2b0d6b12..6e01bfe0 100644 --- a/lib/class/localplay.class.php +++ b/lib/class/localplay.class.php @@ -218,6 +218,25 @@ class Localplay { } // install /** + * uninstall + * This runs the uninstall for the localplay controller we've + * currently pimped out + */ + public function uninstall() { + + // Run the players uninstaller + $this->_player->uninstall(); + + // If its our current player, reset player to nothing + if ($GLOBALS['user']->prefs['localplay_controller'] == $this->type) { + Preference::update('localplay_controller',$GLOBALS['user']->id,''); + } + + return true; + + } // uninstall + + /** * connect * This function attempts to connect to the localplay * player that we are using |