Commit Graph
3029 Commits
Author SHA1 Message Date
Max Horn 5286121524 Removing the last traces of the old custom new/delete operators
svn-id: r18094
2005-05-14 15:33:27 +00:00
Max Horn 1a615346ab Moved class SoundMixer to Audio::Mixer (didn't call the namespace 'Sound' because we already have many classes with that name)
svn-id: r18039
2005-05-10 23:48:48 +00:00
Max Horn 72f4c03b0b Moved (In/Out)SaveFile(Manager) and Timer to namespace Common
svn-id: r18038
2005-05-10 23:17:38 +00:00
Max Horn b75c969e66 Moved class File and the MD5 stuff to namespace Common
svn-id: r18037
2005-05-10 22:56:25 +00:00
Eugene Sandulenko 4cf368cbcb Fix compilation
svn-id: r18017
2005-05-10 00:45:39 +00:00
Eugene Sandulenko 3890d18e0c Fix compilation
svn-id: r18016
2005-05-10 00:39:59 +00:00
Paweł Kołodziejski c1ce66efb6 fixed compilation for evc4 and vc7
svn-id: r18013
2005-05-09 22:39:16 +00:00
Max Horn 52bbc86797 Patch #1181544 (AmigaOS 4 changes)
svn-id: r18011
2005-05-09 21:21:21 +00:00
Paweł Kołodziejski e774f60ec6 fixed warnings
svn-id: r18004
2005-05-09 17:24:25 +00:00
Max Horn 34f569108c Fix doxygen comment
svn-id: r17999
2005-05-09 12:22:57 +00:00
Max Horn 20c8944189 Silly copy & paste error :-)
svn-id: r17981
2005-05-08 23:45:17 +00:00
Max Horn 5702c16c16 New method InSaveFile::skip()
svn-id: r17979
2005-05-08 23:32:31 +00:00
Max Horn 9b8d88a113 Code to grab & downscale the screen content (used for thumbnail creation, part of patch #1163026)
svn-id: r17978
2005-05-08 22:54:16 +00:00
Max Horn cca744f69a Comply to our coding conventions
svn-id: r17975
2005-05-08 21:49:52 +00:00
Max Horn 013e30eb38 Added two new methods to OSystem: grabPalette and grabRawScreen
svn-id: r17974
2005-05-08 21:39:05 +00:00
Max Horn 0dffba3c43 oops
svn-id: r17971
2005-05-08 17:44:54 +00:00
Max Horn 74f15bea74 Fix doxygen warning
svn-id: r17970
2005-05-08 17:13:08 +00:00
Max Horn 2eb868d2a3 Fix doxygen warning
svn-id: r17969
2005-05-08 17:05:19 +00:00
Max Horn 83d8166696 Fix another doyxgen warning
svn-id: r17933
2005-05-06 13:10:58 +00:00
Max Horn d00117ec4b Fixed some doxygen warnings
svn-id: r17923
2005-05-05 15:59:24 +00:00
Max Horn 54bf9bf1ad Turned File::exists into a static method (as it should have been from the start, silly copy&paste mistake
svn-id: r17915
2005-05-05 11:53:43 +00:00
Torbjörn Andersson b56824d0cf Don't assert that "domain" is valid. One of the cases where this function
is called is when parsing the command-line, and we can't really expect the
user to always type something sensible.

svn-id: r17893
2005-05-02 05:29:50 +00:00
Max Horn b515dd1333 Moved Stream::eos() to ReadStream::eos()
svn-id: r17853
2005-04-28 20:59:19 +00:00
Max Horn 3a4c1f057e Use a pointer ref for RGBtoYUV, instead of an array, so that we can choose to allocate RGBtoYUV on the heap; added a comment that tries to explain why RGBtoYUV and LUT16to32 are evil and slow and how they could be removed
svn-id: r17834
2005-04-27 08:43:23 +00:00
Max Horn 14f56887ea Some C++ compilers don't support the 'not' keyword, it seems
svn-id: r17793
2005-04-24 22:41:21 +00:00
Travis Howell 43286fc880 Add additional check for comments with ().
Required for map.ini file included with mustard.

svn-id: r17783
2005-04-24 03:58:12 +00:00
Travis Howell c318d82f01 The last section of config file was not saved, when loading config file.
Fix all string compares.

svn-id: r17781
2005-04-24 03:41:57 +00:00
Max Horn a6b59c0be1 Implement some missing methods
svn-id: r17780
2005-04-23 22:28:37 +00:00
Max Horn 55947fb319 Make StringMap class (with case insensitive keys) global
svn-id: r17779
2005-04-23 17:33:28 +00:00
Max Horn 2cc5040a9a Added new ConfigFile class. It is not yet used anywhere. ConfigManager will be rewritten around this class. Note that it is not final yet and may be revised in many ways.
svn-id: r17773
2005-04-23 14:30:53 +00:00
Max Horn 29d249c696 Remove StringMap class from map.h (at least for now)
svn-id: r17772
2005-04-23 14:28:59 +00:00
Max Horn 8fddaada1d Simplified debuglevel handling:
- it's only honored in the global level of the config file
 - all checks for it go through gDebugLevel now, which is made global
 - the '-d' switch is handled in a slightly saner and consistent way
 - removed 'debuglevel' from the config format documentation; we do
   not want to encourage the avarage user to use it

svn-id: r17769
2005-04-23 13:52:27 +00:00
Travis Howell 789007ec67 Check for a '\' before adding slash too, otherwise starting a game in root directory will fail.
svn-id: r17763
2005-04-23 09:21:41 +00:00
Max Horn fa224cbb3f Use class File instead of FILE (not finished)
svn-id: r17753
2005-04-22 18:10:02 +00:00
Max Horn 969ef3dac9 * Added new virtual base class 'Stream', ReadStream and
WriteStream are now subclasses of it.
* Added new methods eos(), ioFailed(), clearIOFailed() to
  all streams. This allows better error checking.
* SaveFile classes take advantage of these new standard
  stream APIS
* Removed File::gets()
* Added SeekableReadStream::readLine() (replaces File::gets)
* Added WriteStream::writeString, for convenience

svn-id: r17752
2005-04-22 17:40:09 +00:00
Max Horn 25d56525c8 Replace OSystem::hasAlpha with a feature flag
svn-id: r17695
2005-04-19 20:35:48 +00:00
Max Horn 2cfb9322e2 Added new (optional) OSystem::initBackend() method; this (and its usage) fixes bugs #1160977 and #1184664
svn-id: r17694
2005-04-19 20:22:50 +00:00
Andrew Kurushin b31ee93c75 vc compile warn
svn-id: r17637
2005-04-16 17:05:14 +00:00
Max Horn 839c8add38 Get rid of errno; add some (optional) error checking facilities to SaveFile classes (they are ugly, and to simple, but better than nothing)
svn-id: r17589
2005-04-13 18:36:55 +00:00
Max Horn e79c168d35 split SaveFileManager::openSavefile and class SaveFile into two, each, one for loading and one for saving
svn-id: r17517
2005-04-10 15:13:40 +00:00
Max Horn 3aba4997f4 Moved the GFX_ constants to sdl-common.h, where they belong.
svn-id: r17479
2005-04-09 13:31:47 +00:00
Max Horn 37c0af9a2d A common platform alias for 'Windows' is 'win'
svn-id: r17478
2005-04-09 13:13:04 +00:00
Eugene Sandulenko 249134ede3 Add NES platform
svn-id: r17454
2005-04-08 20:49:13 +00:00
Max Horn 359c39722b Added some comments on how the graphics in OSystem are meant to work, based partially on a nice mail by Marcus, and adding in some information of my own. Certainly could be improved in style, language, content and everything, but once again it should be better than nothing...
svn-id: r17359
2005-04-03 21:38:39 +00:00
Max Horn eb6301e562 Added some overlay method comments. They could be better and explain more, but it's at least a start
svn-id: r17358
2005-04-03 21:07:49 +00:00
Marcus Comstedt ac54a40ea2 Added possibility to have an overlay with an alpha channel.
svn-id: r17353
2005-04-03 19:40:54 +00:00
Robert Göffringmann bd81feb996 Playstation2 Port: initial import
svn-id: r17305
2005-03-31 05:35:04 +00:00
Eugene Sandulenko 9c772ce7d8 Forgot to init _encbyte in MemoryReadStream.
svn-id: r17301
2005-03-30 22:01:17 +00:00
Eugene Sandulenko 7ae3da082e Support for direct reading from NES ROM:
o extend MemoryReadStream with XOR facility
  o implement MemoryWriteStream
  o _fileHandle now is a reference to BaseScummFile class and is created on the fly
  o implement ScummNESFile class which is basically extract_mm_nes utility
  o update NES MM md5's due to above changes

NOTE: to run MM NES now you need to remove *.LFL files and (probably) rename
ROM to standard conventional name 'Maniac Mansion (XXX).nes'

svn-id: r17300
2005-03-30 21:59:12 +00:00
Max Horn 4daf4c47b8 Fix method names to comply to our coding standards
svn-id: r17134
2005-03-14 08:24:39 +00:00