From: <sba...@us...> - 2016-05-08 08:53:57
|
Revision: 5459 http://sourceforge.net/p/fuse-emulator/code/5459 Author: sbaldovi Date: 2016-05-08 08:53:55 +0000 (Sun, 08 May 2016) Log Message: ----------- Use Opus flags when writing chunk. Modified Paths: -------------- trunk/libspectrum/hacking/ChangeLog trunk/libspectrum/szx.c Modified: trunk/libspectrum/hacking/ChangeLog =================================================================== --- trunk/libspectrum/hacking/ChangeLog 2016-05-08 07:26:04 UTC (rev 5458) +++ trunk/libspectrum/hacking/ChangeLog 2016-05-08 08:53:55 UTC (rev 5459) @@ -1048,3 +1048,4 @@ 20160503 accessor.pl,doc/libspectrum.txt,sna.c,snap_accessors.txt,snapshot.c, szx.c,z80.c: add skeleton of support for Currah uSource snapshots (patch #363) (Fred and Sergio). +20160508 szx.c: use Opus flags when writing chunk (Sergio). Modified: trunk/libspectrum/szx.c =================================================================== --- trunk/libspectrum/szx.c 2016-05-08 07:26:04 UTC (rev 5458) +++ trunk/libspectrum/szx.c 2016-05-08 08:53:55 UTC (rev 5459) @@ -713,7 +713,7 @@ if( uncompressed_length != expected_length ) { libspectrum_print_error( LIBSPECTRUM_ERROR_UNKNOWN, - "%s:read_plsd_chunk: invalid ROM length " + "%s:read_opus_chunk: invalid ROM length " "in compressed file, should be %lu, file " "has %lu", __FILE__, @@ -3409,9 +3409,9 @@ write_chunk_header( buffer, ptr, length, ZXSTBID_OPUS, block_size ); - if( libspectrum_snap_opus_paged( snap ) ) flags |= ZXSTPLUSDF_PAGED; - if( use_compression ) flags |= ZXSTPLUSDF_COMPRESSED; - if( !libspectrum_snap_opus_direction( snap ) ) flags |= ZXSTPLUSDF_SEEKLOWER; + if( libspectrum_snap_opus_paged( snap ) ) flags |= ZXSTOPUSF_PAGED; + if( use_compression ) flags |= ZXSTOPUSF_COMPRESSED; + if( !libspectrum_snap_opus_direction( snap ) ) flags |= ZXSTOPUSF_SEEKLOWER; if( libspectrum_snap_opus_custom_rom( snap ) ) flags |= ZXSTOPUSF_CUSTOMROM; libspectrum_write_dword( ptr, flags ); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |