Permalink
Browse files

[rbp] fixed move RBP platform init after setup of the environment oth…

…erwise a debug build will assert in specialprotocoll.
  • Loading branch information...
1 parent 490bc0f commit a3a79ef6bab635d4288184775765aed311a0f20c @huceke huceke committed Aug 21, 2012
Showing with 7 additions and 6 deletions.
  1. +7 −6 xbmc/xbmc.cpp
View
@@ -30,12 +30,6 @@ 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
@@ -53,6 +47,13 @@ extern "C" int XBMC_Run(bool renderGUI)
fprintf(stderr, "ERROR: Unable to create application. Exiting\n");
return status;
}
+
+#ifdef TARGET_RASPBERRY_PI
+ if(!g_RBP.Initialize())
+ return false;
+ g_RBP.LogFirmwareVerison();
+#endif
+
if (renderGUI && !g_application.CreateGUI())
{
fprintf(stderr, "ERROR: Unable to create GUI. Exiting\n");

0 comments on commit a3a79ef

Please sign in to comment.