Commit Graph

106 Commits

Author SHA1 Message Date
Jordi Vilalta Prat
5e9285e8fa Fixed a few formatting bits
svn-id: r41973
2009-06-30 08:25:08 +00:00
Jody Northup
9e1916bcad renamed kTransactionPixelFormatNotSupported to kTransactionFormatNotSupported, retyped all Graphics::PixelFormat * parameters to const Graphics::PixelFormat *, (hopefully) repaired all memory leaks on screen and cursor format changes, provided OSystem::getScreenFormat and OSystem::getSupportedFormats methods for when ENABLE_RGB_COLOR is not set, completely forgot the "commit early, commit often" mantra.
svn-id: r41972
2009-06-30 07:30:57 +00:00
Jody Northup
853aec05ba changed initGraphics, and OSystem::initSize to take Graphics::PixelFormat * parameters instead of Graphics::PixelFormat parameters, to save unnecessary pixelformat initialization if ENABLE_RGB_COLOR is not set.
svn-id: r41909
2009-06-27 05:58:44 +00:00
Jody Northup
7c62242315 Merged format initialization into InitSize to allow for backends not supporting gfx transactions.
svn-id: r41801
2009-06-23 02:02:51 +00:00
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
704386d3b0 Removed replaced Graphics::ColorMode enum type with factory methods for Graphics::PixelFormat.
svn-id: r41662
2009-06-19 09:28:55 +00:00
Jody Northup
c97bfd16f9 made Graphics::PixelFormat(ColorMode) constructor explicit, removed Graphics::PixelFormat(int bitFormat) constructor that was never really implemented anyway
svn-id: r41540
2009-06-15 10:10:22 +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
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
Jody Northup
58a348fd18 Scumm engine now dynamically requests 16-bit color based on game features, (using ad-hoc request format)
svn-id: r41417
2009-06-10 05:35:54 +00:00
Eugene Sandulenko
c295f524b2 Implement feature request #1180217: "GUI: Mute option"
svn-id: r41233
2009-06-06 17:36:06 +00:00
Torbjörn Andersson
f20554d389 Check for "track01" as well as "track1". (I hope I didn't break compilation by
modifying Windows-only code.)

svn-id: r39040
2009-03-01 15:15:51 +00:00
Max Horn
716f88f571 Avoid using g_engine if possible
svn-id: r36149
2009-01-30 16:04:39 +00:00
Johannes Schickel
690b88f982 Renamed gui/newgui.cpp -> gui/GuiManager.cpp and gui/newgui.h -> gui/GuiManager.h
svn-id: r35668
2009-01-02 03:21:40 +00:00
Eugene Sandulenko
696897b058 Whoa! Removing trailing spaces.
svn-id: r35648
2009-01-01 15:06:43 +00:00
Johannes Schickel
2ef8a32a01 Fixed various g++ warnings ("format not a string literal and no format arguments").
svn-id: r35096
2008-11-16 20:20:31 +00:00
Johannes Schickel
28bd3e0af8 Fixed strncpy usage.
svn-id: r35083
2008-11-15 14:15:17 +00:00
Johannes Schickel
478ee06fb8 Paranoia: Add destination buffer size to Engine::errorString to help avoiding buffer overflows.
svn-id: r35072
2008-11-15 03:16:41 +00:00
Johannes Schickel
5a0556f09c Committed my patch #2123680 "SDL: Backend transaction / rollback support".
svn-id: r35062
2008-11-14 22:08:10 +00:00
Max Horn
40136f2590 Switched various Engine APIs to use Common::Error
svn-id: r34916
2008-11-06 17:05:54 +00:00
Max Horn
8f33d4a40a Implemented GMM loading (and, once the GMM supports it, saving) for SCUMM
svn-id: r34913
2008-11-06 15:41:38 +00:00
Max Horn
61aadb378d Fixed the EngineFeature vs. MetaEngineFeature mess, clarified some EngineFeature comments
svn-id: r34896
2008-11-04 16:11:40 +00:00
Johannes Schickel
2694e916da Extend HACK in Engine::hasFeature, fixes GMM load dialog.
svn-id: r34889
2008-11-03 21:10:18 +00:00
Max Horn
55c10e0ec6 Patch #2122869: ALL: Common load dialog
svn-id: r34883
2008-11-03 18:32:16 +00:00
Filippos Karapetis
ea8e06fcf9 Implemented FR #2038951: "ALL: visible warning when CD music missing"
svn-id: r34856
2008-10-26 19:27:26 +00:00
Max Horn
6a2f3dc0b9 Added new type Engine::Feature; pushed down some #include dependencies
svn-id: r34755
2008-10-06 12:48:52 +00:00
Max Horn
84229ee79c Fixed Engine::hasFeature to use proper types (i.e., MetaEngine::MetaEngineFeature instead of int)
svn-id: r34731
2008-10-03 16:07:57 +00:00
Max Horn
3248906156 Engine class changed:
- Moved initCommonGFX() && GUIErrorMessage() out of class Engine
- got rid of the _autosavePeriod member (this prevented users from
  changing the autosave period during runtime)
- Got rid of an evil 'using GUI::Dialog' statement
- Clarified some Doxygen comments

svn-id: r34720
2008-10-02 17:48:01 +00:00
Max Horn
9b160804ab Renamed Engine::quit to Engine::shouldQuit (previously, it was easily confused with Engine::quitGame); also cleaned up engine.h a bit
svn-id: r34700
2008-09-30 12:27:38 +00:00
Max Horn
2bc093828f Replaced Engine::_gameDataPath (a String) by Engine::_gameDataDir (an FSNode); adapted code to that (by using getChild() to get subdirs, not string concatenation
svn-id: r34434
2008-09-07 22:10:58 +00:00
Lars Persson
f6c4df8281 Symbian already store all paths with a trailing "\".
Quick fix waiting for proper solution

svn-id: r34423
2008-09-07 19:19:45 +00:00
Max Horn
f5462901b2 Temporary workaround for bug #2098279: ALL: Game path with no trailing backslash fails
svn-id: r34408
2008-09-07 15:16:45 +00:00
Christopher Page
ec8dac5540 Added a MetaEngineFeature for RTL support, the RTL button is disabled in the GMM if the engine doesn't support it
svn-id: r33921
2008-08-16 02:53:16 +00:00
Christopher Page
8d8c46e36f Cleanup: Got rid of _quit and _rtl variables in engine.h/.cpp which are not used anymore. Found some _quit flags in Agos and Gob and replaced with bool quit() where appropriate
svn-id: r33848
2008-08-13 20:45:00 +00:00
Christopher Page
f41471d34b Engine::runDialog() returns a value now
svn-id: r33672
2008-08-06 21:47:20 +00:00
Christopher Page
e30d16ddc2 Fixed more warnings
svn-id: r33649
2008-08-05 21:56:45 +00:00
Christopher Page
e808cdf7a0 Reimplemented pushEvent() and artificialEventQueue to work with Events instead of EventTypes. Reimplemented Queue as a List instead of Array. Updated AGOS, AGI, CINE, GOB, and KYRA to work with the current implementation of the GMM
svn-id: r32971
2008-07-09 02:27:05 +00:00
Christopher Page
e36166bda2 Added syncSoundSettings() to Engine, sound settings can now be modified from the global main menu for most engines
svn-id: r32815
2008-06-26 23:22:28 +00:00
Christopher Page
f878820bbe Created Global Main Menu Dialog. Made a uniform _quit flag for engines. So far agi, agos, and cine are now using the new _quit flag.
svn-id: r32770
2008-06-24 21:15:30 +00:00
Max Horn
88bb567e18 Merged lots of _mixer->isReady() warnings into a single one in Engine constructor
svn-id: r30871
2008-02-15 17:01:35 +00:00
Nicola Mettifogo
258901bab9 Merged common/stdafx.h into common/scummsys.h. All referencing files have been updated.
svn-id: r28966
2007-09-19 08:40:12 +00:00
Max Horn
4cc9d17c34 Adding various FIXME comments to bogus (non-self-explanatory) existing FIXME comments; and some other related cleanup
svn-id: r28890
2007-09-11 09:20:39 +00:00
Max Horn
a14485da5f Fix for bug #1746112 (SCUMM: Crash when pressing SPACE (Pause))
svn-id: r27836
2007-07-01 20:16:24 +00:00
Max Horn
9027076e5d Split Engine::pauseEngine: It now does pauseLevel handling, while engines can provide a simpler pauseEngineIntern method; provided default implementation of the latter which simply (un)pauses the mixer
svn-id: r27801
2007-06-30 22:22:25 +00:00
Max Horn
218e132e37 Updated legal headers in source files, based on what Pidgin (the IM client formerly knowns as Gaim) does; added new (incomplete) COPYRIGHT file; updated copyright dates in a few spots
svn-id: r27024
2007-05-30 21:56:52 +00:00
Gregory Montoir
5aca9dce8c added the instance of EventManager returned by OSystem::getEventManager as a member of the Engine base class. This allows to simply the code a bit and should more efficient too (ie. less virtual function chain calls, obj->getA()->getB()). Also updated several engines to make use of it.
svn-id: r26357
2007-04-01 17:36:13 +00:00
Robert Göffringmann
4a11e7299a fixed MSVC compiler warning because winnt.h defines its own ARRAYSIZE #define
svn-id: r26171
2007-03-17 15:45:05 +00:00
Nicola Mettifogo
1e985051a9 reduced dependency from windows-specific header files
svn-id: r26034
2007-03-09 00:13:07 +00:00
Max Horn
227a080e5b Patch #1663933 (Kill premix channel) with a few tiny additional tweaks by me
svn-id: r25752
2007-02-20 18:50:17 +00:00
Nicola Mettifogo
852803d6e0 removed warnings
svn-id: r25534
2007-02-12 19:47:42 +00:00
Max Horn
5563013c1d Don't delete the savefile manager in the Engine destructor
svn-id: r24703
2006-11-12 21:08:55 +00:00
Max Horn
f95f5ed133 Added OSystem::getTimerManager and OSystem::getMixer methods (wip)
svn-id: r24405
2006-10-21 12:03:43 +00:00
Travis Howell
17d4f41a88 Fix mingw compile
svn-id: r23976
2006-09-23 01:05:30 +00:00
Max Horn
f0ac3d1c9e Moved error/warning/checkHeap from engines/engine.cpp to common/util.cpp
svn-id: r23975
2006-09-23 00:51:30 +00:00
Max Horn
4c14cf6d1a Moved base/engine.cpp and .h to engines/ (main motivation: helps untangle the linker dependency graph). Porters will have to update project files
svn-id: r23974
2006-09-23 00:42:35 +00:00