forked from len0rd/rockbox
Fixes a problem where the sim would try to start the WPS on HAVE_RTC_ALARM sims (FS#7862 with a small addition by me)
use the --alarm argument if you do want to simulate this behaviour git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15094 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
5fc117ea4e
commit
c9d1ab7218
2 changed files with 8 additions and 1 deletions
|
@ -169,9 +169,11 @@ bool rtc_enable_alarm(bool enable)
|
||||||
return enable;
|
return enable;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
extern bool sim_alarm_wakeup;
|
||||||
bool rtc_check_alarm_started(bool release_alarm)
|
bool rtc_check_alarm_started(bool release_alarm)
|
||||||
{
|
{
|
||||||
return release_alarm;
|
(void)release_alarm;
|
||||||
|
return sim_alarm_wakeup;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool rtc_check_alarm_flag(void)
|
bool rtc_check_alarm_flag(void)
|
||||||
|
|
|
@ -54,6 +54,7 @@ SDL_TimerID tick_timer_id;
|
||||||
|
|
||||||
bool lcd_display_redraw = true; /* Used for player simulator */
|
bool lcd_display_redraw = true; /* Used for player simulator */
|
||||||
char having_new_lcd = true; /* Used for player simulator */
|
char having_new_lcd = true; /* Used for player simulator */
|
||||||
|
bool sim_alarm_wakeup = false;
|
||||||
|
|
||||||
bool debug_audio = false;
|
bool debug_audio = false;
|
||||||
|
|
||||||
|
@ -206,6 +207,9 @@ int main(int argc, char *argv[])
|
||||||
else
|
else
|
||||||
display_zoom = 2;
|
display_zoom = 2;
|
||||||
printf("Window zoom is %d\n", display_zoom);
|
printf("Window zoom is %d\n", display_zoom);
|
||||||
|
} else if (!strcmp("--alarm", argv[x])) {
|
||||||
|
sim_alarm_wakeup = true;
|
||||||
|
printf("Simulating alarm wakeup.\n");
|
||||||
} else {
|
} else {
|
||||||
printf("rockboxui\n");
|
printf("rockboxui\n");
|
||||||
printf("Arguments:\n");
|
printf("Arguments:\n");
|
||||||
|
@ -214,6 +218,7 @@ int main(int argc, char *argv[])
|
||||||
printf(" --background \t Use background image of hardware\n");
|
printf(" --background \t Use background image of hardware\n");
|
||||||
printf(" --old_lcd \t [Player] simulate old playermodel (ROM version<4.51)\n");
|
printf(" --old_lcd \t [Player] simulate old playermodel (ROM version<4.51)\n");
|
||||||
printf(" --zoom [VAL]\t window zoom (will disable backgrounds)\n");
|
printf(" --zoom [VAL]\t window zoom (will disable backgrounds)\n");
|
||||||
|
printf(" --alarm \t Simulate a wakup-up on Alarm\n");
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue