forked from len0rd/rockbox
Fix errors
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10138 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
6952f03a7d
commit
b0ca08b33c
1 changed files with 8 additions and 3 deletions
|
|
@ -174,11 +174,15 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
|
||||||
|
|
||||||
rb->lcd_setfont(0);
|
rb->lcd_setfont(0);
|
||||||
|
|
||||||
|
#if defined(HAVE_LCD_COLOR)
|
||||||
rb->lcd_set_foreground(LCD_WHITE);
|
rb->lcd_set_foreground(LCD_WHITE);
|
||||||
rb->lcd_set_background(LCD_BLACK);
|
rb->lcd_set_background(LCD_BLACK);
|
||||||
|
#endif
|
||||||
|
|
||||||
rb->lcd_clear_display();
|
rb->lcd_clear_display();
|
||||||
|
|
||||||
if (!parameter) {
|
if (!parameter)
|
||||||
|
{
|
||||||
rb->splash(HZ*3, true, "Play gameboy ROM file! (.gb/.gbc)");
|
rb->splash(HZ*3, true, "Play gameboy ROM file! (.gb/.gbc)");
|
||||||
return PLUGIN_OK;
|
return PLUGIN_OK;
|
||||||
}
|
}
|
||||||
|
|
@ -204,14 +208,15 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
|
||||||
/* rb->lcd_clear_display(); */
|
/* rb->lcd_clear_display(); */
|
||||||
gnuboy_main(parameter);
|
gnuboy_main(parameter);
|
||||||
|
|
||||||
if(shut&&!cleanshut) {
|
if(shut&&!cleanshut)
|
||||||
|
{
|
||||||
rb->splash(HZ/2, true, errormsg);
|
rb->splash(HZ/2, true, errormsg);
|
||||||
return PLUGIN_ERROR;
|
return PLUGIN_ERROR;
|
||||||
}
|
}
|
||||||
pcm_close();
|
pcm_close();
|
||||||
rb->splash(HZ/2, true, "Shutting down");
|
rb->splash(HZ/2, true, "Shutting down");
|
||||||
|
|
||||||
savesettings();
|
savesettings();
|
||||||
|
|
||||||
cleanup();
|
cleanup();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue