src/mess/tools/imgtool/modules/thomson.c
| r7816 | r7817 | |
| 1344 | 1344 | } |
| 1345 | 1345 | else { |
| 1346 | 1346 | /* encrypted file */ |
| 1347 | | stream_putc( dst, 0xff ); |
| 1347 | stream_putc( dst, '\xff' ); |
| 1348 | 1348 | stream_write( dst, buf+1, 2 ); |
| 1349 | 1349 | thom_decrypt( dst, org ); |
| 1350 | 1350 | } |
| r7816 | r7817 | |
| 1370 | 1370 | imgtool_stream *dst = stream_open_mem( NULL, 0 ); |
| 1371 | 1371 | imgtoolerr_t err; |
| 1372 | 1372 | if ( !dst ) return IMGTOOLERR_OUTOFMEMORY; |
| 1373 | | stream_putc( dst, 0xfe ); |
| 1373 | stream_putc( dst, '\xfe' ); |
| 1374 | 1374 | stream_write( dst, buf+1, 2 ); |
| 1375 | 1375 | thom_encrypt( dst, src ); |
| 1376 | 1376 | stream_seek( dst, 0, SEEK_SET ); |