forked from len0rd/rockbox
m3k: Fixes to the launcher/loader.
* Execute the correct OF player binary * We don't have adb, so error out Change-Id: I4fb39fcdf5e437450c059e6c1296ea6cb99298fe
This commit is contained in:
parent
1b449abf39
commit
ca4d63d4d9
1 changed files with 10 additions and 0 deletions
|
|
@ -469,6 +469,11 @@ void run_script_menu(void)
|
||||||
|
|
||||||
static void adb(int start)
|
static void adb(int start)
|
||||||
{
|
{
|
||||||
|
#if defined(FIIO_M3K)
|
||||||
|
lcd_set_foreground(LCD_RGBPACK(255, 0, 0));
|
||||||
|
lcd_putsf(0, 1, "ADB not supported!");
|
||||||
|
sleep(2*HZ);
|
||||||
|
#else
|
||||||
pid_t pid = fork();
|
pid_t pid = fork();
|
||||||
if(pid == 0)
|
if(pid == 0)
|
||||||
{
|
{
|
||||||
|
|
@ -490,6 +495,7 @@ static void adb(int start)
|
||||||
lcd_putsf(0, 1, "an error occured: %x", status);
|
lcd_putsf(0, 1, "an error occured: %x", status);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static void tools_screen(void)
|
static void tools_screen(void)
|
||||||
|
|
@ -615,7 +621,11 @@ int main(int argc, char **argv)
|
||||||
#endif
|
#endif
|
||||||
mount_storage(false);
|
mount_storage(false);
|
||||||
/* boot OF */
|
/* boot OF */
|
||||||
|
#if defined(FIIO_M3K)
|
||||||
|
execvp("/usr/project/bin/player_daemon", argv);
|
||||||
|
#else
|
||||||
execvp("/usr/bin/hiby_player", argv);
|
execvp("/usr/bin/hiby_player", argv);
|
||||||
|
#endif
|
||||||
error_screen("Cannot boot OF");
|
error_screen("Cannot boot OF");
|
||||||
sleep(5 * HZ);
|
sleep(5 * HZ);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue