summaryrefslogtreecommitdiffstats
path: root/uisimulator/common
diff options
context:
space:
mode:
authorSteve Bavin <pondlife@pondlife.me>2006-09-28 08:45:40 +0000
committerSteve Bavin <pondlife@pondlife.me>2006-09-28 08:45:40 +0000
commit076ab8d206549f9d8b1454994d1ce43f15c618dc (patch)
tree2be5900cedbd193aa7d0732c86a9bf14d2733569 /uisimulator/common
parent22e7e940a759188080cf33d5afb699ada0b107fc (diff)
downloadrockbox-076ab8d206549f9d8b1454994d1ce43f15c618dc.tar.gz
rockbox-076ab8d206549f9d8b1454994d1ce43f15c618dc.tar.bz2
rockbox-076ab8d206549f9d8b1454994d1ce43f15c618dc.zip
Fixed settings persistence for simulators
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11082 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator/common')
-rw-r--r--uisimulator/common/stubs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/uisimulator/common/stubs.c b/uisimulator/common/stubs.c
index 05031caba2..c4130f1da1 100644
--- a/uisimulator/common/stubs.c
+++ b/uisimulator/common/stubs.c
@@ -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);