Commit Graph

48 Commits

Author SHA1 Message Date
Max Horn b4225dcf2a Use stdio.h instead of cstdio etc.
svn-id: r46711
2009-12-29 17:30:38 +00:00
Max Horn a003aa6309 TOOLS: Move class File into namespace Common
svn-id: r46452
2009-12-20 23:02:50 +00:00
Sven Hesse 19b30fda76 Adding needed standard includes to make the tools compile again for me
svn-id: r46401
2009-12-17 02:08:22 +00:00
Max Horn f918f6b473 Remove util.h
svn-id: r46400
2009-12-17 00:06:53 +00:00
Max Horn 9c5b48eedb TOOLS: Rename&merge File::read & readN methods to read_throwsOnError & read_noThrow (these should be changed again later, but for now this helps me not getting confused ;)
svn-id: r46373
2009-12-13 23:46:09 +00:00
Max Horn 51ae0edfcb TOOLS: Change signature of File::write to match ScummVM
svn-id: r46370
2009-12-13 22:21:25 +00:00
Max Horn 241bbb07ba TOOLS: Aligh codebase a bit more with the main ScummVM code base
svn-id: r46362
2009-12-13 20:23:42 +00:00
Joost Peters e2a254d74b fix compilation
svn-id: r42852
2009-07-27 21:05:00 +00:00
Hampus Nilsson b35df38e84 *Added short help text to the GUI, displayed next to name of the tool in the CLI, and on the 'select tool' page in the GUI.
svn-id: r42831
2009-07-27 03:01:06 +00:00
Hampus Nilsson dc5453c1c1 *Fixed make under *nix
svn-id: r42678
2009-07-23 12:46:06 +00:00
Hampus Nilsson b2c3d6ce87 *Removed old IO functions and the implicit conversion from File to FILE*
svn-id: r42646
2009-07-22 00:12:48 +00:00
Hampus Nilsson eb9b7a39f2 *Converted ExtractKyra and EncodeDXA, now all tools should be working in the GUI (bugs not accounted for).
svn-id: r42602
2009-07-19 01:03:25 +00:00
Hampus Nilsson 1f8d15d811 *Added support for deducing tool based on input file. Right now it only checks extension, and only does so on some tools, so there is room for improvement.
*Fixed minor bugs / spelling mistakes / code formatting errors.

svn-id: r42520
2009-07-16 00:43:47 +00:00
Hampus Nilsson 5f86189724 *Created a common base class for conversion/extraction tools, this will make the tools much easier to integrate into the GUI.
*Converted extract_agos and extract_gob_stk to use this new Tool class.
*Changed Filename to use std::string rather than char array, to integrate better with the new classes.
*Small fixes to File & Filename classes
*Small backstep on the GUI as it only supports two tools now (the converted one's), however the new tool format has many gains, the actual tool is not run yet as arguments are not passed between the UI and the tool itself.

[Due to the change of char to std::string, many files were modified, the interesting files are in addition to the new files extract_gob_stk.cpp, extract_agos.cpp, gui/pages.cpp, compress.cpp, compress.h, util.cpp and util.h]

svn-id: r42082
2009-07-04 01:07:12 +00:00
Joost Peters 5f58e888a1 fix for building of standalone versions without EXPORT_MAIN defined
svn-id: r42037
2009-07-02 20:58:57 +00:00
Joost Peters c36c8ea5e5 - allow the same tool objects to be used by standalone and GUI tool linking (by defining a weak main symbol)
- add tool .o's to tools_gui target in Makefile
- fix name collision between extract_mm_nes and extract_loom_tg16

svn-id: r42032
2009-07-02 19:01:41 +00:00
Hampus Nilsson eb3ca155eb *Code formatting fix (space after keywords)
svn-id: r42017
2009-07-02 01:41:45 +00:00
Hampus Nilsson b07027979e *All tools now can be compiled as the part of the GUI (kinda like static linking), by compiling with EXPORT_MAIN, the main function will be renamed to tool_name_main.
*Resolved alot of name clashes due to having all the tools in the same program.
*Added tool_entry_points.h, which contains all the tool entry points.

(Could not commit yesterday, SF was down)

svn-id: r42015
2009-07-01 23:46:13 +00:00
Max Horn 36e50828bd Turned lots of printf+exit pairs into calls to error(); turned 'Can't' into 'Cannot' in messages, for consistency
svn-id: r41558
2009-06-15 21:12:51 +00:00
Max Horn 4698fbd786 Don't pass a Filename object to printf
svn-id: r41548
2009-06-15 14:47:39 +00:00
Hampus Nilsson cf7db9208e *All tools converted to the new format now! They should all compile now.
*Fixed bug where specifying extra audio parameters wouldn't work with -o switch before input file/dir
*Added dependencies to extract_agos msvc9 project
*Added compress_tucker msvc project.

svn-id: r41505
2009-06-14 00:30:59 +00:00
Hampus Nilsson 05166f4682 *Converted encode_dxa to new format.
Only compress_tucker, compress_sword1 and compress_sword2 are not yet converted (THEY WILL NOT COMPILE).

svn-id: r41466
2009-06-12 09:04:35 +00:00
Max Horn 68c2149b6d compresion -> compression
svn-id: r32595
2008-06-07 17:35:09 +00:00
Max Horn 2d72a04e5c Some corrections compared to trunk
svn-id: r29880
2007-12-16 17:28:52 +00:00
Sean Murray 4206be178d Merging update from trunk (rev. 29669)
svn-id: r29695
2007-12-02 10:16:19 +00:00
Sean Murray 2fd489065d Fixed a bug when splitting the filename specified on the command line into a filename and path. Also moved this code into util.c as it is used by almost all of the compression/extraction tools..
svn-id: r28573
2007-08-13 02:47:30 +00:00
Sean Murray c457651f15 Compression tools no longer assume that input files are in the current directory. Full paths can now be specified to the input file and the output file will be written to the same directory, or to the directory specified in the command line arguments depending on the tool.
svn-id: r28085
2007-07-15 03:29:33 +00:00
Sean Murray 53f2bd07c4 Update help message to reflect addition of libvorbis and libflac to compress.c.
svn-id: r27908
2007-07-04 23:03:34 +00:00
Torbjörn Andersson 8a45da2104 Apparently, there's a version of The Feeble Files that uses a more recent
version of Smacker, so we need to test for both SMK2 and SMK4 when identifying
the file. I cannot test this myself, though.

svn-id: r27615
2007-06-22 19:52:36 +00:00
Travis Howell c852272d86 Add cyx's patch for endian issues in DXA encoder
svn-id: r24845
2006-12-11 22:52:34 +00:00
Travis Howell 0c69a580ba Add patch #1611503 - DXA: Improved encoder (filesize and speed)
svn-id: r24837
2006-12-11 06:53:14 +00:00
Travis Howell 3c70565cc3 Add support for conversion of Bink video files. Use full filename of video file, since file extension is different in several HE games
svn-id: r24587
2006-11-02 10:54:48 +00:00
Travis Howell a43ed30eed Add patch #1504492 - DXA: New compression scheme
svn-id: r23334
2006-06-28 14:11:07 +00:00
Travis Howell 370963c548 Fix bug #1504440 encode_dxa: Suspect behaviour
svn-id: r23056
2006-06-12 07:08:58 +00:00
Torbjörn Andersson 0505f68d26 Removed the USE_ZMBV code, to avoid confusion. It was added as an experiment,
but the compression rate was reportedly not an improvement over standard DXA.

svn-id: r23038
2006-06-11 21:53:38 +00:00
Travis Howell 895500c5fa Fix typo
svn-id: r22861
2006-06-03 10:57:22 +00:00
Travis Howell e418574f07 Allow compression of separate audio file, if available too
svn-id: r22855
2006-06-03 06:43:16 +00:00
Travis Howell d13d42267d The Y-interlaced flag of Smacker format uses double height too. Fixes icetrench.smk and maybe others in 4CD version of FF
svn-id: r22833
2006-06-02 12:57:09 +00:00
Travis Howell 88f9afcd34 Remove WAV support, since we offer support for separate compressed sound files now
svn-id: r22832
2006-06-02 11:41:19 +00:00
Eugene Sandulenko 9e7159d2f8 Always use smallest result giving method for DXA compression. This gives
big size gain.

svn-id: r22232
2006-04-29 23:09:20 +00:00
Travis Howell f8f471abc7 Fix compiler warning
svn-id: r22212
2006-04-29 12:18:58 +00:00
Gregory Montoir 5fc121b582 some endianness fixes
svn-id: r22211
2006-04-29 12:15:23 +00:00
Eugene Sandulenko 348edfb178 - Better handling of incorrect PNGs. I.e. exit gracefully instead of crash
- Use best zlib compression method
- Experimental support of ZMBV video. Put zmbv.cpp znd zmbv.h to this directory,
  add it to Makefile and uncomment #define USE_ZMBV. However I modified it a
  bit, i.e. increased compression level and played with block size.

svn-id: r22202
2006-04-29 05:19:36 +00:00
Torbjörn Andersson e986ad05a8 Use readUint32LE() to extract header information from the SMK file. Also, if
the "Y-doubled" flag is set, the RAD Video Tools will already have scaled the
frames to twice the height indicated in the header. Compensate for that. (This
is not used in any of the Feeble Files cutscenes - not in the 2CD version, at
least - but Broken Sword 1 uses it for several.)

svn-id: r22196
2006-04-28 00:42:33 +00:00
Eugene Sandulenko 1df1736e56 For 100 frames video RAD Game Tools produced 3 digits frame numbers from
000 to 099, not 2 digits as it was assumed before. Fix it.

svn-id: r22146
2006-04-25 10:05:16 +00:00
Travis Howell 5505aef216 Ooops, leave _dxa as private
svn-id: r22143
2006-04-24 23:05:39 +00:00
Travis Howell bc5fcc1a8d Add NULL tag is audio doesn't exist, make adpcm compression optional and update help
svn-id: r22142
2006-04-24 23:02:30 +00:00
Eugene Sandulenko eb9545f2d9 Initial check-in of DXA encoder. Contributed code.
svn-id: r22096
2006-04-23 12:12:29 +00:00