forked from len0rd/rockbox
correction from previous commit. Completly removing the splashes is better
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28661 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
0c4e658f84
commit
70bbbcdf92
1 changed files with 0 additions and 9 deletions
|
|
@ -221,7 +221,6 @@ static int rom_load(void)
|
|||
static int sram_load(void)
|
||||
{
|
||||
int fd;
|
||||
char meow[500];
|
||||
|
||||
if (!mbc.batt || !*sramfile) return -1;
|
||||
|
||||
|
|
@ -229,11 +228,7 @@ static int sram_load(void)
|
|||
ram.loaded = 1;
|
||||
|
||||
fd = open(sramfile, O_RDONLY);
|
||||
snprintf(meow,499,"Opening %s",sramfile);
|
||||
rb->splash(0, meow);
|
||||
if (fd<0) return -1;
|
||||
snprintf(meow,499,"Loading savedata from %s",sramfile);
|
||||
rb->splash(0, meow);
|
||||
read(fd,ram.sbank, 8192*mbc.ramsize);
|
||||
close(fd);
|
||||
|
||||
|
|
@ -244,15 +239,12 @@ static int sram_load(void)
|
|||
static int sram_save(void)
|
||||
{
|
||||
int fd;
|
||||
char meow[500];
|
||||
|
||||
/* If we crash before we ever loaded sram, DO NOT SAVE! */
|
||||
if (!mbc.batt || !ram.loaded || !mbc.ramsize)
|
||||
return -1;
|
||||
fd = open(sramfile, O_WRONLY|O_CREAT|O_TRUNC, 0666);
|
||||
if (fd<0) return -1;
|
||||
snprintf(meow,499,"Saving savedata to %s",sramfile);
|
||||
rb->splash(0, meow);
|
||||
write(fd,ram.sbank, 8192*mbc.ramsize);
|
||||
close(fd);
|
||||
|
||||
|
|
@ -289,7 +281,6 @@ void loader_init(const char *s)
|
|||
romfile = s;
|
||||
if(rom_load())
|
||||
return;
|
||||
rb->splash(0, rom.name);
|
||||
|
||||
snprintf(saveprefix, 499, "%s/%s", savedir, rom.name);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue