Search
lxdream.org :: lxdream/src/pvr2/pvr2.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/pvr2/pvr2.c
changeset 153:3d4091e2b136
prev151:3d3135644b8e
next159:406161fea392
author nkeynes
date Wed May 24 11:48:58 2006 +0000 (14 years ago)
permissions -rw-r--r--
last change Return correct value from load state
file annotate diff log raw
1.1 --- a/src/pvr2/pvr2.c Tue May 23 13:11:09 2006 +0000
1.2 +++ b/src/pvr2/pvr2.c Wed May 24 11:48:58 2006 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: pvr2.c,v 1.24 2006-05-23 13:11:09 nkeynes Exp $
1.6 + * $Id: pvr2.c,v 1.25 2006-05-24 11:48:58 nkeynes Exp $
1.7 *
1.8 * PVR2 (Video) Core module implementation and MMIO registers.
1.9 *
1.10 @@ -98,7 +98,9 @@
1.11
1.12 static int pvr2_load_state( FILE *f )
1.13 {
1.14 - fread( &pvr2_state, sizeof(pvr2_state), 1, f );
1.15 + if( fread( &pvr2_state, sizeof(pvr2_state), 1, f ) != 1 )
1.16 + return 1;
1.17 + return 0;
1.18 }
1.19
1.20 static uint32_t pvr2_run_slice( uint32_t nanosecs )
.