Search
lxdream.org :: lxdream/src/vmu/vmuvol.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/vmu/vmuvol.c
changeset 1071:182cfe43c09e
prev1056:d0896e6530d6
next1296:30ecee61f811
author nkeynes
date Tue Jul 21 20:21:52 2009 +1000 (12 years ago)
permissions -rw-r--r--
last change Fix assorted -Wall warnings
file annotate diff log raw
1.1 --- a/src/vmu/vmuvol.c Sun Jun 28 12:07:21 2009 +0000
1.2 +++ b/src/vmu/vmuvol.c Tue Jul 21 20:21:52 2009 +1000
1.3 @@ -82,7 +82,7 @@
1.4 #define FAT_EMPTY 0xFFFC
1.5 #define FAT_EOF 0xFFFA
1.6
1.7 -static const struct vmu_volume_metadata default_metadata = { 255, 255, 254, 1, 253, 13, 0, 200, 31, 0, 128 };
1.8 +static const struct vmu_volume_metadata default_metadata = { 255, 255, 254, 1, 253, 13, 0, 200, {31, 0, 128} };
1.9
1.10 vmu_volume_t vmu_volume_new_default( const gchar *display_name )
1.11 {
1.12 @@ -374,6 +374,7 @@
1.13 }
1.14 memcpy( VMU_BLOCK(vol,pt,block), in, VMU_BLOCK_SIZE );
1.15 vol->dirty = TRUE;
1.16 + return TRUE;
1.17 }
1.18
1.19 gboolean vmu_volume_write_phase( vmu_volume_t vol, vmu_partnum_t pt, unsigned int block, unsigned int phase, unsigned char *in )
1.20 @@ -383,6 +384,7 @@
1.21 }
1.22 memcpy( VMU_BLOCK(vol,pt,block) + (phase*128), in, VMU_BLOCK_SIZE/4 );
1.23 vol->dirty = TRUE;
1.24 + return TRUE;
1.25 }
1.26
1.27 const struct vmu_volume_metadata *vmu_volume_get_metadata( vmu_volume_t vol, vmu_partnum_t partition )
.