Commit Graph
321 Commits
Author SHA1 Message Date
Littleboy b694a78f62 ANALYSIS: Add static casts to is* functions
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-23 08:52:52 -04:00
Alyssa Milburn 92f4b7c611 BASE: Fix build, and error handling in DO_OPTION_INT.
This fixes the logic of 979fc29b (I hope) and includes some missing
headers.
2011-06-23 10:28:43 +02:00
Julien 979fc29be6 BASE: Check return value from strtol in DO_OPTION_INT macro 2011-06-23 15:11:36 +08:00
Tarek Soliman 4d0bba314d ENGINES: Warn user about games marked with ADGF_UNSTABLE flags
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-16 13:37:13 -05:00
Pawel Kolodziejski 7329a5d164 ALL: sync with scummvm 2011-06-09 11:17:15 +02:00
Max Horn a4610df482 Merge branch 'branch-1-3-0' into master
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-06-01 15:15:31 +02:00
Max Horn 20cad6e8b6 COMMON: Modify Base::processSettings, get rid of Common::kArgumentNotProcessed
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-23 19:39:25 +02:00
Max Horn 590c6ede63 BACKENDS: Move SCUMMVM_SAVEPATH env var handling to POSIX savefile manager 2011-05-23 19:12:26 +02:00
agent-q 92a71f7452 DS: Port of changes from branch-1-2-0 that I should really have moved into the trunk.
"DS: Prevent the command line help string from being included in the binary."
5f3a90a5f6

"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."
240ff87cf4

"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."
fe3b18ce0d
2011-05-21 15:45:51 +01:00
Pawel Kolodziejski 356c9c8c07 sync with scummvm 2011-05-18 23:33:39 +02:00
strangerke 69b1485a22 GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02:00
Pawel Kolodziejski 0f5de71f70 sync with scummvm 2011-05-08 15:38:26 +02:00
Max Horn 59e77ed667 ALL: Mark printf and various other symbols as forbidden
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-05-02 16:31:31 +02:00
Pawel Kolodziejski 6be453780f synced with scummvm 2011-05-01 17:49:40 +02:00
Ori Avtalion 9414d7a6e2 JANITORIAL: Reduce header dependencies in shared code
Some backends may break as I only compiled SDL
2011-04-28 15:08:58 +03:00
Pawel Kolodziejski 7dc9a82b0f opengl renderer by default 2011-04-25 17:38:33 +02:00
Johannes Schickel aee0fa34bf BASE: Remove unused variable in DO_OPTION_INT. 2011-04-25 15:26:23 +02:00
Max Horn 3a574199b0 COMMON: Cleanup names/handling of some error codes 2011-04-18 18:22:04 +02:00
Pawel Kolodziejski 99ee683308 cleanup headers 2011-04-16 14:08:33 +02:00
Pawel Kolodziejski 0640dcf2c7 synced with scummvm to 2011-Apr-13 2011-04-14 12:41:26 +02:00
Pawel Kolodziejski 241c7a8c6e synced with scummvm svn rev 53000 2011-04-11 15:40:01 +02:00
Pawel Kolodziejski 697ed42447 synced with scummvm svn rev 51000 2011-04-11 11:41:07 +02:00
Pawel Kolodziejski be1b3ab884 synced with scummvm svn rev 50000 2011-04-11 02:28:51 +02:00
Pawel Kolodziejski e3a475ff7b synced with scummvm rev svn 49000 2011-04-10 21:59:04 +02:00
Pawel Kolodziejski bccbcae43c synced rest files, missed with last sync rev 47951 2011-04-10 15:45:37 +02:00
md5 e99dcac2f6 AUDIO: Set default values for the MT-32 and GM device settings
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
2011-03-01 12:22:19 +02:00
Torbjörn Andersson 1857076d76 MAIN: Fix --gfx-mode regression
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-28 17:26:27 +00:00
Filippos Karapetis 2416cbf75b COMMON/GUI/SCI: Changes to the EGA dithering checkbox
- 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-05 10:53:37 +00:00
Filippos Karapetis 5bab2d570b SCI: Set undither to on by default again, like it was.
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-04 19:19:07 +00:00
Filippos Karapetis 1dac4fbd55 SCI/SCUMMVM: Added an option to enable the dithering removal algorithm (so 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-04 15:58:53 +00:00
Max Horn e27b05ef35 COMMON: Rename String::printf() to String::format()
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-11-01 16:02:28 +00:00
Johannes Schickel 2e0b1c6213 SDL/WIN32: Disable currently unused config entries, added with r53767.
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-24 19:07:46 +00:00
Martin Kiewitz c9c9eafbbb SDL/w32: add ability to hide console
feature is currently commented out - waiting till discussion has ended

svn-id: r53767
2010-10-24 18:34:08 +00:00
Johannes Schickel 1842de4b00 COMMON: Let --list-targets output all targets in an alphabetical list again.
svn-id: r53183
2010-10-12 21:54:43 +00:00
Torbjörn Andersson c91a07229a JANITORIAL: Removed most punctuation at end of warning() and error()
Our warning() and error() functions always add an exclamation mark
to the end of the message anyway.

svn-id: r52791
2010-09-18 10:55:16 +00:00
Max Horn 0b48a71c99 Remove PalmOS port
svn-id: r50964
2010-07-17 18:41:38 +00:00
Johannes Schickel d4bc0f9f10 Replace a tab by whitespaces in the help string.
svn-id: r50704
2010-07-05 19:45:48 +00:00
Florian Kagerer 78fb62bcdf LAUNCHER: hopefully fixed music driver selection via command line
svn-id: r50158
2010-06-22 18:27:00 +00:00
Max Horn bbad3f333a Patch #1956501: "GUI/LAUNCHER: Midi device selection"
svn-id: r50128
2010-06-21 21:36:36 +00:00
Max Horn 46155b2c36 Add Android backend from patch #2603856
svn-id: r49449
2010-06-06 09:34:36 +00:00
Eugene Sandulenko 1a938956ec Implement FR #2988017: exit status with --list-saves always 0
svn-id: r49132
2010-05-21 18:25:01 +00:00
Max Horn 3c0bd3dd27 Tweak messages when listing save states.
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-03 20:09:32 +00:00
Johannes Schickel 2e188d6bd3 Show the user a nice message, when the target passed to --list-saves does 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-05-03 19:18:55 +00:00
Max Horn 4bac9e1b75 COMMON: Cleanup ConfigManager code
* get rid of ConfigManager::_emptyString
* get rid of ConfigManager::Domain::get (use getVal instead)
* remove some dead code

svn-id: r48417
2010-03-29 20:31:23 +00:00
Pawel Kolodziejski edadbb35be synced code with scummvm trunk 2010-01-21 19:25:03 +00:00
Willem Jan Palenstijn ac66783b5f Register default setting for 'mute' option
svn-id: r47205
2010-01-09 19:32:39 +00:00
Torbjorn Andersson cb763af306 Added default value for the "confirm_exit" setting, since default-events.cpp
wants it.
2009-10-10 05:05:08 +00:00
Pawel Kolodziejski 7aa79c880d synced with scummvm 2009-10-05 08:33:46 +00:00
Pawel Kolodziejski 26f97ed5a3 * initial works on GUI, launcher works, not external themes yet
* cleanup header files
2009-10-04 10:58:28 +00:00
Paweł Kołodziejski e46029e8c6 added option to allow control digital imuse tempo callback. it's related to volume fading, lip sync quality and platform resource costs.
svn-id: r44374
2009-09-26 09:31:05 +00:00