mpyq icon indicating copy to clipboard operation
mpyq copied to clipboard

Supporting Directory Trees in MPQ Cross-Platform

Open mharradon opened this issue 2 years ago • 0 comments

PR for #36.

This PR converts backslash separated filenames in MPQs into directory trees rather than concatenated long filenames (I believe as intended by the MPQ format). In doing so it makes the library and its extraction results compatible with Windows.

There is a small interface change to share the file writing code across extracting "all files" and "some files". This does not affect command line usage.

Added minigame and test for extraction to disk for CollectMineralShards from PySC2. License from PySC2 included.

Tests confirmed passing on:

Mac: Python2.7 and 3.7 Windows: Python3.7

mharradon avatar Jul 15 '21 19:07 mharradon