16 Commits
Author SHA1 Message Date
Paweł Kołodziejski ebbfd826d5 ALL: Upgrade tools licence to GPLv3+ 2022-06-26 19:14:49 +02:00
Bastien Bouclet c349496841 TOOLS: Rework the Mohawk tools
* Remove the deriven tool as it is entirely duplicated and superseded by
  the dumpCard and dumpStack in-engine debug commands.
* Change the extract_mohawk and construct_mohawk tools to use the shared
  file abstraction instead of their own.
* Change extract_mohawk and construct_mohawk to adjust the tMOV
  QuickTime stco atom offsets so extracted movies can be played with
  regular QT players and packed movies can be played by ScummVM. This
  way it's possible to repack Riven archives.
2018-07-27 10:51:48 +02:00
Thierry Crozat d5c8077933 JANITORIAL: Move copyright notice to a separate file 2014-01-19 18:13:09 +00:00
Thierry Crozat fe2d3c2d71 JANITORIAL: Remove now useless SVN tags 2014-01-06 22:54:34 +00:00
David Turner 9faa505d66 TOOLS: Fix extract_mohawk tool to allow extraction of resources with '/' or '\' in names.
The extraction of the resources with forward slashes in names was not possible as these are invalid in paths as they are directory seperators on Unix.

This commit fixes this by replacing them with backslashes, which can be present in filenames.

However in order to allow this operation to be unambiguously reversed by construct_mohawk, it is also necessary to pad any backslashes present prior to this to allow them to be disambiguated.

svn-id: r55592
2011-01-28 14:55:56 +00:00
Johannes Schickel e6a090d6f7 Strip trailing whitespaces.
svn-id: r51095
2010-07-21 18:24:07 +00:00
David Turner 318eb9878d Modified extract_mohawk tool to allow preservation of file table flags during raw dump.
Also, allowed selection of file name output format by option, so that file table indexes can be omitted.

svn-id: r47586
2010-01-27 02:22:45 +00:00
Max Horn 02cc06005b Remove engines/mohawk/utils/util.h
svn-id: r47440
2010-01-22 14:44:40 +00:00
Matthew Hoops 9a644daefe Rename MohawkFile and OldMohawkFile to MohawkArchive and LivingBooksArchive_v1 for consistency with the trunk.
svn-id: r47430
2010-01-22 03:50:49 +00:00
David Turner 274f160eee Minor corrections to extract_mohawk tool :
Corrected error reporting of bad filenames.
Fixed to not overwrite output files, if they already exist.

svn-id: r47426
2010-01-21 22:50:56 +00:00
Matthew Hoops 59cfd64b45 Add autodetection of the Mohawk archive format (old vs new) and remove the command line options for specifying that. Some minor cleanup too.
svn-id: r47383
2010-01-19 16:57:36 +00:00
David Turner 250be7da08 Minor updates to extract_mohawk :
Moved old / new Archive format selection to command line option, rather than executable name suffix.
Removed leftover debug statement.
Corrections for coding standard variable form.

svn-id: r47366
2010-01-19 00:41:37 +00:00
David Turner bed5b57b6f Cleanup and improvements to extract_mohawk tool :
Support for command line options parsing in clean and expandable manner.
Allow choice of raw binary resource dump or conversion.
More general output file naming convention i.e. File Table Id, Type Tag, Resource Id and (optional) name seperated by underscores with a file type suffix (.bin for raw dump).

svn-id: r47365
2010-01-18 23:46:28 +00:00
David Turner 26a3dbbef7 Fixed nominal build of Mohawk tools.
Removed some of the duplicated engines/mohawk/utils code.

svn-id: r47302
2010-01-15 03:11:35 +00:00
Jordi Vilalta Prat eae07f9e8a TOOLS: Whitespace cleanup
svn-id: r46751
2009-12-30 15:34:00 +00:00
Eugene Sandulenko 5835fc9eb3 Add Mohawk engine code. Part 3/3: tools (non working on new framework yet).
svn-id: r46729
2009-12-29 23:23:31 +00:00