Expected Behavior
When passing 1 as the encode_flag to the following functions, the data should be compressed using LZSS:
res_add_file
res_replace_file
res_write
Various files are saved with compression including level data and actor sprites. The RES.EXE program also allows raw access to compress any file in a resource archive.
src/utility/lvlbuild.c should be updated to set encode_flag=1 when saving screen data after this is fixed.
Actual Behavior
No data is included in the archive, because the function is not implemented.
Steps to Reproduce the Problem
- Mount some file to add to the archive in C:\TEST.TXT
- Mount RES.EXE in C:\
- Run RES.EXE TMP.DAT C
- Run RES.EXE TMP.DAT A TEST.TXT TEST 1
- Run RES.EXE TMP.DAT L
- Run RES.EXE TMP.DAT E TEST TEST2.TXT
The report should show that the data is compressed appropriately, and extracting the file should have the same contents as the input file.
Specifications
- Version:
- Platform:
- Subsystem:
Expected Behavior
When passing
1as theencode_flagto the following functions, the data should be compressed using LZSS:res_add_fileres_replace_fileres_writeVarious files are saved with compression including level data and actor sprites. The
RES.EXEprogram also allows raw access to compress any file in a resource archive.src/utility/lvlbuild.cshould be updated to setencode_flag=1when saving screen data after this is fixed.Actual Behavior
No data is included in the archive, because the function is not implemented.
Steps to Reproduce the Problem
The report should show that the data is compressed appropriately, and extracting the file should have the same contents as the input file.
Specifications