aboutsummaryrefslogtreecommitdiff
path: root/base/commandLine.cpp
AgeCommit message (Collapse)Author
2012-03-25GUI: Remove leftover code for the global dithering checkboxFilippos Karapetis
2012-03-17ALL: Make use of defined() for the preprocessor consistent.Johannes Schickel
This does not change the use of defined for some NDS source files, since they seem to be (based on?) third party code.
2012-03-17COMMON: Add a space between a string literal and a macro parameter so C++11 ↵Christoph Mallon
does not think the latter is a string literal suffix.
2012-02-26COMMON: Move RenderMode and GUIOptions functionality into separate filesMax Horn
2012-02-20COMMON: Move isFoo functions to namespace Common, add doxygen commentsMax Horn
2012-02-15ALL: Avoid using is* macros from ctype.hMax Horn
On some systems, passing signed chars to macros like isspace() etc. lead to a runtime error. Hence, mark these macros as forbidden by default, and introduce otherwise equivalent alternatives for them.
2011-11-23BASE: Implement a command to list all available audio devices on the shell.Johannes Schickel
2011-07-04AUDIO: add registerDefault for music_driverathrxx
2011-07-02ENGINES: Clean up SaveStateDescriptor.Johannes Schickel
Now SaveStateDescriptor no longer subclasses HashMap. Instead all possible saved meta data is included directly into SaveStateDescriptor. This is slightly less flexible, but we never needed that flexibility so far. On the other hand it should reduce the memory usage. At least on my system (Linux/amd64) the old SaveStateDescriptor had a size of 928 and the new SaveStateDescriptor has a size of 200.
2011-06-30WIN32: Add option to disable the console window, keeping the current default ↵Travis Howell
of enabling the console window.
2011-06-24BASE: Mess with strtol error handling some more.Alyssa Milburn
WinCE's strtol can't actually do proper error handling because it is lacking errno, so just check the bounds instead. If you really have some need to pass LONG_MIN/LONG_MAX as command-line parameters then it could always be #ifdeffed, but I'm assuming no-one cares.
2011-06-23BASE: Correct usage of strtol().Christoph Mallon
- endptr needs not be initialised before calling strtol(), it is always set by strtol(). - endptr is never a null pointer after calling strtol(). - There is no need to rely on strtol() setting EINVAL (which is not guaranteed). Testing whether strtol() parsed till the end of the string is sufficient (it is guaranteed that the string is not empty at this point). - It is sufficient to just test for ERANGE without inspecting the return value, because a successful call to strtol() does not change errno. Signed-off-by: Alyssa Milburn <fuzzie@fuzzie.org>
2011-06-23ANALYSIS: Add static casts to is* functionsLittleboy
This fixes a potential problem with passing char values that would be sign-extended and yield unexpected results. See http://msdn.microsoft.com/en-us/library/ms245348.aspx
2011-06-23BASE: Fix build, and error handling in DO_OPTION_INT.Alyssa Milburn
This fixes the logic of 979fc29b (I hope) and includes some missing headers.
2011-06-23BASE: Check return value from strtol in DO_OPTION_INT macroJulien
2011-06-16ENGINES: Warn user about games marked with ADGF_UNSTABLE flagsTarek Soliman
ADGF_UNSTABLE is always warned about. ADGF_TESTING is only warned about when running configure with --enable-relase. Both warnings are subject to the enable_wip_game_warning config option.
2011-06-01Merge branch 'branch-1-3-0' into masterMax Horn
I manually resolved all conflicts, and inspected every single change. Many were due to the version string mismatch and thus easily resolved. The MSVC project files add in the 1-3-0 branch were not merged, neither where the changes to gui/themes/translations.dat. Conflicts: NEWS backends/base-backend.cpp backends/graphics/samsungtvsdl/samsungtvsdl-graphics.cpp backends/module.mk backends/platform/ds/arm9/makefile backends/platform/psp/README.PSP backends/platform/samsungtv/main.cpp backends/platform/samsungtv/samsungtv.cpp backends/saves/posix/posix-saves.cpp base/commandLine.cpp base/internal_version.h base/main.cpp common/array.h configure devtools/create_project/create_project.cpp dists/android/AndroidManifest.xml dists/android/plugin-manifest.xml dists/iphone/Info.plist dists/irix/scummvm.spec dists/macosx/Info.plist dists/redhat/scummvm-tools.spec dists/redhat/scummvm.spec dists/scummvm.rc dists/slackware/scummvm.SlackBuild dists/wii/meta.xml engines/sci/parser/vocabulary.cpp engines/tinsel/handle.cpp gui/themes/translations.dat
2011-05-23COMMON: Modify Base::processSettings, get rid of Common::kArgumentNotProcessedMax Horn
Instead of defining a hacked up Common::Error code, split the return value of processSettings into two parts: An error code, and a value which indicates whether the specified command was completely handled by processSettings or not.
2011-05-23BACKENDS: Move SCUMMVM_SAVEPATH env var handling to POSIX savefile managerMax Horn
2011-05-21DS: Port of changes from branch-1-2-0 that I should really have moved into ↵agent-q
the trunk. "DS: Prevent the command line help string from being included in the binary." 5f3a90a5f6911188b8d1ded08dbdf6d233e9eb7b "GUI: Allow disabling of Mass Add dialog. Saves a few Kb of binary size on the DS, and is not particularly useful on that platform." 240ff87cf4472538d25a1c5628c8d15f1791ab1c "GUI: Don't search for theme zip files on startup when running on the DS. Themes aren't supported anyway, and the search severely delays startup." fe3b18ce0df03117081e83d99f4a2cbd864d3286
2011-05-12GIT: Clean up: Suppress SVN tags, now uselessstrangerke
2011-05-02ALL: Mark printf and various other symbols as forbiddenMax Horn
Right now, a few places in the frontend code still use printf and consorts. We mark the affected files with a FIXME for now, and add a dedicated exception for each. To be fixed! Also tweak FORBIDDEN_SYMBOL_REPLACEMENT to hopefully really always enforce a compiler error
2011-04-28JANITORIAL: Reduce header dependencies in shared codeOri Avtalion
Some backends may break as I only compiled SDL
2011-04-25BASE: Remove unused variable in DO_OPTION_INT.Johannes Schickel
2011-04-18COMMON: Cleanup names/handling of some error codesMax Horn
2011-03-01AUDIO: Set default values for the MT-32 and GM device settingsmd5
This fixes the case where an MT-32 music type is erroneously returned with the default GUI audio settings if an engine specifies MDT_PREFER_MT32. Many thanks to wjp and fuzzie for their help and work on this
2010-11-28MAIN: Fix --gfx-mode regressionTorbjörn Andersson
We cannot check for supported graphics mode until after the backend has been initialised, or there won't be a graphics manager to ask. svn-id: r54534
2010-11-05COMMON/GUI/SCI: Changes to the EGA dithering checkboxFilippos Karapetis
- Changed the new dithering checkbox to be more generic (i.e. relevant for all engines that may support such a feature in the future) - Changed the checkbox to be unchecked by default. As discussed on -devel, game enhancements in ScummVM should be off by default, and opt-in - Changed the option from "sci_undither" to "disable_dithering" - Changed theme version style to X.Y.Z and bumped it to 0.8.2 svn-id: r54090
2010-11-04SCI: Set undither to on by default again, like it was. Filippos Karapetis
From our current stance, this is a game enhancement, and should be on by default, like the rest of the game enhancements (AGI mouse, save/load replacement etc) svn-id: r54070
2010-11-04SCI/SCUMMVM: Added an option to enable the dithering removal algorithm (so ↵Filippos Karapetis
called "undithering") in the graphics options tab. The algorithm is now disabled by default, after popular demand. In retrospect, we really shouldn't have made it default, in order to preserve the authenticity of the graphics in early SCI EGA games, and allow the user to opt in and enable the option if needed. Unfortunately, the lack of an easy way to modify the option made it hard to do so. svn-id: r54066
2010-11-01COMMON: Rename String::printf() to String::format()Max Horn
This is a first step towards getting rid of all uses of regular printf, fprintf, vprintf, vfprintf, puts, fputs, etc. in our codebase. The name format() reflects the purpose of the function, and parallels String.format() in Java, boost::format, and others. svn-id: r54004
2010-10-24SDL/WIN32: Disable currently unused config entries, added with r53767.Johannes Schickel
This code should be enabled, when we decide to enable m_kiewitz' code to disable the console window. Also we should add the command to the --help output etc. svn-id: r53769
2010-10-24SDL/w32: add ability to hide consoleMartin Kiewitz
feature is currently commented out - waiting till discussion has ended svn-id: r53767
2010-10-12COMMON: Let --list-targets output all targets in an alphabetical list again.Johannes Schickel
svn-id: r53183
2010-09-18JANITORIAL: Removed most punctuation at end of warning() and error()Torbjörn Andersson
Our warning() and error() functions always add an exclamation mark to the end of the message anyway. svn-id: r52791
2010-07-17Remove PalmOS portMax Horn
svn-id: r50964
2010-07-05Replace a tab by whitespaces in the help string.Johannes Schickel
svn-id: r50704
2010-06-22LAUNCHER: hopefully fixed music driver selection via command lineFlorian Kagerer
svn-id: r50158
2010-06-21Patch #1956501: "GUI/LAUNCHER: Midi device selection"Max Horn
svn-id: r50128
2010-06-06Add Android backend from patch #2603856Max Horn
svn-id: r49449
2010-05-21Implement FR #2988017: exit status with --list-saves always 0Eugene Sandulenko
svn-id: r49132
2010-05-03Tweak messages when listing save states.Max Horn
Targets don't list savestates, plugins do; and since the user specified a target, we should always list that first, and give the gameid only as additional information. svn-id: r48925
2010-05-03Show the user a nice message, when the target passed to --list-saves does ↵Johannes Schickel
not allow listing of its save states. This is a first step into implementing FR #2988017 "exit status with --list-saves always 0". svn-id: r48923
2010-03-29COMMON: Cleanup ConfigManager codeMax Horn
* get rid of ConfigManager::_emptyString * get rid of ConfigManager::Domain::get (use getVal instead) * remove some dead code svn-id: r48417
2010-01-09Register default setting for 'mute' optionWillem Jan Palenstijn
svn-id: r47205
2009-09-26added option to allow control digital imuse tempo callback. it's related to ↵Paweł Kołodziejski
volume fading, lip sync quality and platform resource costs. svn-id: r44374
2009-08-10Option "desired_screen_aspect_ratio" for fullscreen mode in the SDL backendBertrand Augereau
Shortcoming: the picture is not centered svn-id: r43214
2009-06-07cleanupMax Horn
svn-id: r41341
2009-06-07Added an experimental '--upgrade-targets' option (to be refined; and ↵Max Horn
possibly hooked to the GUI eventually). This updates the guioptions,platform and lang for all your targets (and with a source change, also the descriptions) svn-id: r41332
2009-05-13Fix spelling of AdLib (it's AdLib not Adlib).Johannes Schickel
svn-id: r40533