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
Max Horn
4b5b9bc984
mouse cursor palette better fits into the 'mouse' category than in the 'graphics' category (IMO)
...
svn-id: r17102
2005-03-12 16:33:03 +00:00
Eugene Sandulenko
7bb53f3bf1
Patch #1013937 "OSystem layer with bigger resolution". Now you will always
...
get at least 640x400 window. And finally we have means of implementing
nice looking GUI.
Also updated all backends. If your backend has ability to run with 640x400 or
640x480 resolution then read patch tracker item to find out details. Other
port maintainers shouldn't worry, as this patch doesn't affect them, they
still get their 320x200.
svn-id: r17055
2005-03-09 23:07:32 +00:00
Travis Howell
07aa92063a
Add Amiga renderer mode for EGA games.
...
svn-id: r17019
2005-03-07 00:39:48 +00:00
Max Horn
7f5db33943
Obsolete TODO ;-)
...
svn-id: r17004
2005-03-06 13:22:53 +00:00
Eugene Sandulenko
e4bd258fd6
Fix bug which led to an endless loop if 1.5x scaler is fed with odd value.
...
svn-id: r17003
2005-03-06 11:28:10 +00:00
Eugene Sandulenko
50f6eb740c
Distinguish between green and amber hercules. Now specify it via hercGreen
...
and hercAmber. Updated documentation accordingly.
svn-id: r16975
2005-03-02 21:46:51 +00:00
Max Horn
039b2b3a20
Verify domain names as they are passed into the config manager (better to crash here, early, than to corrupt a user's config file)
...
svn-id: r16862
2005-02-22 18:11:36 +00:00
Eugene Sandulenko
f420dd3b78
Implement OSystem method disableCursorPalette(bool disable) as mentioned
...
in patch #1013937 (OSystem layer with bigger resolution).
svn-id: r16820
2005-02-20 02:04:45 +00:00
Eugene Sandulenko
27469a1896
Patch #1121337 (CGA rendering in early LEC titles).
...
Differences against patch:
o Updated documentation
o Fixed text colors
o Implemented Hercules dithering
Ditherers are based on loom ega and monkey ega, so for zak and mm they're
wrong, i.e. these games look better than with original ditherers.
TODO:
Proper ditherers for zak & MM
EGA ditherers for VGA SCUMM v5 games
svn-id: r16816
2005-02-20 00:17:22 +00:00
Paweł Kołodziejski
373b33b22a
compatible version for wince
...
svn-id: r16813
2005-02-19 15:35:05 +00:00
Andrew Kurushin
05f4bf5151
removing ZLIB_WINAPI from scummsys.h
...
ZLIB_WINAPI macro needs only than you want to
build VisualBasic compatible ZLIBWAPI.DLL with
WINAPI(STDCALL) calling convetion.
svn-id: r16803
2005-02-18 00:13:37 +00:00
Eugene Sandulenko
78ee0bfdaf
Mouse part of big patch #1013937 (OSystem layer with bigger resolution)
...
svn-id: r16800
2005-02-17 23:01:00 +00:00
Max Horn
4e66139a4e
Added String::hasSuffix and hasPrefix
...
svn-id: r16744
2005-02-06 19:00:59 +00:00
Max Horn
abd12dd1b6
Use class Mutex instead of MutexRef
...
svn-id: r16679
2005-01-28 22:05:51 +00:00
Andrew Kurushin
dcbe77c579
fix VC7.1 compilation
...
svn-id: r16664
2005-01-28 14:46:12 +00:00
Paweł Kołodziejski
c0c9a68fe5
emsvc4 need public access, hmmm...
...
svn-id: r16650
2005-01-27 21:29:29 +00:00
Max Horn
aa9debccec
Forgot to commit this
...
svn-id: r16567
2005-01-15 23:08:12 +00:00
Max Horn
541076d8db
Added a convenience class 'Mutex'
...
svn-id: r16566
2005-01-15 22:41:23 +00:00
Max Horn
fcad363886
Get rid of the ConstString class
...
svn-id: r16564
2005-01-15 21:42:59 +00:00
Andrew Kurushin
f17f5e3cae
last wjp suggested patch - helps reenable "no definition for inline function" warning
...
svn-id: r16543
2005-01-11 20:02:12 +00:00
Torbjörn Andersson
4dda4eb31b
On Fingolfin's suggestion I put back the inclusion of util.h into Rect, for
...
MIN() and MAX(). I then removed util.h from a bunch of files which I don't
think need it any more. (Please let me know if I got too blood-thirsty!)
This reverts some of the changes I made this morning.
svn-id: r16541
2005-01-11 13:25:02 +00:00
Torbjörn Andersson
13e2c224c8
This is probably not the optimal fix, but at least ScummVM compiles again.
...
svn-id: r16538
2005-01-11 08:06:19 +00:00