diff options
author | Michael Stummvoll <michael@stummi.org> | 2010-11-24 17:00:40 +0000 |
---|---|---|
committer | Michael Stummvoll <michael@stummi.org> | 2010-11-24 17:00:40 +0000 |
commit | 70bbbcdf92c880d8fd0ca84fa612ede7c7021c00 (patch) | |
tree | 9eff6bd4fab723dcde00e1fa4325d4e36b7f31cb /apps | |
parent | 0c4e658f8425a570d0d4d68cd046d05f41b81225 (diff) | |
download | rockbox-70bbbcdf92c880d8fd0ca84fa612ede7c7021c00.tar.gz rockbox-70bbbcdf92c880d8fd0ca84fa612ede7c7021c00.zip |
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
Diffstat (limited to 'apps')
-rw-r--r-- | apps/plugins/rockboy/loader.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/apps/plugins/rockboy/loader.c b/apps/plugins/rockboy/loader.c index 32ec7f95c4..8741dabd12 100644 --- a/apps/plugins/rockboy/loader.c +++ b/apps/plugins/rockboy/loader.c | |||
@@ -221,7 +221,6 @@ static int rom_load(void) | |||
221 | static int sram_load(void) | 221 | static int sram_load(void) |
222 | { | 222 | { |
223 | int fd; | 223 | int fd; |
224 | char meow[500]; | ||
225 | 224 | ||
226 | if (!mbc.batt || !*sramfile) return -1; | 225 | if (!mbc.batt || !*sramfile) return -1; |
227 | 226 | ||
@@ -229,11 +228,7 @@ static int sram_load(void) | |||
229 | ram.loaded = 1; | 228 | ram.loaded = 1; |
230 | 229 | ||
231 | fd = open(sramfile, O_RDONLY); | 230 | fd = open(sramfile, O_RDONLY); |
232 | snprintf(meow,499,"Opening %s",sramfile); | ||
233 | rb->splash(0, meow); | ||
234 | if (fd<0) return -1; | 231 | if (fd<0) return -1; |
235 | snprintf(meow,499,"Loading savedata from %s",sramfile); | ||
236 | rb->splash(0, meow); | ||
237 | read(fd,ram.sbank, 8192*mbc.ramsize); | 232 | read(fd,ram.sbank, 8192*mbc.ramsize); |
238 | close(fd); | 233 | close(fd); |
239 | 234 | ||
@@ -244,15 +239,12 @@ static int sram_load(void) | |||
244 | static int sram_save(void) | 239 | static int sram_save(void) |
245 | { | 240 | { |
246 | int fd; | 241 | int fd; |
247 | char meow[500]; | ||
248 | 242 | ||
249 | /* If we crash before we ever loaded sram, DO NOT SAVE! */ | 243 | /* If we crash before we ever loaded sram, DO NOT SAVE! */ |
250 | if (!mbc.batt || !ram.loaded || !mbc.ramsize) | 244 | if (!mbc.batt || !ram.loaded || !mbc.ramsize) |
251 | return -1; | 245 | return -1; |
252 | fd = open(sramfile, O_WRONLY|O_CREAT|O_TRUNC, 0666); | 246 | fd = open(sramfile, O_WRONLY|O_CREAT|O_TRUNC, 0666); |
253 | if (fd<0) return -1; | 247 | if (fd<0) return -1; |
254 | snprintf(meow,499,"Saving savedata to %s",sramfile); | ||
255 | rb->splash(0, meow); | ||
256 | write(fd,ram.sbank, 8192*mbc.ramsize); | 248 | write(fd,ram.sbank, 8192*mbc.ramsize); |
257 | close(fd); | 249 | close(fd); |
258 | 250 | ||
@@ -289,7 +281,6 @@ void loader_init(const char *s) | |||
289 | romfile = s; | 281 | romfile = s; |
290 | if(rom_load()) | 282 | if(rom_load()) |
291 | return; | 283 | return; |
292 | rb->splash(0, rom.name); | ||
293 | 284 | ||
294 | snprintf(saveprefix, 499, "%s/%s", savedir, rom.name); | 285 | snprintf(saveprefix, 499, "%s/%s", savedir, rom.name); |
295 | 286 | ||