Fix some issues when loading new-format scenarios

- Carriage returns misinterpreted as map features
- Error code returned by CopyFiles
- Confusing error message when a file is missing in the archive
This commit is contained in:
2017-01-20 23:11:40 -05:00
parent 07e5907818
commit 380b64aa7a
4 changed files with 12 additions and 3 deletions

9
pkg/win/build-scen.bat Normal file
View File

@@ -0,0 +1,9 @@
set Zip="C:\Program Files\7-Zip\7z.exe"
@echo Packing scenario %2...
if exist %2 del /F %2
if exist %2 exit 1
move %1 scenario
%Zip% a -ttar -so temp.tar scenario | %Zip% a -tgzip -si %2
move scenario %1