aboutsummaryrefslogtreecommitdiff
path: root/common
AgeCommit message (Collapse)Author
2007-07-27Early in the morning, strrev() looks like a more difficult problem than itTorbjörn Andersson
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-20Added a remove() function to the Common::File class. Also changed the ↵David Corrales
exists() function to account for new capabilities in the FSNode layer. svn-id: r28150
2007-07-18Added error codes to the SaveFileManager via the SFMError enum. Also, solved ↵David Corrales
TODO's in the default-saves implementation. svn-id: r28140
2007-07-12Changed SaveFileManager::listSavegames() function to be engine agnostic. It ↵David Corrales
now returns a list will the full paths of existing files that match a given regex. Additionally, modified the 5 engines which use the default manager (Agos, Queen, Saga, Scumm and Touche) to parse the filename list and mark the available saves bool array correctly. svn-id: r28046
2007-07-08Merged the FSNode branch with trunk r27681:27969David Corrales
svn-id: r27970
2007-07-08Removed various obsolete methods from OSystem (screenToOverlayX/Y, ↵Max Horn
overlayToScreenX/Y) svn-id: r27961
2007-07-01Patch #1595026: engine init/shutdown OSystem methodsMax Horn
svn-id: r27837
2007-07-01Re-added __attribute__(packed)Max Horn
svn-id: r27830
2007-06-28Switched Paula (Amiga MOD) code to use fixed point math instead of doubles ↵Max Horn
(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-28Changed GOB to use common/frac.hMax Horn
svn-id: r27763
2007-06-28Moved some fixed point code to its own header file; simplified the ↵Max Horn
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-23Missed some files in the branch/trunk merge.David Corrales
svn-id: r27682
2007-06-23Merged the FSNode branch with trunk r27031:27680David Corrales
svn-id: r27681
2007-06-23Added more flexible KeyState constructor; updated comment in gui/Key.hMax Horn
svn-id: r27654
2007-06-22Do not use SCUMMVM_USE_LONG_INT on _MSC_VER anymore (if it *is* needed after ↵Max Horn
all, speak up -- that FIXME has been in there for far too long, however) svn-id: r27641
2007-06-22Moved keyboard stuff to a separate header fileMax Horn
svn-id: r27640
2007-06-22Added constructor & reset() method to Common::KeyStateMax Horn
svn-id: r27634
2007-06-22Promoted the struct inside Common::Event which captures the keystate to a ↵Max Horn
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-22Cleaning up after myself (I blame it on, err, uhh... the Vogons?)Max Horn
svn-id: r27625
2007-06-22Added Common::KEYCODE_INALIDMax Horn
svn-id: r27622
2007-06-22Added 'ASCII_' enum values for certain standard keys, and update commentMax Horn
svn-id: r27619
2007-06-22Replace tabs by spaces in keycode enum, to ensure proper indentionMax Horn
svn-id: r27618
2007-06-22Converted lots of code to use Common::ASCII_* and COMMON::KEYCODE_* ↵Max Horn
constants. This also revealed the evil mixing of keycodes and ascii we do in many places :-/ svn-id: r27616
2007-06-22Heavily modified/reduced version of patch #1741454 (EVENTS: ASCII enum)Max Horn
svn-id: r27612
2007-06-21Modified version of patch #1740493 (EVENTS: Event Key Codes)Max Horn
svn-id: r27592
2007-06-20typo - (returh => return) -- jvpratMatthew Hoops
svn-id: r27558
2007-06-20Initial implementation of the lookupFile() function. It's meant to search ↵David Corrales
recursively for given filename within a set of directories. svn-id: r27551
2007-06-19Implemented the OSystem framebuffer API, as discussed on scummvm-devel. All ↵Max Horn
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-17Added a new parameter to the getChildren function, which allows including ↵David Corrales
hidden files in the results. svn-id: r27514
2007-06-16Small bugfix. Wrong logical operator.David Corrales
svn-id: r27474
2007-06-16Removed the isValid operation from the FilesystemNode class in favor of the ↵David Corrales
much richer combinations possible with the new operations (exists, isReadable and isWritable). The work on the Common::File class is far from complete. Only the necessary was updated. svn-id: r27473
2007-06-15Added a FIXME comment to the adv. detector code regarding (not) using ↵Max Horn
FSNode/FSList svn-id: r27425
2007-06-15ADV detector: Refactored findGameID() a bit, making it possible to use it ↵Max Horn
outside the AdvancedDetector framework; also made it generate somewhat more user friendly desc for obsolete game IDs svn-id: r27424
2007-06-12Patch #1733764: "Fallback detection patch". GSoC student.Eugene Sandulenko
svn-id: r27375
2007-06-11Fix for bug #1719463: "DETECTOR: Launching undefined target adds launcher entry"Eugene Sandulenko
svn-id: r27352
2007-06-06Adv detector: Merged upgradeTargetIfNecessary() into ↵Max Horn
detectGameForEngineCreation() svn-id: r27144
2007-06-05Renamed methods in the FilesystemNode class to match the AbstractFSNode ↵David Corrales
implementations. Also exposed the new methods (exists, isReadable and isWritable) in FilesystemNode. svn-id: r27113
2007-06-04Expose new fs backend methods in the FilesystemNode class.David Corrales
svn-id: r27089
2007-06-03Adding the new kFeatureDisableKeyFiltering OSystem feature.Kostas Nakos
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-02Enhanced Common::String by adding char constructor and operator+ for charsMax Horn
svn-id: r27051
2007-05-31Merged the fs branch with trunk. r26949:27031David Corrales
svn-id: r27032
2007-05-30Updated legal headers in source files, based on what Pidgin (the IM client ↵Max Horn
formerly knowns as Gaim) does; added new (incomplete) COPYRIGHT file; updated copyright dates in a few spots svn-id: r27024
2007-05-30AdvDetector changes: made upgradeTargetIfNecessary internal; cleanup to ↵Max Horn
findGameID svn-id: r27020
2007-05-30Hash<T> is an UnaryFunction (very pedantic and effectively effectless change ↵Max Horn
*g*) svn-id: r27013
2007-05-29added EVENT_PREDICTIVE_DIALOG event to bring up the predictive dialog on ↵Kostas Nakos
demand by the backends svn-id: r27005
2007-05-27Paranoia changes (shouldn't have any real effect, though...)Max Horn
svn-id: r26972
2007-05-27Reverted r26922.Johannes Schickel
svn-id: r26967
2007-05-26Merged the fs branch with trunk. r26472:26948David Corrales
svn-id: r26949
2007-05-23Commit of patch #1715313 ("CORE: STL like algorithm implementation").Johannes Schickel
svn-id: r26929
2007-05-22Simpilified Singleton implementation and usage.Johannes Schickel
svn-id: r26922