forked from len0rd/rockbox
Fixed settings persistence for simulators
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11082 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
22e7e940a7
commit
076ab8d206
1 changed files with 3 additions and 3 deletions
|
@ -57,7 +57,7 @@ int ata_write_sectors(IF_MV2(int drive,)
|
|||
char name[32];
|
||||
|
||||
sprintf(name,"sector%lX.bin",start+i);
|
||||
f=fopen(name,"w");
|
||||
f=fopen(name,"wb");
|
||||
if (f) {
|
||||
fwrite(buf,512,1,f);
|
||||
fclose(f);
|
||||
|
@ -77,9 +77,9 @@ int ata_read_sectors(IF_MV2(int drive,)
|
|||
FILE* f;
|
||||
char name[32];
|
||||
|
||||
DEBUGF("Reading sector %X\n",start+i);
|
||||
DEBUGF("Reading sector %lX\n",start+i);
|
||||
sprintf(name,"sector%lX.bin",start+i);
|
||||
f=fopen(name,"r");
|
||||
f=fopen(name,"rb");
|
||||
if (f) {
|
||||
fread(buf,512,1,f);
|
||||
fclose(f);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue