631 Commits

Author SHA1 Message Date
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