Permalink
Browse files

[rbp] added raspberrypi support to xbmc app

  • Loading branch information...
1 parent 9871aca commit af492074d9751504d181151d51b4d75d877edde5 @huceke committed Aug 10, 2012
Showing with 15 additions and 0 deletions.
  1. +15 −0 xbmc/xbmc.cpp
View
@@ -21,10 +21,21 @@
#include "Application.h"
#include "settings/AdvancedSettings.h"
+
+#ifdef TARGET_RASPBERRY_PI
+#include "linux/RBP.h"
+#endif
+
extern "C" int XBMC_Run(bool renderGUI)
{
int status = -1;
+#ifdef TARGET_RASPBERRY_PI
+ if(!g_RBP.Initialize())
+ return false;
+ g_RBP.LogFirmwareVerison();
+#endif
+
if (!g_advancedSettings.Initialized())
{
#ifdef _DEBUG
@@ -63,5 +74,9 @@ extern "C" int XBMC_Run(bool renderGUI)
status = -1;
}
+#ifdef TARGET_RASPBERRY_PI
+ g_RBP.Deinitialize();
+#endif
+
return status;
}

0 comments on commit af49207

Please sign in to comment.