Commit Graph

958 Commits

Author SHA1 Message Date
Max Horn
3f2286031a Avoid putting non-ASCII chars into source files
svn-id: r18761
2005-09-03 19:59:33 +00:00
Chris Apers
1d6ecabfbe Prepare new backends and potential native version
svn-id: r18747
2005-09-03 16:15:39 +00:00
Chris Apers
c6c22db6ae Change PalmOS ident
svn-id: r18746
2005-09-03 16:12:52 +00:00
Chris Apers
1dc00deb56 Fixed compilation
svn-id: r18745
2005-09-03 16:10:08 +00:00
Chris Apers
09b0f765d4 Change PalmOS ident and fix ARM bug using global initializers
svn-id: r18744
2005-09-03 16:08:27 +00:00
Eugene Sandulenko
636dd6e6d6 Add debuggins method. Whitespace fixes.
svn-id: r18729
2005-09-02 08:51:58 +00:00
Travis Howell
7556e064d2 mingw can handle heap checking now.
NOTE: Requires mingw-runtime-3.8

svn-id: r18714
2005-08-28 11:15:38 +00:00
Joost Peters
bc394b6ea3 Added: PSP backend
svn-id: r18696
2005-08-16 17:15:37 +00:00
Eugene Sandulenko
6b4484472b Remove trailing whitespaces.
svn-id: r18604
2005-07-30 21:11:48 +00:00
Lars Persson
d4716a1fb5 * Start of generic key configuration support for ScummVM
* Moved KeyConfigDialog, key from WinCE to gui
* Updated wince code to inherit and use new GUI::Keys and launch new dialog
* New definition SMALL_SCREEN_DEVICE when keysdialog should be inittialized from options.cpp
* Added new function to SDL\Events that handles key remapping.  LINUPY & QTOPIA remapping moved to that function. SymbianOs.cpp overrides this function to enable key remapping to events
* Compiled VC6++ project. This with warnings and errors, but NOT in the changed code. (SAGA,KYRA)
* Compiled using WCE tools 3 for X86 target and running Scummvm in emulator to test
* Compiled with UIQ target. The rest Symbian platforms might require further configuration to operate properly
* Actor.h in Saga now compiles for default VC6 setting.
* Aspect.cpp does not compile in VC6/WCE due to template problems with the kFastAndNiceAspectMode setting.
* Changed order of creation of gamedetector and mainsystem in Main.cpp
* If anything does not compile, or is totally out of order, please revert changes.

svn-id: r18498
2005-07-05 20:22:56 +00:00
Max Horn
5059e710e8 Fix postfix inc/decrement operators of List::Iterator
svn-id: r18465
2005-06-25 19:43:59 +00:00
Torbjörn Andersson
1d39f986c9 Whitespace changes.
svn-id: r18449
2005-06-24 16:08:31 +00:00
Max Horn
8b1d7b9166 When including files from common/, explicitly use the common/ prefix
svn-id: r18444
2005-06-24 15:23:51 +00:00
Max Horn
a35588b9ff Fix 64 bit compiler warning/error
svn-id: r18442
2005-06-23 14:18:25 +00:00
Max Horn
f80dab367c Moved endian macros to a separate header file
svn-id: r18441
2005-06-23 14:15:49 +00:00
Lars Persson
1c69696a9a Patches needed to build for SYMBIAN32 WINS/GCC added.
Test built for Symbian and run on P910i without any major problems.
Test built for MSVC6. Changed parts seems to compile ok but there are some problems with MSVC6 and some of the targets which the EPOC build does n't support (KYRA,SAGA).

svn-id: r18430
2005-06-21 22:08:21 +00:00
Max Horn
096e04ef05 Added virtual destructor, to silence a few more GCC 4 warnings
svn-id: r18419
2005-06-20 17:59:00 +00:00
Andrew Kurushin
234b79396a fix VS2005beta2 compilation
svn-id: r18374
2005-06-10 19:02:00 +00:00
Eugene Sandulenko
60806b90e8 Increase max number of timers to 8.
svn-id: r18364
2005-06-07 21:17:47 +00:00
Paweł Kołodziejski
bc65eb8ea5 added code for loading dynamic plugins(DLLs) for windows
svn-id: r18356
2005-06-05 12:55:33 +00:00
Andrew Kurushin
4a9a0cef3b fix warning
svn-id: r18285
2005-05-28 12:53:11 +00:00
Andrew Kurushin
cd72ae9e65 commit adds setWidth & setHeight to extend bounds of rect
svn-id: r18283
2005-05-28 12:28:23 +00:00
Travis Howell
9135c8ddfe Add Norwegian Bokm�l version of Freddi Fish 1.
Set HE70+ games to Windows platform by default.

svn-id: r18213
2005-05-22 02:07:32 +00:00
Eugene Sandulenko
fc87c5821a Initial support of C64 MM & Zak
svn-id: r18146
2005-05-17 23:56:21 +00:00
Torbjörn Andersson
d91c687619 Indentation and whitespace.
svn-id: r18107
2005-05-15 13:57:58 +00:00
Max Horn
343c5152c0 Added String::iterator
svn-id: r18105
2005-05-15 13:20:52 +00:00
Eugene Sandulenko
80ee8188d3 Improvements to --disable-* stuff. Now less ugly #ifdefs with #includes.
svn-id: r18100
2005-05-14 23:28:22 +00:00
Eugene Sandulenko
3588b96d4f Added --disable-hq and --disable-scumm-7-8 options. Also improved
DISABLE_HE so more HE-specific code gets excluded.

svn-id: r18099
2005-05-14 22:56:41 +00:00
Max Horn
db123a9e7a Factor out common stuff in scummsys.h a little bit
svn-id: r18095
2005-05-14 15:53:37 +00:00
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
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