1
0
Fork 0
forked from len0rd/rockbox

Rockboy: Changed the time of showing splash messages to 0 to decrase loading time.

now the messages will only shown as long as needed.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28660 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Michael Stummvoll 2010-11-24 16:44:10 +00:00
parent 05434ebaf8
commit 0c4e658f84

View file

@ -229,11 +229,11 @@ static int sram_load(void)
ram.loaded = 1; ram.loaded = 1;
fd = open(sramfile, O_RDONLY); fd = open(sramfile, O_RDONLY);
snprintf(meow,499,"Opening %s %d",sramfile,fd); snprintf(meow,499,"Opening %s",sramfile);
rb->splash(HZ*2, meow); rb->splash(0, meow);
if (fd<0) return -1; if (fd<0) return -1;
snprintf(meow,499,"Loading savedata from %s",sramfile); snprintf(meow,499,"Loading savedata from %s",sramfile);
rb->splash(HZ*2, meow); rb->splash(0, meow);
read(fd,ram.sbank, 8192*mbc.ramsize); read(fd,ram.sbank, 8192*mbc.ramsize);
close(fd); close(fd);
@ -252,7 +252,7 @@ static int sram_save(void)
fd = open(sramfile, O_WRONLY|O_CREAT|O_TRUNC, 0666); fd = open(sramfile, O_WRONLY|O_CREAT|O_TRUNC, 0666);
if (fd<0) return -1; if (fd<0) return -1;
snprintf(meow,499,"Saving savedata to %s",sramfile); snprintf(meow,499,"Saving savedata to %s",sramfile);
rb->splash(HZ*2, meow); rb->splash(0, meow);
write(fd,ram.sbank, 8192*mbc.ramsize); write(fd,ram.sbank, 8192*mbc.ramsize);
close(fd); close(fd);
@ -289,7 +289,7 @@ void loader_init(const char *s)
romfile = s; romfile = s;
if(rom_load()) if(rom_load())
return; return;
rb->splash(HZ/2, rom.name); rb->splash(0, rom.name);
snprintf(saveprefix, 499, "%s/%s", savedir, rom.name); snprintf(saveprefix, 499, "%s/%s", savedir, rom.name);