Commit Graph
1168 Commits
Author SHA1 Message Date
Max Horn aecd100f93 Added Common::String::contains() method
svn-id: r26514
2007-04-15 18:27:10 +00:00
Kostas Nakos 258753e82c also copy debug output to the (redirected) log files
svn-id: r26439
2007-04-09 18:00:22 +00:00
Eugene Sandulenko c2b2880287 Improve report of unknown MD5, to ease copy-pasting to detection code
svn-id: r26433
2007-04-09 11:29:44 +00:00
Neil Millstone c6d41c0755 Updating DS port for changes in main codebase. Code changes for DevkitArm r20 and latest libnds.
svn-id: r26394
2007-04-06 18:34:53 +00:00
Johannes Schickel 7909c312bd Corrected some c&p error in the documentation.
svn-id: r26298
2007-03-24 23:35:48 +00:00
Max Horn ed54ea9155 Moved Event/EventType/keyboard enum from common/system.h (part of class OSystem) to common/events.h (part of namespace Common). Porters may have to make minor changes to their backends to get them to compile again
svn-id: r26180
2007-03-17 19:02:05 +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
Torbjörn Andersson 53624376b4 Applied my re-revised patch #1487149 ("Simplified keyboard repeat"), with
Fingolfin's blessings. Keyboard repeat is now handled by the event manager,
rather than by individual engines.

Since this can cause problems with some engines (see the AGI engine), the extra
"key down" events are marked as "synthetic", so that they can be ignored if
necessary.

svn-id: r26170
2007-03-17 15:44:26 +00:00
Max Horn 9751421434 Added class NonCopyable, and made various things derive from it
svn-id: r26163
2007-03-17 10:36:14 +00:00
Max Horn 15d9bc42ea Force all code to use EventManager::pollEvent instead of OSystem::pollEvent
svn-id: r26156
2007-03-17 00:53:21 +00:00
Max Horn 8fc8c4847d Implemented a simple EventManager class
svn-id: r26154
2007-03-17 00:07:34 +00:00
Max Horn 30e975f9db Protect Array<> and HashMap<> instances against self assignments
svn-id: r26115
2007-03-12 22:34:29 +00:00
Lars Persson e8c941c128 Added shared filed support using native file APIs.
svn-id: r26087
2007-03-11 14:28:03 +00:00
Eugene Sandulenko 477372de61 Shut useless MSVC8 warning. We use pack-start.h and pack-end.h and it
complained that alignment state changed after #include. I.e. exactly what
we wanted to do.

svn-id: r26061
2007-03-10 15:00:56 +00:00
Max Horn 728d01cb17 Removing some unnecessary #includes
svn-id: r26044
2007-03-09 23:46:45 +00:00
Max Horn 6d9cb5498f Avoid double frees in HashMap::erase
svn-id: r26040
2007-03-09 16:19:50 +00:00
Nicola Mettifogo 1e985051a9 reduced dependency from windows-specific header files
svn-id: r26034
2007-03-09 00:13:07 +00:00
Gregory Montoir 801771db87 removed kADFlagFilebasedFallback, this flag is never used (and filename based detection is done if fileBasedFallback is non-0 anyway)
svn-id: r26032
2007-03-08 21:40:47 +00:00
Max Horn fa6a35f9b1 cleaned up stdafx.h, removing various unnecessary #includes (there are still some windows ones which look fishy, though)
svn-id: r26031
2007-03-08 21:40:21 +00:00
Gregory Montoir ee664dc62d added a flag to enable/disable printing a warning when filename based detection find a match, also updated some comments.
svn-id: r26029
2007-03-08 21:33:55 +00:00
Max Horn a63c1cf3bd Moved the printf #define for the NDS into scummsys.h (not sure if that suits your needs Neil, feel free to change it again if necessary)
svn-id: r26024
2007-03-08 17:38:11 +00:00
Max Horn d19adc0514 common/util.cpp needs fprintf; various std I/O functions are not used by anything in our code, so there is no need to emulate them -- mark these; my previous commits likely broke compilation of the DS backend, try to reduce the brokeness a bit
svn-id: r26023
2007-03-08 17:36:52 +00:00
Max Horn 47bc9aae19 Moving Nintendo DS std C I/O emulation wrappers to common/file.cpp; also add a FIXME comment (why is assert redefined in ds-fs.h ?)
svn-id: r26020
2007-03-08 16:57:14 +00:00
Max Horn 743698da6e Changed File::_handle to be of type void* instead of FILE* (to ease porting); moved PS2 std C I/O defines to file.cpp (no code other than the file & savegame code should use fopen etc. directly)
svn-id: r26017
2007-03-08 16:46:02 +00:00
Max Horn 33a4f8c378 Changed ConfigManager to use class File instead of std C I/O to write the config file
svn-id: r26016
2007-03-08 16:43:33 +00:00
Max Horn f02802531e Turning FilesystemNode comment into a doxygen comment
svn-id: r26015
2007-03-08 15:02:13 +00:00
Max Horn 8a80e2284a Removing _ptrOrig (hi Torbjorn, have fun recompiling)
svn-id: r25980
2007-03-04 16:25:27 +00:00
Max Horn 43cd428355 Some HashMap cleanup:
* Removed the odd return value of method erase()
* Stopped erase() from leaking (oops!)
* Added a (paranoia) consistency check to assign()

svn-id: r25967
2007-03-04 09:58:04 +00:00
Max Horn b25c7933a5 Paranoia: a hashmap node must never ever change its key after its creation
svn-id: r25965
2007-03-04 09:27:28 +00:00
Travis Howell b0fea397ab Allow PC Engine version of Loom to at least start up.
svn-id: r25951
2007-03-03 12:59:48 +00:00
Max Horn 4efda86d7a Removed File::incRef and decRef
svn-id: r25920
2007-03-01 17:25:49 +00:00
Max Horn dea688d0f5 Fix spelling
svn-id: r25908
2007-02-28 14:07:47 +00:00
Max Horn 2cbe50c5ec Typo
svn-id: r25861
2007-02-25 19:08:57 +00:00
Max Horn 198f32ea8e Add some doxygen comments to Common::Stream
svn-id: r25859
2007-02-25 18:35:51 +00:00
Max Horn 7287ce2a4c Typo
svn-id: r25858
2007-02-25 18:26:33 +00:00
Max Horn 42f11e9e49 Added new ReadStream::readStream method which can be used to read a portion of an arbitrary ReadStream into a memory buffer wrapped by a MemoryReadStream
svn-id: r25754
2007-02-20 21:41:01 +00:00
Max Horn fb9c08f101 Removed XORReadStream (it was unused); enhanced MemoryReadStream to be able to dispose the memory block it wraps (simplifies memory management)
svn-id: r25748
2007-02-20 17:52:02 +00:00
Max Horn 7290d1b18c Enhance (Seekable)SubReadStream so be able to (optionally) dispose the parent stream after it's been used (simplifies memory management for client code)
svn-id: r25732
2007-02-19 21:11:13 +00:00
Max Horn e0a7c6d7a7 Made it possible to init a Stack<T> with an Array<T>; removed hack in Stack<T>::top
svn-id: r25696
2007-02-18 18:08:38 +00:00
Max Horn 348b72e107 Improved (I hope) the 'Unknown MD5' messages in our detectors a little bit
svn-id: r25695
2007-02-18 18:07:32 +00:00
Chris Apers 5b214090f7 Renamed crc32 which conflicts with Tapwave system function
svn-id: r25692
2007-02-18 17:47:24 +00:00
Max Horn e326f482c9 Get rid of Common::SaveFile
svn-id: r25666
2007-02-17 22:11:00 +00:00
Max Horn b8aeefaffb Added finalize() method to Common::OutSaveFile (which by default just flushes the stream), changed engines to call that before deleting OutSaveFile instances (instead of just flushing)
svn-id: r25660
2007-02-17 18:55:51 +00:00
Max Horn ec27c53491 AdvancedDetector: revamped the file based fallback code
svn-id: r25599
2007-02-14 23:46:39 +00:00
Max Horn 62bd2a1544 Make use of md5_file_string
svn-id: r25593
2007-02-14 21:59:57 +00:00
Max Horn 80f799a2b2 Extended MD5 API a bit: added a variant of md5_file which takes an arbitrary ReadStream; and added md5_file_string methods which directly produce a human readable md5 string (instead of a binary digest)
svn-id: r25592
2007-02-14 21:43:21 +00:00
Max Horn 42631d21b1 Some more cleanup, and that's it for tonight
svn-id: r25580
2007-02-14 00:52:12 +00:00
Max Horn 6b2ff5616b Minor cleanup
svn-id: r25579
2007-02-14 00:38:45 +00:00
Max Horn 265deaffff Added some comments and performed some cleanup in the file based fallback code of the AdvancedDetector
svn-id: r25578
2007-02-14 00:37:02 +00:00
Max Horn 75ae7cdb73 Properly implemented the AD fallback callback
svn-id: r25576
2007-02-14 00:21:53 +00:00