Commit Graph

1219 Commits

Author SHA1 Message Date
Eugene Sandulenko
7dcb8503a3 Add possibility to serve engines with complex Engine class instantiation
svn-id: r28582
2007-08-13 08:58:04 +00:00
Max Horn
a03119c5f5 Changed OSystem (A)RGBToColor and colorTo(A)RGB methods to use ColorMasks templates; clarified some OSystem comments
svn-id: r28517
2007-08-11 08:05:03 +00:00
Eugene Sandulenko
6505686c5a Renamed some typedefs to avoid clashes with sky engine
svn-id: r28321
2007-07-30 10:18:25 +00:00
Torbjörn Andersson
c2516db9ac Early in the morning, strrev() looks like a more difficult problem than it
really is. It's actually quite simple. In fact, the only magical thing about
Bob's version was the way it swapped variables without using any temporary
variable. Rewrote the function to use our SWAP() instead, since that actually
makes it readable. Moved it to util.cpp (outside the Common namespace, for
consistency with scumm_stricmp()) since Kirben knew of other places where it
could be used.

svn-id: r28231
2007-07-27 05:15:24 +00:00
Max Horn
41c68ac3e4 Removed various obsolete methods from OSystem (screenToOverlayX/Y, overlayToScreenX/Y)
svn-id: r27961
2007-07-08 12:02:38 +00:00
Max Horn
9f6922ddd2 Patch #1595026: engine init/shutdown OSystem methods
svn-id: r27837
2007-07-01 20:28:57 +00:00
Max Horn
e1bcd70436 Re-added __attribute__(packed)
svn-id: r27830
2007-07-01 18:18:43 +00:00
Max Horn
f058edf860 Switched Paula (Amiga MOD) code to use fixed point math instead of doubles (caveat: this only works for samples < 32k right now; if this ever turns out to be a problem, I can fix it, though)
svn-id: r27767
2007-06-28 22:21:32 +00:00
Max Horn
d35861fc4a Changed GOB to use common/frac.h
svn-id: r27763
2007-06-28 20:09:58 +00:00
Max Horn
6dfa44dbd5 Moved some fixed point code to its own header file; simplified the LinearRateConverter code a bit; corrected some comments; split makeRateConverter into two funcs (one of them being a template func), for easier maintenance
svn-id: r27760
2007-06-28 19:35:48 +00:00
Max Horn
2bbe67afdf Added more flexible KeyState constructor; updated comment in gui/Key.h
svn-id: r27654
2007-06-23 10:06:39 +00:00
Max Horn
d9718b0684 Do not use SCUMMVM_USE_LONG_INT on _MSC_VER anymore (if it *is* needed after all, speak up -- that FIXME has been in there for far too long, however)
svn-id: r27641
2007-06-22 23:27:32 +00:00
Max Horn
e7a58d9369 Moved keyboard stuff to a separate header file
svn-id: r27640
2007-06-22 23:20:50 +00:00
Max Horn
c690cad67f Added constructor & reset() method to Common::KeyState
svn-id: r27634
2007-06-22 22:18:15 +00:00
Max Horn
753eee6d0c Promoted the struct inside Common::Event which captures the keystate to a full-blown independent struct named KeyState (makes it easier for engines to capture the full keystate, instead of only the keycode or only the ascii/unicode value)
svn-id: r27626
2007-06-22 21:32:49 +00:00
Max Horn
2fa0a5c457 Cleaning up after myself (I blame it on, err, uhh... the Vogons?)
svn-id: r27625
2007-06-22 21:16:07 +00:00
Max Horn
85bf0f6d6b Added Common::KEYCODE_INALID
svn-id: r27622
2007-06-22 20:51:13 +00:00
Max Horn
8a658e0187 Added 'ASCII_' enum values for certain standard keys, and update comment
svn-id: r27619
2007-06-22 20:33:51 +00:00
Max Horn
17a75e7bd3 Replace tabs by spaces in keycode enum, to ensure proper indention
svn-id: r27618
2007-06-22 20:30:52 +00:00
Max Horn
2b23374468 Converted lots of code to use Common::ASCII_* and COMMON::KEYCODE_* constants. This also revealed the evil mixing of keycodes and ascii we do in many places :-/
svn-id: r27616
2007-06-22 20:04:44 +00:00
Max Horn
55f93678b8 Heavily modified/reduced version of patch #1741454 (EVENTS: ASCII enum)
svn-id: r27612
2007-06-22 17:51:51 +00:00
Max Horn
bd9ba26109 Modified version of patch #1740493 (EVENTS: Event Key Codes)
svn-id: r27592
2007-06-21 18:35:15 +00:00
Matthew Hoops
218a2da5d4 typo - (returh => return) -- jvprat
svn-id: r27558
2007-06-20 17:52:24 +00:00
Max Horn
b51f2f3212 Implemented the OSystem framebuffer API, as discussed on scummvm-devel. All changes are just fine, and won't cause any compile problems or regressions, despite the fact that I can't test most of the non-SDL backend changes, at an improbability level of two to the power of two hundred and seventy-six thousand to one against - possibly much higher. Anything you still can't cope with is therefore your own problem. Please relax.
svn-id: r27548
2007-06-19 22:39:59 +00:00
Max Horn
0a7bb215d9 Added a FIXME comment to the adv. detector code regarding (not) using FSNode/FSList
svn-id: r27425
2007-06-15 17:37:28 +00:00
Max Horn
d6e47d5fd3 ADV detector: Refactored findGameID() a bit, making it possible to use it outside the AdvancedDetector framework; also made it generate somewhat more user friendly desc for obsolete game IDs
svn-id: r27424
2007-06-15 17:36:41 +00:00
Eugene Sandulenko
6e5b70f5e9 Patch #1733764: "Fallback detection patch". GSoC student.
svn-id: r27375
2007-06-12 12:22:25 +00:00
Eugene Sandulenko
add3243e5e Fix for bug #1719463: "DETECTOR: Launching undefined target adds launcher entry"
svn-id: r27352
2007-06-11 08:38:23 +00:00
Max Horn
9e651592ec Adv detector: Merged upgradeTargetIfNecessary() into detectGameForEngineCreation()
svn-id: r27144
2007-06-06 18:35:37 +00:00
Kostas Nakos
5df28554ac Adding the new kFeatureDisableKeyFiltering OSystem feature.
This feature is used by agi's prediction dialog and is a hint to the backend
to temporarily switch off any keyboard mapping, used in devices with limited
keyboard input. Also, supply some comments to the newly added event & feature.

svn-id: r27069
2007-06-03 18:44:03 +00:00
Max Horn
95ba2986d3 Enhanced Common::String by adding char constructor and operator+ for chars
svn-id: r27051
2007-06-02 12:42:40 +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
Max Horn
5006dbd932 AdvDetector changes: made upgradeTargetIfNecessary internal; cleanup to findGameID
svn-id: r27020
2007-05-30 18:39:35 +00:00
Max Horn
04ee67bd71 Hash<T> is an UnaryFunction (very pedantic and effectively effectless change *g*)
svn-id: r27013
2007-05-30 16:42:19 +00:00
Kostas Nakos
f66fb12718 added EVENT_PREDICTIVE_DIALOG event to bring up the predictive dialog on demand by the backends
svn-id: r27005
2007-05-29 20:07:19 +00:00
Max Horn
3144ab58a6 Paranoia changes (shouldn't have any real effect, though...)
svn-id: r26972
2007-05-27 12:43:06 +00:00
Johannes Schickel
86104e0bf0 Reverted r26922.
svn-id: r26967
2007-05-27 11:40:03 +00:00
Johannes Schickel
ad03c72bdb Commit of patch #1715313 ("CORE: STL like algorithm implementation").
svn-id: r26929
2007-05-23 12:02:31 +00:00
Johannes Schickel
8ff17142c5 Simpilified Singleton implementation and usage.
svn-id: r26922
2007-05-22 14:17:44 +00:00
Nicola Mettifogo
ae18ce3e4a Fix compilation (step 2).
svn-id: r26721
2007-05-01 15:47:49 +00:00
Nicola Mettifogo
008042ac25 Implemented a IFF (Interchange File Format) parser and added subclasses to parse graphics (ILBM, PBM) and audio (8SVX), thus replacing old decoding routines. SAGA and Parallaction have been adjusted to work with the new code.
svn-id: r26719
2007-05-01 15:39:40 +00:00
Kostas Nakos
424b738d5b also dump debug to stdout in ce
svn-id: r26711
2007-05-01 13:13:40 +00:00
Chris Apers
e0a77867cc Cleanup, remove PalmOS dependencies from the ScummVM core
svn-id: r26690
2007-05-01 09:37:40 +00:00
Max Horn
7ca6b29f35 Double-invert the logic on some big/little endian checks (the idea is that we want to fallback to safe code unless we definitely know no endian/alignment issues are in the way; this way it will work even if the endianess is unknown)
svn-id: r26649
2007-04-28 10:40:00 +00:00
Max Horn
ff2ed4b0a9 More cleanup
svn-id: r26602
2007-04-26 20:40:28 +00:00
Max Horn
672ad9928a cleanup
svn-id: r26601
2007-04-26 20:36:52 +00:00
Max Horn
02fd340b8c Patch #1697907: Small patches for AdvancedDetector
svn-id: r26600
2007-04-26 20:35:10 +00:00
Max Horn
e9f8035b53 Remove bogus use of tstr2 (which is empty at this point anyway)
svn-id: r26599
2007-04-26 20:26:49 +00:00
Max Horn
d4660cce55 Removing more semicola
svn-id: r26597
2007-04-26 19:08:53 +00:00
Max Horn
00b9bc7b36 Removing lots of superfluous semicola (see mail by David Weinehall on scummvm-devel)
svn-id: r26594
2007-04-25 19:31:23 +00:00