Commit Graph
319 Commits
Author SHA1 Message Date
Johannes Schickel b27736fc3f SKY: Silence C++11 narrowing warnings. 2013-01-09 07:24:37 +01:00
Johannes Schickel 89abab97e3 JANITORIAL: Remove trailing whitespaces.
Powered by:
git ls-files "*.cpp" "*.h" "*.m" "*.mm" | xargs sed -i -e 's/[ \t]*$//'
2012-09-26 04:17:55 +02:00
Filippos Karapetis 6a49d3eadd ENGINES: Return all available custom GUI options if no target is specified
This is used to set default settings for all custom game options when an
engine starts
2012-03-31 13:55:03 +03:00
D G Turner 3acc3837e1 SKY: Minor formatting fix. 2012-03-30 01:57:56 +01:00
Eric Culp 2fe60082e8 SKY: Allow game to be loaded from main menu dialog while in-game control panel is open. Fixes bug #3448294 2012-03-28 19:09:12 -04:00
Filippos Karapetis 24d758e5ef SKY: Only show the option for the alternative intro in the CD version 2012-03-25 16:24:31 +03:00
Torbjörn Andersson 1c124d5079 SKY: Add gui-option for alt-intro
Ideally, this should only be added for the CD version but I don't
think we have any mechanism for telling the CD and floppy versions
apart.
2012-03-25 11:58:47 +02:00
Torbjörn Andersson c29fa80f5c SKY: Fix comment typos 2012-03-06 20:00:15 +01:00
Willem Jan Palenstijn 9ffe3e11d9 Merge pull request #182 from fingolfin/forbid-ctype
ALL: Avoid using is* macros from ctype.h
2012-02-21 11:33:32 -08:00
Max Horn 4f8665fc83 COMMON: Move isFoo functions to namespace Common, add doxygen comments 2012-02-20 16:18:27 +01:00
Tarek Soliman a4798602d7 JANITORIAL: Fix missing whitespace in pointer cast
find -name '*.h' -or -name '*.cpp' | xargs sed -r -i 's@\(([A-Za-z0-9]+)\*\)@(\1 *)@g'

This seems to have caught some params as well which is not undesirable IMO.
It also caught some strings containing this which is undesirable so I
excluded them manually. (engines/sci/engine/kernel_tables.h)
2012-02-15 10:07:10 -06:00
Max Horn 658080deed ALL: Avoid using is* macros from ctype.h
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.
2012-02-15 16:51:37 +01:00
Willem Jan Palenstijn 54ede63fcc BASS: Reduce code duplication in autosave code 2012-02-13 21:31:41 +01:00
Willem Jan Palenstijn 87e85e17cb BASS: Fix savegame corruption
When using the GMM or autosaves, _savedMouse and _savedCharSet were
never set. See bug #3487117.
2012-02-13 21:28:32 +01:00
Willem Jan Palenstijn c7a5d31f05 BASS: Report savegame errors when saving by pressing enter
This makes error handling consistent between mouse and keyboard.
2012-02-13 21:21:42 +01:00
Alyssa Milburn b9a93f354b Revert "SKY: Map the floppy intro track."
This reverts commit 0599145ecf.
This mapping was incorrect, 503 is the outro.
2012-02-07 13:20:50 +01:00
Willem Jan Palenstijn d2375c86eb SKY: Fix warning 2011-12-19 23:58:55 +01:00
D G Turner e5d6801c99 SKY: Replace usage of 'goto'. 2011-12-08 20:36:16 +00:00
Alyssa Milburn 0599145ecf SKY: Map the floppy intro track. 2011-11-22 14:57:25 +01:00
Alyssa Milburn 9abc601e53 SKY: Don't loop the floppy intro track.
This isn't relevant at present, so this is "just in case".
2011-11-22 14:21:47 +01:00
Strangerke bab4b6f729 LAUNCHER: Introduce GUIO0() in order to replace GUIO1(GUIO_NONE) 2011-11-16 22:38:58 +01:00
Alyssa Milburn 7a12796bba SKY: Support external digital music tracks.
This allows replacement of the supplied MIDI music with tracks from
the Music Enhancement Project.
2011-11-14 20:45:00 +01:00
Eugene Sandulenko 32972a5ffb AD: Switched rest of the engines to new GUIO 2011-10-23 17:53:13 +01:00
Joost Peters 2eb624b229 SKY: fix bug #3149412: Invalid Mode when giving shades to travel agent 2011-09-12 13:56:28 +02:00
Johannes Schickel 2b3da93a95 SKY: Made some more static data const. 2011-09-08 19:58:28 +02:00
Johannes Schickel 07ec50224e SKY: Made some static data const. 2011-09-08 00:36:42 +02:00
Christoph Mallon 23a0f5318c JANITORIAL: Remove trailing empty lines. 2011-08-07 13:53:33 +02:00
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
Thierry Crozat 06bbb57ad7 I18N: Make many more GUI MessageDialog strings translatable 2011-06-13 22:19:18 +01:00
D G Turner bd58c9459d SKY: Replace snprintf() usage with Common::String::format()
Safer and less portability issues.
2011-06-02 21:14:58 +01:00
Max Horn 477d6233c3 ENGINES: Change 2nd param of Engine::saveGameState to Common::String 2011-06-02 18:31:59 +02:00
Matthew Hoops 9539017ee3 ALL: initialise -> initialize 2011-05-25 11:17:11 -04:00
Matthew Hoops e18401a07c ALL: armour -> armor 2011-05-25 10:50:47 -04:00
Thierry Crozat d2a55b42c9 ENGINES: Further unify engine names 2011-05-22 12:47:35 +01:00
Max Horn 4cbe4ede66 COMMON: Registers RandomSources in constructor with the event recorder
This also removes the dependency of engines on the event recorder header
and API, and will make it easier to RandomSources that are not properly
registered.
2011-05-17 12:17:26 +02:00
strangerke 69b1485a22 GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +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
Ori Avtalion 3e01d35281 JANITORIAL: Format more forward declarations to follow convention 2011-04-28 12:32:01 +03:00
Ori Avtalion cd6ee0589d JANITORIAL: Format forward declarations to follow convention 2011-04-28 12:20:34 +03:00
Max Horn 73f04118f3 COMMON: Rename Error to ErrorCode, introduce new Error class 2011-04-18 18:22:02 +02:00
Max Horn 2e095e25f2 ALL: centre -> center 2011-04-14 14:34:28 +02:00
Max Horn 84184aabc0 ALL: colour -> color 2011-04-14 14:12:35 +02:00
dhewg d83a83ef50 JANITORIAL: Remove/comment unused vars
Found by GCC 4.6's -Wunused-but-set-variable
2011-03-29 21:57:56 +02:00
Max Horn 8c931fd1e8 AUDIO: Add Audio::MidiPlayer::createDriver(), let some engines use it 2011-03-28 18:06:36 +02:00
Max Horn 7b02dac3c5 ENGINES: Use Common::StackLock in more places 2011-03-23 15:25:46 +01:00
dhewg 5e8907fc3c SKY: Cleanup volume levels initialization 2011-03-19 16:49:15 +01:00
Johannes Schickel 7d0f5c9f1c Merge branch 'master' into osystem-palette
Conflicts:
	engines/sky/screen.h
2011-02-16 00:14:37 +01:00
dhewg 12fd509295 SKY: Restore old sequence delay behaviour.
Since f621f6a5 processSequence() waited 60*3ms instead of 60ms. Restored
that while getting rid of SEQ_DELAY. That in return allows us to relax
the call frequency again (more sleeps, less cpu hogging).
2011-02-16 00:02:32 +01:00
Alyssa Milburn 2eb67edd0f SKY: Fix array access in debug code.
The script data is already byteswapped at load time.
2011-02-16 00:05:15 +01:00
Alyssa Milburn ea857a6f80 SKY: Stop intro sound before freeing the buffer. 2011-02-16 00:05:09 +01:00