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
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
Max Horn
5c48717dd2
Remove some more header dependencies
...
svn-id: r16530
2005-01-10 22:35:43 +00:00
Max Horn
6f6668ce21
Reduce dependencies on common/savefile.h from 88 to 14
...
svn-id: r16528
2005-01-10 22:18:39 +00:00
Max Horn
cffd917165
system.h was being included in tons of places, without any good reason; reduced this (total dependencies on system.h went down from 193 to 85 files)
...
svn-id: r16527
2005-01-10 22:06:49 +00:00
Max Horn
e794581308
Moved mutex stuff into a seperate header
...
svn-id: r16526
2005-01-10 22:04:04 +00:00
Max Horn
788c828026
yet another attempt to get makeInstance working for gcc 3.3, gcc 3.2, and MSVC (thanks to wjp for the suggestion). Works fine with GCC 3.2 and 3.3
...
svn-id: r16525
2005-01-10 21:06:49 +00:00
Andrew Kurushin
0e4711cb81
some disabled warning moved from .vcproj to #pragma with comments
...
(can anyone update .vcproj for vs2002&vs2005?)
svn-id: r16508
2005-01-09 17:22:55 +00:00
Max Horn
0423866e0a
Ensure these headers match the rest of ScummVM
...
svn-id: r16505
2005-01-09 16:07:53 +00:00
Torbjörn Andersson
9d1f4ff1e6
Since _pos is unsigned it's always >= 0, so testing for negativity will
...
generate a warning in GCC.
svn-id: r16496
2005-01-09 14:57:41 +00:00
Max Horn
bc44b5ec15
Added new interface SeekableReadStream
...
svn-id: r16493
2005-01-09 01:41:43 +00:00
Andrew Kurushin
6cde0f1de6
turn off "no definition for inline function" warning
...
svn-id: r16458
2005-01-06 19:35:11 +00:00
Andrew Kurushin
3b61b06aee
- remove "extern" before OSystem::makeInstance
...
svn-id: r16457
2005-01-06 19:34:07 +00:00
Max Horn
5d88c39549
Modify the singleton code once more to help overcome an issue with MSVC 7 (see also patch #1095133 )
...
svn-id: r16454
2005-01-06 18:38:34 +00:00
Max Horn
74bf578bda
Changed the singleton code to allow for custom object factories; this allowed me to change OSystem to use the singleton base class, too
...
svn-id: r16404
2005-01-01 19:19:06 +00:00
Max Horn
f52be9df68
Changed OSystem::instance() to return a reference, not a pointer (it now matches the Singleton interface)
...
svn-id: r16402
2005-01-01 18:53:47 +00:00
Max Horn
03d4a6fa47
Removing obsolete comment
...
svn-id: r16401
2005-01-01 17:52:17 +00:00
Max Horn
47280d9433
Updated copyright
...
svn-id: r16398
2005-01-01 16:09:25 +00:00
Max Horn
acd1f910d5
Handle SCUMMVM_SAVEPATH exactly like the command line option --savepath (but the command line option has higher priority); i.e. it's affecting the config system (see also bug #1045171 )
...
svn-id: r16391
2004-12-30 21:48:22 +00:00
Max Horn
60deb4200b
cleanup
...
svn-id: r16382
2004-12-30 14:13:14 +00:00
Travis Howell
d6547ea536
Compile fix from cyx
...
svn-id: r16366
2004-12-29 05:01:27 +00:00
Max Horn
b15d92e470
Fix running ScummVM in plugin-mode
...
svn-id: r16360
2004-12-28 20:29:42 +00:00
Max Horn
2941d595bd
Make loading the config file explicit
...
svn-id: r16317
2004-12-25 19:03:13 +00:00
Eugene Sandulenko
7606a53f09
Now it is possible to count MD5 only for specified amount of bytes from file.
...
It is useful for MD5'ing hunge files.
svn-id: r16259
2004-12-22 13:34:28 +00:00
Nicolas Bacca
486e711173
WinCE global domains are not needed anymore
...
svn-id: r16219
2004-12-20 23:58:40 +00:00
Nicolas Bacca
4e497117bd
Add common include needed by WinCE
...
svn-id: r16217
2004-12-20 23:55:31 +00:00
Jonathan Gray
2909c8fff6
- Move MAXPATHLEN includes/defines into common location
...
- Save files are now stored in $HOME/.scummvm/ by default if no other
save path is specified on non MacOS X unices.
svn-id: r16060
2004-12-15 12:30:58 +00:00
Max Horn
ede24fabe2
Patch #1083548 (common/list enhancement)
...
svn-id: r16046
2004-12-14 20:57:23 +00:00
Max Horn
1ded9cff77
Optimized List assignment operator, thanks to h00ligan
...
svn-id: r16042
2004-12-12 21:54:33 +00:00
Max Horn
9e4a529ef9
Hide iterator implementation details from client code
...
svn-id: r16041
2004-12-12 21:38:11 +00:00
Max Horn
41a7e6674c
Remove the 24 bit read/write methods -- we don't use them anymore and they are weird anyway ;-)
...
svn-id: r16037
2004-12-11 23:50:39 +00:00
Max Horn
369e31a41c
Modified version of patch #1082777 (common/stream optimization)
...
svn-id: r16034
2004-12-11 23:16:36 +00:00
Nicolas Bacca
cdf2eb2eb7
Update CE default savepath
...
svn-id: r16027
2004-12-11 00:39:27 +00:00
Chris Apers
1a5fa3e86f
Moved to prefix file
...
svn-id: r16015
2004-12-10 15:19:53 +00:00
Max Horn
30039560a3
cleanup
...
svn-id: r15991
2004-12-05 23:24:43 +00:00
Max Horn
f09293b22c
Clean up OSystem::Event
...
svn-id: r15990
2004-12-05 17:42:20 +00:00
Max Horn
ba74a8e7f6
Added some more mixer doxygen docs; cleaned up Mixer API a bit, removing some very specialised methods
...
svn-id: r15914
2004-11-27 15:58:18 +00:00
Max Horn
b78ac6a18b
Make use of our String class instead of juggling with char pointers; added File::exists method
...
svn-id: r15913
2004-11-27 15:09:53 +00:00
Max Horn
876e738dce
Moved Engine::getSavePath() to class SaveFileManager; removed the 'directory' parameter from SaveFileManager::openSavefile and listSavefiles (they always use getSavePath() now, which is what we did anyway)
...
svn-id: r15901
2004-11-27 00:26:11 +00:00
Max Horn
8ac347fd95
Added OSystem::beginGFXTransaction / endGFXTransaction (not yet implemented, though :-)
...
svn-id: r15864
2004-11-22 23:25:08 +00:00
Eugene Sandulenko
0b3949389e
Extend fopenNoCase with probe of capitalized files, such as Cave.mid.
...
svn-id: r15812
2004-11-14 21:10:50 +00:00
James Brown
2ae3166f2d
Add new clearScreen OSystem call. Currently only implemented in SDL backend. This call is currently only used for clearing the launcher screen to remove garbage from the main screen before reentering.
...
svn-id: r15799
2004-11-13 04:33:33 +00:00
Chris Apers
2abe17e594
Cleanup
...
svn-id: r15739
2004-11-09 10:26:33 +00:00
Max Horn
f6d9b66e21
For now, perform writing always in the current directory (the old code would just create a new file in the first place it was looking at when using the write mode, which definitely is not what we want in most cases)
...
svn-id: r15730
2004-11-07 17:20:32 +00:00
Torbjörn Andersson
1fa79b09de
Got rid of ungetc() to save Chrilith from the trouble of implementing it
...
himself on PalmOS.
svn-id: r15616
2004-10-19 18:28:41 +00:00
Eugene Sandulenko
acf6e4a12f
Accepted patch #1048693 -- Making File::gets() more well-defined.
...
svn-id: r15608
2004-10-18 21:22:10 +00:00
Eugene Sandulenko
2337d924ce
Fix bug #1048129 which prevented eof() method from working.
...
svn-id: r15573
2004-10-16 18:40:06 +00:00
Eugene Sandulenko
54dc902ae4
Add gets() method to File class.
...
svn-id: r15572
2004-10-16 13:09:52 +00:00
Max Horn
ccb8d04f35
Clarify OSystem::setPalette documentation (thanks for pointing this out, LordHoto)
...
svn-id: r15562
2004-10-15 19:54:14 +00:00
Chris Apers
a34c7e4b81
Use compile.h as prefix file
...
svn-id: r15472
2004-10-08 13:38:14 +00:00
Max Horn
ce8c99bf62
Rename remaining OSystem methods to match our coding guidelines
...
svn-id: r15332
2004-09-28 20:19:37 +00:00
Max Horn
3ef93e9e54
forgot to commit this, silly me :-)
...
svn-id: r15323
2004-09-28 12:11:00 +00:00
Max Horn
ab82837dcc
Preserve the order of config file sections -> to suite people who manually edit the config file
...
svn-id: r15322
2004-09-28 12:10:49 +00:00
Max Horn
2c627a2018
Remove unused symbol
...
svn-id: r15321
2004-09-28 11:30:17 +00:00
Jonathan Gray
ae73d1a4ee
use MAXPATHLEN for path buffer size
...
svn-id: r15319
2004-09-28 04:14:57 +00:00
Paweł Kołodziejski
a6486ad228
changed zlib support for msvc
...
svn-id: r15163
2004-09-18 11:48:17 +00:00
Paweł Kołodziejski
27946f1e86
fixed msvc compilation for __restrict__
...
svn-id: r15160
2004-09-18 10:25:49 +00:00
Max Horn
858153c4f7
Some type corrections
...
svn-id: r14896
2004-09-04 19:28:30 +00:00
Paweł Kołodziejski
0901b17828
fixed warning, updated msvc projects
...
svn-id: r14894
2004-09-04 14:53:14 +00:00
Max Horn
4bd05071e5
Got rid of OSystem::move_screen
...
svn-id: r14882
2004-09-04 01:31:04 +00:00
Marcus Comstedt
3b2bf3c683
Make building scalers optional.
...
svn-id: r14784
2004-08-26 21:01:21 +00:00
Jonathan Gray
a3d531a9fd
remove cast that produces a warning
...
svn-id: r14696
2004-08-23 05:53:41 +00:00
Eugene Sandulenko
796fdcdd2b
Fix warning.
...
svn-id: r14692
2004-08-23 00:00:02 +00:00
Max Horn
759cd67de5
cleanup of TimerProc mess
...
svn-id: r14683
2004-08-22 13:27:34 +00:00
Travis Howell
3542ca3988
Make platform difference a bit clearer
...
svn-id: r14654
2004-08-20 15:25:12 +00:00
Paweł Kołodziejski
d62ff5dca7
fixed warnings
...
svn-id: r14603
2004-08-14 09:10:14 +00:00
Eugene Sandulenko
cdb88416a8
Fix bug in FixedStack.pop(). Returned wrong value.
...
svn-id: r14567
2004-08-12 21:49:48 +00:00
Eugene Sandulenko
e31aa60730
Fix compilation of remove_at() in array.h. It was never tested before.
...
Make stacks' pop() return top value, not just move stack pointer.
svn-id: r14565
2004-08-12 21:33:59 +00:00
Torbjörn Andersson
039e6dc8db
Relaxed the assertion for the 3x scaler a bit. Since it uses pointers to
...
uint16, it should be enough that dstPtr is even; it doesn't have to be a
multiple of four.
The old assertion failed for me when I used the 3x scaler without aspect
ratio correction.
svn-id: r14536
2004-08-10 17:46:04 +00:00
Max Horn
809c3bd943
Fixed variable access in the debugger
...
svn-id: r14523
2004-08-08 22:44:15 +00:00
Max Horn
5564f36b0e
Slightly optimiized Normal2x
...
svn-id: r14519
2004-08-08 15:45:58 +00:00
Jonathan Gray
f3ddfd4080
fix compilation
...
svn-id: r14510
2004-08-08 03:12:23 +00:00
Travis Howell
1134ea5c85
Fix compile for now, include doesn't exist in mingw.
...
Should be checked for in configure
svn-id: r14507
2004-08-07 23:49:34 +00:00
Gregory Montoir
db6e7ae2ca
centers the scaled bitmap and fix the scaling of borders for ASM version)
...
svn-id: r14505
2004-08-07 17:21:53 +00:00
Max Horn
f122dd6fb3
Fix scaling of the borders of each given rect (for non-ASM version)
...
svn-id: r14504
2004-08-07 16:47:25 +00:00
Gregory Montoir
0f6242dfaf
should be 16 not 8
...
svn-id: r14503
2004-08-07 16:23:16 +00:00
Max Horn
2a9c6f6d5f
Base our advmame scalers on the official Scale2x source - this way we can easily update to new version and benefit from their optimizations (e.g. MMX support)
...
svn-id: r14502
2004-08-07 16:04:43 +00:00
Max Horn
61bf615168
Try the current dir last, not first
...
svn-id: r14469
2004-08-05 11:10:27 +00:00
Max Horn
cef2de6a69
Fixed bug #1001069 ; clarified/simplified some error messages
...
svn-id: r14375
2004-07-31 09:34:10 +00:00
Max Horn
1db27f0203
slightly more informative error messages in class File
...
svn-id: r14345
2004-07-26 22:53:29 +00:00
Max Horn
17ec7c5d6a
Turn various File class methods into virtual methods, to allow overloading
...
svn-id: r14341
2004-07-26 17:06:39 +00:00
Max Horn
3381b831eb
Allow subclasses to modify File class members (e.g. to set _ioFailed); change some warnings into errors
...
svn-id: r14302
2004-07-23 01:39:05 +00:00
Max Horn
0605918ab4
Small tweaks for the String class
...
svn-id: r14293
2004-07-21 14:20:37 +00:00
Bertrand Augereau
52701d581b
Changed order of initialisation in XORReadStream::XORReadStream() to match order of declaration, to avoid a pedantic warning
...
svn-id: r14273
2004-07-19 10:20:00 +00:00
Max Horn
006cac577d
Simplified fopenNoCase (and reduced the code redundancy)
...
svn-id: r14252
2004-07-18 17:08:10 +00:00
Eugene Sandulenko
3423c617a1
Fix bug introduced with last addDefaultDirectory() change. It prevented
...
lowercase files from opening.
svn-id: r14148
2004-07-01 12:18:28 +00:00
Eugene Sandulenko
2c687d3388
Make md5_file() work regardless file name case and within arbitrary
...
directory.
svn-id: r14123
2004-06-29 12:07:15 +00:00
Max Horn
a5df4fba77
Added simple ref-counting to the File class
...
svn-id: r14106
2004-06-28 22:34:22 +00:00
Max Horn
53af3dc670
Enhanced default directory support in the File class; now one can specify arbitrary many default search directories
...
svn-id: r14095
2004-06-28 00:06:31 +00:00
Max Horn
4744538752
Added operator + for strings
...
svn-id: r14093
2004-06-27 23:58:41 +00:00
Max Horn
b8ad54b3af
Reversed param order of File::open() -- this allowed me to get rid of a few more getGameDataPath() calls
...
svn-id: r14090
2004-06-27 22:14:35 +00:00
Max Horn
a461c7550e
irrelevant tweak, but I am a const-junkie :-)
...
svn-id: r14089
2004-06-27 22:04:19 +00:00
Max Horn
a1b82d8e13
Cleanup for MemoryReadStream; made it match the File-class interface
...
svn-id: r14086
2004-06-27 21:30:33 +00:00
Max Horn
e5f90509a6
Cleaned up SaveFileManager stuff a little bit
...
svn-id: r14056
2004-06-25 22:11:48 +00:00
Eugene Sandulenko
264dc1349b
Extended ReadMemoryStream class with seek method
...
svn-id: r14030
2004-06-24 14:06:22 +00:00
Max Horn
55ad317aad
As the comment above this code section states, the only reason we accept 1,2,3 here is for backward compatibility. 4 and 5 never were legal values, hence they shouldn't be detected
...
svn-id: r14015
2004-06-23 10:23:44 +00:00
Eugene Sandulenko
53a0eb87f1
Fixed recognition of command-line --platform option
...
svn-id: r14005
2004-06-23 02:14:19 +00:00
Eugene Sandulenko
a350fcda0d
Implement 24-bit read from memory functions
...
svn-id: r14002
2004-06-22 23:52:31 +00:00
Eugene Sandulenko
7d1b755086
Applied patch submitted by cyx to bug #961365 (Assembly versions of HQ2x and HQ3x scalers), off-by-one error.
...
svn-id: r13906
2004-05-30 22:16:59 +00:00
Chris Apers
66fd8f8658
New PalmOS includes
...
svn-id: r13888
2004-05-25 14:44:02 +00:00
Paweł Kołodziejski
4a93fa1421
we dont use more timers than 2
...
svn-id: r13850
2004-05-23 19:16:35 +00:00
Max Horn
cff4e1d49f
Tweaks (Morphos & Palm backends badly need updating :-/)
...
svn-id: r13848
2004-05-21 20:43:07 +00:00
Paweł Kołodziejski
6801dd2eef
fixed mingw compilation
...
svn-id: r13846
2004-05-21 17:30:51 +00:00
Eugene Sandulenko
d33b24036e
Added assembly versions of HQ2x and HQ3x scalers.
...
svn-id: r13844
2004-05-21 02:08:48 +00:00
Max Horn
7804b57632
Added default iterator constructor, for convenience
...
svn-id: r13808
2004-05-08 19:34:06 +00:00
Eugene Sandulenko
b7e62e4b61
Extend setMouseCursor with additional keycolor parameter. Lets saga use 255
...
as white color. Made this function more safe by copying cursor data to
newly created buffer.
svn-id: r13777
2004-05-05 02:32:46 +00:00
Max Horn
5d0f0ea0c6
Added generic variable size stack class - COMPLETELY UNTESTED. Really should add some unit tests for this...
...
svn-id: r13776
2004-05-05 01:19:42 +00:00
Eugene Sandulenko
b9ebd68022
Enchance ReadStream and MemoryReadStream with 24bits operations as well
...
as tell() and rewind() methods, as needed by SAGA engine.
svn-id: r13772
2004-05-04 03:27:00 +00:00
Eugene Sandulenko
f7f485464d
Well, now we use MemoryReadStream at least in SAGA engine.
...
Concept proved itself to be elegant and successful
svn-id: r13770
2004-05-03 23:08:22 +00:00
Max Horn
33ef0d0a4b
Added signed read/write methods to the Stream classes
...
svn-id: r13680
2004-04-29 20:28:42 +00:00
Max Horn
795a735a31
Comment about how our Rect class works. Note: the SAGA engine currently does use the alternate approach to rects! Hence we can't currently use all those nice and nifty helper methods from Common::Rect in SAGA.
...
svn-id: r13626
2004-04-25 16:16:21 +00:00
Max Horn
9defe4fc18
Removed XOR encoding stuff from File class; instead the new Scumm::XORFile class provides this functionality now
...
svn-id: r13597
2004-04-17 16:29:03 +00:00
Max Horn
ae50adfd31
Fix byte reads
...
svn-id: r13596
2004-04-17 12:42:40 +00:00
Max Horn
e17a15d96e
Introduce ReadStream and WriteStream (as explained in my File class design mails on scummvm-devel)
...
svn-id: r13595
2004-04-17 09:57:15 +00:00
Max Horn
40afd9b566
Fixed const iterator
...
svn-id: r13591
2004-04-16 22:04:32 +00:00
Max Horn
0a0a0c7b06
Updated to match scale2x 2.0
...
svn-id: r13563
2004-04-12 21:16:32 +00:00
Max Horn
2a02291537
simple double linked list template class (completely untested)
...
svn-id: r13555
2004-04-12 01:19:26 +00:00
Max Horn
8a69ffc46c
Renamed template class 'List' to 'Array', since that is really what it is (a resizable array, not a linked list)
...
svn-id: r13520
2004-04-09 15:10:23 +00:00
Max Horn
c7d22d5a6f
Fixed Rect(width, height) constructor
...
svn-id: r13482
2004-04-06 11:11:10 +00:00
Max Horn
b6a4610a77
be tolerant against abuse of ConfMan.getInt(); add missing default value for 'speech_volume' in bs1
...
svn-id: r13435
2004-03-31 18:00:46 +00:00
Max Horn
e8adb5e628
very simpled and limited stack class (fixed size even)
...
svn-id: r13429
2004-03-29 22:28:57 +00:00
Max Horn
b6d911a616
Fixed a bad crash that occured when adding a new game target in the launcher
...
svn-id: r13428
2004-03-29 19:15:23 +00:00
Max Horn
39765b0d19
Remove explicit OSystem parameter from StackLock constructor; added OSystem::displayMessageOnOSD (not yet used; default implementation provided)
...
svn-id: r13413
2004-03-28 20:31:18 +00:00
Max Horn
09e3fec623
Preserve comments in config files
...
svn-id: r13412
2004-03-28 20:28:45 +00:00
Max Horn
dbda6299e1
cleanup; extended config file format checking (partially from patch #896096 )
...
svn-id: r13411
2004-03-28 18:29:27 +00:00
Max Horn
14378cb56e
Renamed more OSystem methods
...
svn-id: r13410
2004-03-28 16:30:50 +00:00
Torbjörn Andersson
b25f42535b
Changed printf() to debug() and removed newline at the end of some messages
...
svn-id: r13403
2004-03-28 14:27:54 +00:00
Max Horn
b72d7dff1b
reorder content
...
svn-id: r13395
2004-03-28 12:15:49 +00:00
Max Horn
ab64ef93ec
clarify OSystem specification (setTimerCallback() must be 'atomic')
...
svn-id: r13391
2004-03-27 18:30:30 +00:00
Max Horn
c33712e3d6
small tweak
...
svn-id: r13390
2004-03-27 18:22:36 +00:00
Max Horn
cb8ca939c2
free(0) is guaranteed to be a no-op
...
svn-id: r13380
2004-03-25 11:25:50 +00:00
Max Horn
23dbd0de99
two TODOs
...
svn-id: r13356
2004-03-21 18:54:47 +00:00
Torbjörn Andersson
4a6b57f295
Fixed typo.
...
svn-id: r13316
2004-03-16 08:24:58 +00:00
Eugene Sandulenko
759c05f936
Added remove_at method
...
svn-id: r13297
2004-03-15 02:45:40 +00:00
Max Horn
782dabbcd3
...and mor. Next big thing should be to document the overlay stuff, but that'll have to wait till after I slept :-)
...
svn-id: r13295
2004-03-15 02:21:04 +00:00
Max Horn
b389dfa2a3
more tweaks to doxygen
...
svn-id: r13294
2004-03-15 02:09:28 +00:00
Max Horn
af80eef70e
fix circular header dependency, by moving StackLock class to common/system.h (it ties closely into OSystem anyway)
...
svn-id: r13292
2004-03-15 01:52:07 +00:00
Max Horn
e8f7214acb
Renamed OSystem::set_timer() to setTimerCallback(); more OSystem Doxygen changes
...
svn-id: r13289
2004-03-15 01:18:47 +00:00
Max Horn
f8610cd1c5
fix doxygen-comment mistakes
...
svn-id: r13286
2004-03-15 00:55:44 +00:00
Max Horn
e46ba2f29f
Added OSystem::getDefaultGraphicsMode(); renamed OSystem::get_height() and get_width() to getHeight and getWidth(); augmented some doxygen comments in common/system.h
...
svn-id: r13284
2004-03-15 00:45:45 +00:00
Max Horn
7db5cc0a9c
While moving things down by one line 'looks better' (IMO), it also means that the last line is blitted outside the screen -> bad. So for now I'll undo my changes to the 2xSai filter family
...
svn-id: r13257
2004-03-13 15:45:39 +00:00
Max Horn
f712d21c1d
Document the backend feature flags a bit, I hope this clarifies their purposes; if not feel free to augment the descriptions or tell me what I should add (same goes for the rest of the OSystem documentation, BTW)
...
svn-id: r13252
2004-03-13 15:12:23 +00:00
Jonathan Gray
5451bb29cc
correct error text
...
svn-id: r13226
2004-03-09 21:49:21 +00:00
Max Horn
a672590259
remove dependency on SDL_byteorder.h when we are using config.h
...
svn-id: r13206
2004-03-07 03:28:01 +00:00
Max Horn
af2f29f55c
added Rect::moveTo methods
...
svn-id: r13190
2004-03-04 22:26:31 +00:00
Max Horn
601723408f
add ConfigManager::getActiveDomain
...
svn-id: r13189
2004-03-04 22:26:09 +00:00
Chris Apers
fbd040ac9f
Obsolete
...
svn-id: r13144
2004-03-02 13:07:08 +00:00
Eugene Sandulenko
3ca5007779
Introduced new platform GF_WINDOWS. Used for HE games. GF_PC is DOS
...
svn-id: r13128
2004-03-02 00:37:23 +00:00
Max Horn
c6752cccf5
renamed more OSystem methods to follow our naming scheme; renamed NewGuiColor to OverlayColor; fixed some calls to error() in the SDL backend
...
svn-id: r13087
2004-02-28 12:58:13 +00:00
Max Horn
87e0e57567
the 2xsai class scalers all move the resulting image one up; work around that
...
svn-id: r13071
2004-02-27 19:36:52 +00:00
Max Horn
751435d54f
cleanup
...
svn-id: r13069
2004-02-27 15:52:23 +00:00
Max Horn
d158280425
the OSystem changes we discussed on the ML (note: renaming of the existing OSystem API is not yet finished); porters will have to fix their ports to get them to compile again
...
svn-id: r13036
2004-02-24 22:39:42 +00:00
Paweł Kołodziejski
06d7b1729d
increased debug level
...
svn-id: r12889
2004-02-14 16:13:16 +00:00
Max Horn
99551bd746
const correctness!
...
svn-id: r12874
2004-02-14 11:15:48 +00:00
James Brown
5ee96b4625
Add mutex tracking to make it easier to debug imuse deadlocks
...
svn-id: r12870
2004-02-14 08:56:26 +00:00
Max Horn
1e18364e5c
Fix for bug #896506 (GUI: Invalid read)
...
svn-id: r12864
2004-02-14 01:12:35 +00:00
Travis Howell
343037f0ec
Correct hberew
...
svn-id: r12815
2004-02-10 13:24:12 +00:00
Max Horn
d4a71d8eec
NL = NetherLands, NederLanden, NiederLande - NO is Norway
...
svn-id: r12813
2004-02-10 12:37:40 +00:00
Travis Howell
705df95a61
Ooops
...
svn-id: r12812
2004-02-10 12:36:15 +00:00
Travis Howell
9271ca5233
Previous method wouldn't work, since each langague is in different directory.
...
svn-id: r12810
2004-02-10 10:56:16 +00:00
Travis Howell
fdf55a67b0
Ooops
...
svn-id: r12806
2004-02-10 05:25:51 +00:00
Travis Howell
8a440a8496
Add languages
...
Sync md5
Correct another name
svn-id: r12805
2004-02-10 04:59:02 +00:00
Max Horn
9302e7d888
Make g_platforms global, so that the alauncher can iterate over the list of supported platforms
...
svn-id: r12765
2004-02-07 17:10:48 +00:00
Max Horn
d06316244e
Added FM-TOWNS to platforms list
...
svn-id: r12763
2004-02-07 16:01:00 +00:00
James Brown
9b97d851fe
Add -c/--config option to specific alternate configuration file. Sorry Max, but it's damn useful for coverdiscs :)
...
svn-id: r12758
2004-02-07 04:53:59 +00:00
Travis Howell
c29e0d2dd0
Add extra paths for international version of Simon the Sorcerer 1, so game can be played from CD.
...
svn-id: r12745
2004-02-06 00:58:24 +00:00
Max Horn
f59eb3b219
renamed (Const)Iterator to (const_)iterator; changed size() to return an uint
...
svn-id: r12722
2004-02-05 00:19:57 +00:00
Max Horn
da76ac5890
Various changes to the build system which allow building ScummVM in an external directory (and as such, allow you to have a debug, a profiling, and a release build from the same set of source files in parallel). Work in progress
...
svn-id: r12680
2004-01-30 21:54:28 +00:00
Chris Apers
29f87fb011
Return default description string
...
svn-id: r12624
2004-01-26 16:52:19 +00:00
Chris Apers
5bc6d14e33
Prevent getPlatformDescription(...) from returing NULL pointer using kPlatformUnknown
...
svn-id: r12567
2004-01-21 13:35:27 +00:00
Max Horn
cd045460cc
improved rect clipping & verification
...
svn-id: r12507
2004-01-18 21:41:38 +00:00
Nicolas Bacca
76298a9cec
Implements TOGGLE_VIRTUAL_KEYBOARD
...
svn-id: r12459
2004-01-17 23:40:36 +00:00
Nicolas Bacca
9fd8466546
Cleaner virtual keyboard support for the new CE backend, coming soon
...
svn-id: r12457
2004-01-17 14:32:22 +00:00
James Brown
eeab2bb3bf
Hack for Launcher Scaler dropdown. Backends using the Launcher will need to implement the OSystem HAS_SCALER property. The global options dialog still needs doing.
...
svn-id: r12436
2004-01-16 16:28:56 +00:00
James Brown
1778b01d76
Start of debug channel support. TODO: Move this to the common Debugger system?
...
svn-id: r12289
2004-01-10 05:20:15 +00:00
Max Horn
ab2192761d
useful convenience method
...
svn-id: r12233
2004-01-08 03:24:01 +00:00
Jonathan Gray
1356d4c354
add missing comma to ensure all directories are checked
...
svn-id: r12177
2004-01-06 12:52:08 +00:00
Max Horn
033ff78ae9
updated copyright notice
...
svn-id: r12176
2004-01-06 12:45:34 +00:00
Jonathan Gray
2be1b4d68a
start work on czech subtitle support, not finished
...
svn-id: r12175
2004-01-06 12:28:24 +00:00
Max Horn
24fcd71e84
cleanup for language/platform functions
...
svn-id: r12034
2003-12-30 19:07:55 +00:00
Travis Howell
8640153331
Search additional folder for BS1
...
svn-id: r11956
2003-12-27 05:43:03 +00:00
Max Horn
88873d5b31
be stricter about File::open params
...
svn-id: r11919
2003-12-25 17:52:25 +00:00
Max Horn
2e99e3f1f9
disable custom new/delete/free by default (only keep it around in case it comes in handy again in the future)
...
svn-id: r11839
2003-12-21 19:24:14 +00:00
Marcus Comstedt
7c09bd869b
Require stdafx.h to have been included.
...
svn-id: r11822
2003-12-21 16:45:16 +00:00
Max Horn
5f4c9cbeeb
resolve an inconsistency in the FROM_* helper macros: now they *always* cast their argument to unsigned (previously, the LE funcs would do this when used on BE machines, and vice versa; but using a FROM_LE macro on a LE machine wouldn't cause a cast to unsigned; this potentially leads to endian bugs!)
...
svn-id: r11726
2003-12-18 01:00:24 +00:00
Travis Howell
6f6675ed8b
Add capture mouse option, patch #860831
...
Uses Ctrl m to toggle, since that is closest to original games.
Disabled by default.
svn-id: r11680
2003-12-16 09:58:21 +00:00
Chris Apers
db2bf22b35
Removed 'fullscreen' option (PalmOS)
...
svn-id: r11656
2003-12-15 15:13:36 +00:00
Chris Apers
de1a8fdafa
Correct name
...
svn-id: r11655
2003-12-15 15:11:58 +00:00
Max Horn
5ff7c1d153
small fix for hexdump()
...
svn-id: r11617
2003-12-13 17:33:21 +00:00
Max Horn
35b62c294d
removed GameSettings::detectname and GameSettings::midi; renamed GameSettings::gameName to name; added temporary experimental MD5 hack
...
svn-id: r11603
2003-12-13 00:20:01 +00:00
Max Horn
dd33ae0f0f
added MD5 code to CVS
...
svn-id: r11602
2003-12-13 00:06:00 +00:00