/*
* This file is part of the libCEC(R) library.
*
- * libCEC(R) is Copyright (C) 2011-2012 Pulse-Eight Limited. All rights reserved.
+ * libCEC(R) is Copyright (C) 2011-2013 Pulse-Eight Limited. All rights reserved.
* libCEC(R) is an original work, containing original code.
*
* libCEC(R) is a trademark of Pulse-Eight Limited.
{
if (item.Length > 0)
{
- var app = ApplicationController.FromString(_controller.Settings, item);
+ var app = ApplicationController.FromString(_controller, _controller.Settings, item);
if (app != null)
_controllers.Add(app.ProcessName, app);
}
get
{
var defaultValues = new Dictionary<string, ApplicationController>();
- WMCController wmcController = new WMCController(_controller.Settings);
+ WMCController wmcController = new WMCController(_controller);
defaultValues.Add(wmcController.ProcessName, wmcController);
- XBMCController xbmcController = new XBMCController(_controller.Settings);
+ XBMCController xbmcController = new XBMCController(_controller);
defaultValues.Add(xbmcController.ProcessName, xbmcController);
return defaultValues;
public static void Initialise(CECController controller)
{
_controller = controller;
- _instance = new Applications();
+ if (_instance == null)
+ _instance = new Applications();
controller.Settings["global_applications"] = _instance;
controller.Settings.Load(_instance);