summaryrefslogtreecommitdiffstats
path: root/lib/class/localplay.class.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/class/localplay.class.php')
-rw-r--r--lib/class/localplay.class.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/class/localplay.class.php b/lib/class/localplay.class.php
index 4c96f559..9e9cabaf 100644
--- a/lib/class/localplay.class.php
+++ b/lib/class/localplay.class.php
@@ -65,6 +65,28 @@ class Localplay {
/**
+ * _load_player
+ * This function attempts to load the player class that localplay
+ * Will interface with in order to make all this magical stuf work
+ * all LocalPlay modules should be located in /modules/<name>/<name>.class.php
+ */
+ function _load_player() {
+
+ $filename = conf('prefix') . '/modules/localplay/' . $this->type . '.controller.php';
+ $include = require_once ($filename);
+
+ if (!$include) {
+ /* Throw Error Here */
+
+ } // include
+ else {
+ $class_name = $this->type;
+ $this->_player = new $class_name();
+ }
+
+ } // _load_player
+
+ /**
* has_function
* This is used to check the function map and see if the current
* player type supports the indicated function.