Alexandre Detiste
477d7b7fe1
implement simple --include option ( #12 )
...
this option can be repeated
11 years ago
Daniel Scharrer
809d425ec6
Warn on unused .bin files
...
Also add an option to disable this warning.
11 years ago
Daniel Scharrer
602445411f
Move process_file() out of main.cpp
11 years ago
Daniel Scharrer
74c13e1c49
Add an option to determine the GOG.com game ID
11 years ago
Daniel Scharrer
1b27f70484
[coverity] 'Handle' boost::bad_pointer exception
12 years ago
Daniel Scharrer
07fa25f2d9
[coverity] Correctly restore std::cout fmtflags
...
Also, only set std::boolalpha for debug output.
12 years ago
Daniel Scharrer
c4e8edc126
Fix handling of spaces in the --data-dir option
12 years ago
Daniel Scharrer
83e925e481
Disable colors on command-line parse errors
12 years ago
Daniel Scharrer
872e0ca691
List all skipped files in encrypted chunks
12 years ago
Daniel Scharrer
26989e65bd
Replace ARRAY_SIZE with boost::size where possible
...
Remaining uses need a constexpr value.
13 years ago
Daniel Scharrer
e6117a74ff
Fix MSVC warning about an unreferenced variable
13 years ago
Daniel Scharrer
bf811a523c
[cppcheck] Catch exceptions by reference
13 years ago
Daniel Scharrer
3c6ff670a2
[cppcheck] Fix style warning
13 years ago
Daniel Scharrer
efa666711a
Fix a Clang warning (remove double negative)
13 years ago
Daniel Scharrer
a144d3fff0
Fix flickering progress bar under Windows
13 years ago
Daniel Scharrer
bda3ed4656
Output error summary to stderr for --quiet
13 years ago
Daniel Scharrer
8071f5135a
Improve input/output file error message
13 years ago
Daniel Scharrer
08f5036ec7
Cleanup loading functions
...
- Remove configure-time endianness check
(replaced by run-time check to be optimized out by the compiler)
- Move loading functions into the util namespace
- Only keep the setup header entries we actually need
13 years ago
Daniel Scharrer
29e409fd97
Skip encrypted chunks and print a warning
13 years ago
Daniel Scharrer
fbc214843d
Add a command-line option for the output directory
13 years ago
Daniel Scharrer
09842bcd79
Improve file path conversions
...
Canonicalize paths and strip leading '..' segments so we don't write
anything outside the target directory.
13 years ago
Daniel Scharrer
f6f8fe46e9
Fix extracting large installers with 32-bit builds
...
Or more precisely, installers with compressed chunks or output files
larger than std::streamsize.
13 years ago
Daniel Scharrer
41a61dc0fe
Add support for combining --version with -s and -q
13 years ago
Daniel Scharrer
a795d473db
Fix issues with Unicode filenames under Windows
...
Also, only open the main setup file once.
13 years ago
Daniel Scharrer
a8a228aac7
Improve SYNOPSYS in the man page
13 years ago
Daniel Scharrer
47a2b54f15
Allow --list to be combined with --test/--extract
...
Also, list the files on one line each if --list is combined with
--silent.
13 years ago
Daniel Scharrer
e43155657c
Add support for overwriting argv0 with an env var
...
This is useful for wrapper scripts that want to hide the full path
to the program while only relying on POSIX scripting functionality.
(`exec -a` is a bashism)
13 years ago
Daniel Scharrer
fda922635c
Flush list output after each line if extracting
13 years ago
Daniel Scharrer
1f36d0f2e3
Remove using std:: statements
13 years ago
Daniel Scharrer
24b71da46f
Fix MSVC 9.0 warnings
13 years ago
Daniel Scharrer
70f4cd37ea
Improve error message if input file is a directory
13 years ago
Daniel Scharrer
6e1f4e0388
Always use 64-bit time values internally
...
And warn if a truncating conversion is performed.
13 years ago
Daniel Scharrer
1a986a8709
Fix MSVC 9 build
13 years ago
Daniel Scharrer
a4280c5289
Add an option to set a timezone for timestamps
...
... and to disable setting the timestamps.
See: enhancement #5
13 years ago
Daniel Scharrer
05cac27c11
Set timestamps for extracted files
...
Implements: enhancement #5
13 years ago
Daniel Scharrer
f41d567e32
Use symbolic names for exit codes
13 years ago
Daniel Scharrer
5d9596bea4
Use different exit values for user and data errors
13 years ago
Daniel Scharrer
e656af214e
Mark size_t -> std::streamsize conversions
13 years ago
Daniel Scharrer
1b2a62b714
Update copyright lines for files changed this year
13 years ago
Daniel Scharrer
bb50bffde2
Don't hard-code the license string in the source
...
Read it at compile-time from the LICENSE file.
13 years ago
Daniel Scharrer
a54b579cc3
Add CMake options to disable custom compiler flags
...
* SET_WARNING_FLAGS for warning options (don't affect binaries)
* SET_OPTIMIZATION_FLAGS for compiler & linker optimization options
Also, re-enable some warnings that were disabled and instead suppress
them for the individual occurences.
14 years ago
Daniel Scharrer
f96d8d2311
Rename src/{version => release}.*
...
Otherwise Doxygen cannot differentiate between src/version.hpp and
src/setup/version/hpp.
14 years ago
Daniel Scharrer
7439daba3d
Always use innoextract, never Inno Extract
14 years ago
Daniel Scharrer
1ad13dc19a
Point to -h when no arguments are specified
14 years ago
Daniel Scharrer
5d29acb66e
Avoid unnecessary shell commands with --list
...
While the main --progress output was already hidden with the --list
action, the line was still cleared after every file.
This commit completely disables the progress bar when the --list option
is used.
14 years ago
Daniel Scharrer
78fd5b73fe
Don't say 'Extracting' for --test and --list
14 years ago
Daniel Scharrer
6f2dcefd43
Improve doxygen documentation
14 years ago
Daniel Scharrer
39c4ac9d2e
Remove periods from option lines in --help output
14 years ago
Daniel Scharrer
e486557558
Fix singular/plural logic for the warnings total
14 years ago
Daniel Scharrer
0f0d8e19c5
Don't print opened slices for --quiet and --silent
14 years ago