Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit a3a79ef6bab635d4288184775765aed311a0f20c 1 parent 490bc0f
@huceke authored
Showing with 7 additions and 6 deletions.
  1. +7 −6 xbmc/xbmc.cpp
View
13 xbmc/xbmc.cpp
@@ -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");
Please sign in to comment.
Something went wrong with that request. Please try again.