Commit Graph
3029 Commits
Author SHA1 Message Date
Jody Northup f7dd1c15ed renamed ENABLE_16BIT define to more accurate ENABLE_RGB_COLOR
svn-id: r41696
2009-06-20 05:23:09 +00:00
Jody Northup db9cfc6f96 Corrected oversight in earlier ifdef simplification which leads to compilation failure if ENABLE_16BIT is not defined.
svn-id: r41581
2009-06-16 09:15:06 +00:00
Jody Northup cb56169a27 Declared getBestFormat in OSystem base class, and implemented in SDL backend.
svn-id: r41580
2009-06-16 09:04:37 +00:00
Jody Northup 8d306ebccf Added kUnsupportedColorMode error code brought Scumm engine and SDL backend into compliance with API outlined in http://scummvmupthorn09.wordpress.com/2009/06/14/how-this-is-going-to-work/
Provided convenient Graphics::PixelFormat constructors for ColorMode enums, and bitformat integers.
Removed last vestiges (I think) of initial cursor hack.

svn-id: r41539
2009-06-15 09:45:19 +00:00
Willem Jan Palenstijn 6eed461c94 Fix erase() sometimes hiding other hash elements.
Like CPython, we now use a dummy node to mark nodes as erased,
so that lookup() can skip over it. All tests should now pass again.

svn-id: r41496
2009-06-13 21:07:05 +00:00
Jody Northup 350dc4290f Fixed cursor code to keep track of cursor formats so that ThemeEngine and/or GuiManager cursors will render properly over the game (on spacebar hit, for instance)
svn-id: r41491
2009-06-13 10:24:52 +00:00
Nicola Mettifogo 66decf21f7 Fixed disposeStream initialization.
svn-id: r41474
2009-06-12 10:26:58 +00:00
Nicola Mettifogo b2e5905327 * Adapted Kyra to the new IFFParser interface.
* Adapted the new IFFParser to Kyra (slightly).
The Kyra1 demo on the website works.

svn-id: r41468
2009-06-12 09:49:38 +00:00
Nicola Mettifogo 36828287ad * Moved the updated IFF code from Parallaction to common/
* Updated Parallaction and SAGA to use the new decoder infrastructure.

svn-id: r41465
2009-06-12 08:51:05 +00:00
Jody Northup 2ee51a8fa1 Unfinished proof of concept regarding my compromise with LordHoto in IRC.
svn-id: r41464
2009-06-12 08:49:45 +00:00
Jody Northup 6adbd0c41e Renamed Graphics::ColorFormat to Graphics::ColorMode, streamlined enum by removing order section and temporarily removing kFormatARGB1555
Converted cursor code to make use of _screenFormat, instead of a parameter passed directly to it by the engine.
Adjusted scumm engine to account for these changes.
This should probably have been two separate commits, but the changes concern the same files...

svn-id: r41443
2009-06-11 05:56:00 +00:00
Jordi Vilalta Prat ccbc5f3abb Point to the Cursor and AudioCD Managers to help engine authors following the right path.
svn-id: r41433
2009-06-10 15:33:37 +00:00
Johannes Schickel be42f800a4 Extend documentation for "kFeatureCursorHasPalette".
svn-id: r41430
2009-06-10 15:11:17 +00:00
Johannes Schickel ad98719ba2 Fix documentation for debugC and debugCN, relying on special debug levels.
svn-id: r41425
2009-06-10 12:47:19 +00:00
Eugene Sandulenko ff72f8531c Added debugCN() call which does not add newline automatically
svn-id: r41421
2009-06-10 10:11:24 +00:00
Jody Northup 0a793f08a4 SDL backend now dynamically generates 8 or 16-bit color surface depending on engine request (using ad-hoc format).
svn-id: r41416
2009-06-10 05:35:18 +00:00
Jody Northup c426dd99a4 Laying the foundation for preliminary bitdepth negotiation. (No functionality changes yet)
svn-id: r41396
2009-06-09 07:55:43 +00:00
Travis Howell 628e876a46 Spacing.
svn-id: r41375
2009-06-08 14:55:11 +00:00
Max Horn a5ff6cc19d Fixed appending a (substring of a) string to itself
svn-id: r41337
2009-06-07 13:14:34 +00:00
Max Horn a39048877a Added some new method variants to Common::String
svn-id: r41333
2009-06-07 13:04:03 +00:00
Max Horn 985bc454b2 Added an experimental '--upgrade-targets' option (to be refined; and 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-06-07 12:47:10 +00:00
Eugene Sandulenko a0fa307fc5 Added CoCo3 version of SQ1
svn-id: r41284
2009-06-06 18:22:43 +00:00
Eugene Sandulenko 1bd6f6c99f Added game GUI options to advancedDetector and updated all engines
svn-id: r41272
2009-06-06 17:56:41 +00:00
Eugene Sandulenko c295f524b2 Implement feature request #1180217: "GUI: Mute option"
svn-id: r41233
2009-06-06 17:36:06 +00:00
Jody Northup 56e5920bba Corrected cursor display errors introduced by revision 41204, reimplemented 16-bit cursor support in a less hacky, but still temporary way.
svn-id: r41209
2009-06-06 01:16:04 +00:00
Travis Howell 8ff3a568fa Merged revisions 41154-41156,41160,41163-41181,41185-41186,41188-41189,41196-41202 via svnmerge from
https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/trunk

........
  r41154 | thebluegr | 2009-06-04 18:25:48 +1000 (Thu, 04 Jun 2009) | 1 line
  
  Turned debug_weak_validations on by default again, as apparently some games like SQ3 fail in some validations (e.g. when loading). Also, fixed a potential out of bounds access when copying the value of __FILE__ into a buffer (as its value can be quite long in some cases).
........
  r41155 | thebluegr | 2009-06-04 18:28:20 +1000 (Thu, 04 Jun 2009) | 1 line
  
  Reordered the numpad keys so that they make more sense, and simplified the code which returns the values of shifted function keys
........
  r41156 | djwillis | 2009-06-04 18:30:31 +1000 (Thu, 04 Jun 2009) | 1 line
  
  Initial import of the GP2XWiz backend (based on the GP2X and SDL backends). Includes configure changes and one #ifdef to SDL backend. Also updates NEWS.
........
  r41160 | strangerke | 2009-06-04 19:48:56 +1000 (Thu, 04 Jun 2009) | 1 line
  
  gob : _spriteBottom incorrectly saved and restored in Draw_v2::spriteOperation
........
  r41163 | fingolfin | 2009-06-04 21:28:05 +1000 (Thu, 04 Jun 2009) | 1 line
  
  SCI: Renamed various debug related global variables to have a g_ prefix; and moved any 'extern' decls of them into a new header file
........
  r41164 | waltervn | 2009-06-04 21:35:17 +1000 (Thu, 04 Jun 2009) | 2 lines
  
  SCI: Support for 16-bit DPCM.
........
  r41165 | fingolfin | 2009-06-04 21:44:55 +1000 (Thu, 04 Jun 2009) | 1 line
  
  SCI: cleanup
........
  r41166 | fingolfin | 2009-06-04 21:45:17 +1000 (Thu, 04 Jun 2009) | 1 line
  
  SCI: Moved MemObject code into a separate source file
........
  r41167 | fingolfin | 2009-06-04 21:45:34 +1000 (Thu, 04 Jun 2009) | 1 line
  
  Code formatting in the gp2xwiz backend
........
  r41168 | thebluegr | 2009-06-04 22:47:11 +1000 (Thu, 04 Jun 2009) | 1 line
  
  Updated the MSVC project files of the SCI engine
........
  r41169 | waltervn | 2009-06-05 00:29:20 +1000 (Fri, 05 Jun 2009) | 2 lines
  
  SCI: Message: Added support for escape sequences.
........
  r41170 | waltervn | 2009-06-05 01:56:11 +1000 (Fri, 05 Jun 2009) | 2 lines
  
  SCI: Added support for early SCI1.1 audio maps.
........
  r41171 | waltervn | 2009-06-05 02:18:35 +1000 (Fri, 05 Jun 2009) | 2 lines
  
  SCI: Audio: Fixed bug in reading of SOL header.
........
  r41172 | fingolfin | 2009-06-05 06:50:51 +1000 (Fri, 05 Jun 2009) | 1 line
  
  SCI: Added FIXME comment to not_register()
........
  r41173 | fingolfin | 2009-06-05 06:51:09 +1000 (Fri, 05 Jun 2009) | 1 line
  
  SCI: cleanup
........
  r41174 | fingolfin | 2009-06-05 06:51:24 +1000 (Fri, 05 Jun 2009) | 1 line
  
  SCI: Slightly modified kAddAfter so that it does not modify its arguments needlessly
........
  r41175 | fingolfin | 2009-06-05 06:51:40 +1000 (Fri, 05 Jun 2009) | 1 line
  
  SCI: Added MemObject::isValidOffset method; use it to simplify determine_reg_type
........
  r41176 | fingolfin | 2009-06-05 07:42:24 +1000 (Fri, 05 Jun 2009) | 1 line
  
  SCI: Renamed _kfuncTable -> _kernelFuncs; and simplified/streamlined the kernel func map in kernel.cpp a bit
........
  r41177 | fingolfin | 2009-06-05 07:44:39 +1000 (Fri, 05 Jun 2009) | 1 line
  
  SCI: Renamed EngineState::flags and version to _flags and _version (following our conventions); also slightly changed the EngineState constructor to init _version & _flags, and used this to make them constant
........
  r41178 | fingolfin | 2009-06-05 07:53:45 +1000 (Fri, 05 Jun 2009) | 1 line
  
  oops
........
  r41179 | athrxx | 2009-06-05 08:12:13 +1000 (Fri, 05 Jun 2009) | 1 line
  
  LOL: implemented Vaelan's cube
........
  r41180 | fingolfin | 2009-06-05 08:16:31 +1000 (Fri, 05 Jun 2009) | 1 line
  
  SCI: Made some members of class Resource protected; some cleanup
........
  r41181 | waltervn | 2009-06-05 09:55:08 +1000 (Fri, 05 Jun 2009) | 3 lines
  
  SCI: Fixed some endian bugs related to speech handling. READ_UINT* are not LE,
  but use native endianness. Thanks to clone2727 for pointing this out.
........
  r41185 | Kirben | 2009-06-05 10:57:58 +1000 (Fri, 05 Jun 2009) | 1 line
  
  Update sound code in HE80+ games, for sound rate differences.
........
  r41186 | waltervn | 2009-06-05 11:12:52 +1000 (Fri, 05 Jun 2009) | 2 lines
  
  SCI: Audio: Fixed bug in sample length computation.
........
  r41188 | Kirben | 2009-06-05 12:35:38 +1000 (Fri, 05 Jun 2009) | 1 line
  
  Fix issues selecting some items in arttime and football.
........
  r41189 | Kirben | 2009-06-05 14:16:32 +1000 (Fri, 05 Jun 2009) | 1 line
  
  Minor cleanup.
........
  r41196 | dreammaster | 2009-06-05 22:20:42 +1000 (Fri, 05 Jun 2009) | 1 line
  
  Tweaks to the code that pauses for a mouse press when displaying many text messages
........
  r41197 | thebluegr | 2009-06-06 04:05:45 +1000 (Sat, 06 Jun 2009) | 1 line
  
  Removed some unused code and performed some cleanup
........
  r41198 | thebluegr | 2009-06-06 05:04:14 +1000 (Sat, 06 Jun 2009) | 1 line
  
  Moved some more debug commands to ScummVM's coneole and removed some unused code
........
  r41199 | athrxx | 2009-06-06 07:34:18 +1000 (Sat, 06 Jun 2009) | 1 line
  
  LOL: implemented another opcode
........
  r41200 | mthreepwood | 2009-06-06 08:35:13 +1000 (Sat, 06 Jun 2009) | 1 line
  
  Make the PlayStation's abbreviation to all lower-case for consistency and change the description from Playstation to Sony PlayStation
........
  r41201 | athrxx | 2009-06-06 08:53:36 +1000 (Sat, 06 Jun 2009) | 1 line
  
  LOL: minor bug fix
........
  r41202 | thebluegr | 2009-06-06 09:08:35 +1000 (Sat, 06 Jun 2009) | 1 line
  
  Cleanup
........

svn-id: r41206
2009-06-06 00:10:40 +00:00
Matthew Hoops 7e52694025 Make the PlayStation's abbreviation to all lower-case for consistency and change the description from Playstation to Sony PlayStation
svn-id: r41200
2009-06-05 22:35:13 +00:00
Jody Northup 9789ba7f28 Corrected backend to be able to accept a 16-bit mouseKeyColor without overflow
svn-id: r41194
2009-06-05 08:09:37 +00:00
Willem Jan Palenstijn 6e38259270 Add a 'flat' option to FSDirectory to allow searching recursively for files in subdirectories
svn-id: r41090
2009-06-01 00:01:32 +00:00
Filippos Karapetis 010fbadf01 Document that debug level 11 turns on all special debug level messages (refer to rev. #28858)
svn-id: r41076
2009-05-31 16:02:10 +00:00
Max Horn fb79b18571 Changed SaveFileManager methods to take Common::String params (instead of char pointers)
svn-id: r41000
2009-05-29 14:38:22 +00:00
Max Horn 1c552779a0 Renamed Common::Serializer::syncMagic to matchBytes, and added version paarms to it (we migh want to add corresponding matchUint32LE etc. functions if needed)
svn-id: r40909
2009-05-26 11:31:45 +00:00
Max Horn 94dfc8f638 Fixed a bug in Common::Array (including a unit test for it), and changed the way the internal storage growth over time.
The bug could result in incorrect results when using push_back (or insert_at)
to insert data from an array into itself if this insertions would cause the
internal array storage to grow. Also added a unit test for this bug.

Furthermore, if the internal storage needs to grow, it will now be resized to the next power of two,
instead of being increased by 32.

svn-id: r40907
2009-05-26 11:28:38 +00:00
Johannes Schickel b3c6751b9b Strip trailing whitespaces in the whole code base.
svn-id: r40867
2009-05-24 15:17:42 +00:00
Max Horn 65b5d31814 COMMON: Removed Stream::ioFailed() and clearIOFailed(), as they are deprecated; however, retained ioFailed in SeekableReadStream and File for now (so for now this mainly affects WriteStream subclasses)
svn-id: r40725
2009-05-19 11:42:14 +00:00
Max Horn 42cd218400 Improved Common::Serializer in several ways:
* Added support versioned serialization
* Added a convenience API for handling 'magic IDs' transparently
* Exposed the err()/clearErr() methods of the underlying streams
* Added a basic unit test for versioned loading (more should be added, in particular for saving)
* Removed the syncString(char *, uint16) alias for syncBytes(byte *buf, uint32 size)

svn-id: r40723
2009-05-19 11:23:13 +00:00
Johannes Schickel b2b08cc606 Typo.
svn-id: r40693
2009-05-18 16:00:15 +00:00
Eugene Sandulenko a0a44ef498 Allow creation of KeyState with zero ascii value.
svn-id: r40501
2009-05-12 19:03:42 +00:00
Johannes Schickel 619d107ed7 Add more detailed error message for "Chunk overread" case.
svn-id: r40493
2009-05-12 15:06:20 +00:00
Johannes Schickel fa0fe7fada Typo.
svn-id: r40487
2009-05-12 13:56:09 +00:00
Filippos Karapetis 36c832d455 Added a startOffset parameter to hexdump() (used by SCI's own hexdump method)
svn-id: r40470
2009-05-12 07:07:17 +00:00
Eugene Sandulenko 665e472ef0 Keymapper:
- Introduced new OSystem method getHardwareKeySet() with default implementation
- Moved global keymap creation to base/main.cpp
- Moved GUI keymap creation to gui/GuiManager.cpp
- Added various safeguard checks to various keymapper methods

Now it is really possible to add keymapper to all backends.

svn-id: r40439
2009-05-10 22:05:04 +00:00
Max Horn 36818ced2a Changed Common::Array::resize() to default init new array elements
svn-id: r40430
2009-05-10 19:17:11 +00:00
Eugene Sandulenko 7d79a092b5 Store global keymaps into a separate section
svn-id: r40427
2009-05-10 17:33:31 +00:00
Max Horn c91a6c97ae Clarified docstring for String::insertChar
svn-id: r40382
2009-05-08 12:37:28 +00:00
Max Horn 61dcaad888 COMMON: Changed Array destructor to reset _storage and _size to 0 -- this helps to find 'Array used after being disposed' bugs
svn-id: r40326
2009-05-05 12:29:15 +00:00
Eugene Sandulenko 6a8a9740a1 Fix valgrind warning
svn-id: r40309
2009-05-04 16:35:47 +00:00
Max Horn 689511a56f COMMON: Made Array::resize() init/zero the memory it allocates
svn-id: r40304
2009-05-04 15:04:39 +00:00
Max Horn c33a875d9f Fixed new[] / delete mismatch in Common::String
svn-id: r40302
2009-05-04 14:20:17 +00:00
Max Horn 6a632b51ad COMMON: Optimized MemoryPool::freeUnusedPages (if many pages are phased out at once, don't copy everything multiple times around)
svn-id: r40292
2009-05-03 22:45:46 +00:00