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)
|
||||
{
|
||||
#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();
|
||||
if(pid == 0)
|
||||
{
|
||||
|
|
@ -490,6 +495,7 @@ static void adb(int start)
|
|||
lcd_putsf(0, 1, "an error occured: %x", status);
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
||||
static void tools_screen(void)
|
||||
|
|
@ -615,7 +621,11 @@ int main(int argc, char **argv)
|
|||
#endif
|
||||
mount_storage(false);
|
||||
/* boot OF */
|
||||
#if defined(FIIO_M3K)
|
||||
execvp("/usr/project/bin/player_daemon", argv);
|
||||
#else
|
||||
execvp("/usr/bin/hiby_player", argv);
|
||||
#endif
|
||||
error_screen("Cannot boot OF");
|
||||
sleep(5 * HZ);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue