implemented most of librw wrapper
This commit is contained in:
@@ -153,7 +153,7 @@ RpClumpGtaStreamRead1(RwStream *stream)
|
||||
|
||||
if(!RwStreamFindChunk(stream, rwID_FRAMELIST, nil, &version))
|
||||
return false;
|
||||
if(_rwFrameListStreamRead(stream, &gFrameList) == nil)
|
||||
if(rwFrameListStreamRead(stream, &gFrameList) == nil)
|
||||
return false;
|
||||
|
||||
if(!RwStreamFindChunk(stream, rwID_GEOMETRYLIST, nil, &version)){
|
||||
@@ -164,7 +164,7 @@ RpClumpGtaStreamRead1(RwStream *stream)
|
||||
rwFrameListDeinitialize(&gFrameList);
|
||||
return false;
|
||||
}
|
||||
streamPosition = stream->Type.memory.position;
|
||||
streamPosition = STREAMPOS(stream);
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -180,7 +180,7 @@ RpClumpGtaStreamRead2(RwStream *stream)
|
||||
if(clump == nil)
|
||||
return nil;
|
||||
|
||||
RwStreamSkip(stream, streamPosition - stream->Type.memory.position);
|
||||
RwStreamSkip(stream, streamPosition - STREAMPOS(stream));
|
||||
|
||||
if(GeometryListStreamRead2(stream, &gGeomList) == nil){
|
||||
GeometryListDeinitialize(&gGeomList);
|
||||
|
||||
Reference in New Issue
Block a user