Search
lxdream.org :: lxdream :: r153:3d4091e2b136
lxdream 0.9.1
released Jun 29
Download Now
changeset153:3d4091e2b136
parent152:d42a4c5cc709
child154:d62f7b49934b
authornkeynes
dateWed May 24 11:48:58 2006 +0000 (17 years ago)
Return correct value from load state
src/pvr2/pvr2.c
1.1 --- a/src/pvr2/pvr2.c Tue May 23 13:11:45 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 )
.