Commit Graph

926 Commits

Author SHA1 Message Date
Eugene Sandulenko
e373c9b7b5 - Revert my last change with moving addDefaultDirectory() from TheneNew.cpp
- Removed locking of further directory adds because it did not work for themes.

svn-id: r21452
2006-03-25 19:30:10 +00:00
Travis Howell
a98aea6efd Add kListAllNoRoot type to listDir() to handle recent file class changes, on file system backends which use _isPseudoRoot
svn-id: r21449
2006-03-25 10:39:05 +00:00
Eugene Sandulenko
22042bc637 - Implemented case insensitive file reading. Left old system as a fallback
in case some engine writer decide to do something unwise
- Removed used of ConfMan.getKey("path") in file-related cases, because
  now File class handles that
- Fixed bug in ScummEngine_v80he::o80_getFileSize() where path delimiters
  weren't translated

svn-id: r21443
2006-03-25 04:17:17 +00:00
Max Horn
1c061dea4b Changed the DEBUG_HASH_COLLISIONS feature: Now measures the ratio between lookup collisions and total number of lookups
svn-id: r21432
2006-03-24 17:13:24 +00:00
Max Horn
9dc07c11cd - replaced the hash table size heuristic with a table of hard coded table sizes
(taken from the GNU ISO C++ Library), which are all prime
- replaced the string hash function by one that works slightly better & faster
- changed various types to unsigned
- added code to help debug the number of hash collisions (off by default)

svn-id: r21431
2006-03-24 16:53:32 +00:00
Max Horn
7307c4cb3d - moved type aa_ref_t into AssocArray, improving code readability a bit
- added new "operator[] const" method, useful when accessing const instances
- removed the default value (if you access an entry without first checking that
  it is actually there, it's your own fault)
- replaced 'index' with 'key' which seems more logical and avoids troubles with
  certain systems that #define index in their system headers

svn-id: r21430
2006-03-24 15:39:07 +00:00
Max Horn
1f9566129c Some more cleanup in AssocArray
svn-id: r21429
2006-03-24 15:22:17 +00:00
Max Horn
ae0cf6e88d Cleanup for the AssocArray template: int->book, put common code into a new lookup() method, and some other tweaks
svn-id: r21428
2006-03-24 14:30:33 +00:00
Max Horn
1805f42eea Oops, accidentally commited the wrong patch (had these lines commented out for testing)
svn-id: r21427
2006-03-24 14:17:47 +00:00
Max Horn
58b14bab3c Using NULL as a default value is not working in general (e.g. for Common::String) -- force explicit definition of a default value
svn-id: r21424
2006-03-24 14:14:29 +00:00
Eugene Sandulenko
5d1b4d8f78 Implementation of AssociativeArray. Transferred GUI to it. Now it is much
faster.

svn-id: r21419
2006-03-23 22:59:38 +00:00
Oystein Eftevaag
dabfcbf10c Moving the MacOS bundle file checking to another function, it was getting called redundantly.
svn-id: r21309
2006-03-15 09:41:22 +00:00
Oystein Eftevaag
58eed3830b * 'make bundle' now copies the default theme files into the bundle.
* Common::File will now look inside the application bundle on MacOS X for a file if
it can't find it anywhere else (so it'll find default-theme.ini and .zip)
* Cleaned up some #ifs.

svn-id: r21308
2006-03-15 07:43:44 +00:00
Travis Howell
ff676b0b54 Correct GCC_PACK define for non-GCC
svn-id: r21160
2006-03-09 09:51:42 +00:00
Travis Howell
47f66f80b9 Revert GCC_PACK removal, which broke compile
svn-id: r21159
2006-03-09 09:40:07 +00:00
Travis Howell
f848dd1d99 Revert GCC_PACK removal, which broke compile
svn-id: r21158
2006-03-09 09:36:09 +00:00
Max Horn
c59ca20ce6 Check format string in calls of debug/error (adapted from patch #1445422)
svn-id: r21139
2006-03-08 10:00:12 +00:00
Eugene Sandulenko
1eff73cb41 GUI widget positions:
o Add 'true' and 'false' constants
o add .visible widget property
o allow dots to be part of section and key names in configs

svn-id: r21123
2006-03-07 13:41:36 +00:00
Eugene Sandulenko
4c16b73bd1 o Properly react to end-of-file is loadFromStream()
o Add types SectionList and SectionKeyList
o Implement getKeys() method

svn-id: r21114
2006-03-07 02:23:37 +00:00
Paweł Kołodziejski
95116f2098 define int types for msvc to allow compile mpeg2 library. msvc does not fully conform C99
svn-id: r21073
2006-03-04 15:26:26 +00:00
Max Horn
1c93f7bcea Removed the obsolete MKID macro; added some doxygen comments, in particular for MKID_BE
svn-id: r20873
2006-02-25 11:45:56 +00:00
Max Horn
6931478e91 Removed the (useless and confusing) PROTO_MKID_BE macro
svn-id: r20860
2006-02-25 01:24:10 +00:00
Max Horn
7335d348ba Moved common/scaler* to graphics/
svn-id: r20797
2006-02-20 20:29:02 +00:00
Max Horn
188cdf937d Clarified that OSystem::setWindowCaption currently only supports ASCII captions
svn-id: r20780
2006-02-20 13:09:39 +00:00
Travis Howell
54babe81ce Fix mistake in last commit
svn-id: r20716
2006-02-16 05:33:27 +00:00
Travis Howell
fa4f74ab73 Add 3DO platform for HE games
svn-id: r20713
2006-02-16 04:52:10 +00:00
Johannes Schickel
0bea9cf47b Made the kyra debug extensions more generic, i.e. scumm engine could replace
their debugC calls now with the new introduced debugC calls.
(A mail how to use it will follow shortly on -devel)
Also now these special engine debug flags can be specified from the commandline.
Also made the -c & --config parameter check more secure.

svn-id: r20695
2006-02-14 23:31:25 +00:00
Travis Howell
d96713a857 Correct case of SPY Fox game titles
svn-id: r20687
2006-02-14 06:57:42 +00:00
Lars Persson
0b847325e1 'Changed Symbian configuration handling so it is using the basepath of the application installation as a path for Savegames, ini files etc
*Updated list.h so it also compiles for Symbian codewarrior and gcce compilers

svn-id: r20586
2006-02-12 00:33:04 +00:00
Max Horn
80cf2fa46f Reduced data duplication in module.mk files; added module.mk files for null and x11 backends; added engines/module.mk
svn-id: r20584
2006-02-12 00:16:31 +00:00
Chris Apers
32b2efb8d7 This seems to definitively fix my compilation problem
svn-id: r20554
2006-02-11 18:02:13 +00:00
Max Horn
36934b611d Change CVS keywords to SVN keywords
svn-id: r20510
2006-02-11 09:53:53 +00:00
Max Horn
0ad58cdb95 Removed .cvsignore files
svn-id: r20424
2006-02-07 22:50:14 +00:00
Chris Apers
d88462e7d6 Fixed PalmOS backend compilation
svn-id: r20352
2006-02-02 20:39:12 +00:00
Chris Apers
4c8cd695da Typo
svn-id: r20351
2006-02-02 20:35:21 +00:00
Gregory Montoir
eae3d40f67 Fixed assert conditions.
svn-id: r20317
2006-01-30 19:32:28 +00:00
Johannes Schickel
d4b3467ac8 Fixes a bug when loading the theme config file from a directory instead of the zip file.
svn-id: r20310
2006-01-30 14:19:02 +00:00
Jonathan Gray
38ae101bde cyx's gcc 2.95 fix makes things compile with gcc 2.95 again.
svn-id: r20288
2006-01-29 03:44:13 +00:00
Eugene Sandulenko
052a42f89f Added new debugN() function which doesn't append newline.
svn-id: r20285
2006-01-29 02:44:30 +00:00
Eugene Sandulenko
fef533e93e Proper RCS IDs
svn-id: r20236
2006-01-27 19:05:24 +00:00
Paweł Kołodziejski
c0938748f6 turn off warning #4351 with msvc8
svn-id: r20232
2006-01-27 16:48:31 +00:00
Johannes Schickel
5051b080a2 - adds the new gui renderer also a new implementation for the classic gui
- adds a ImageMan and ImageDec class for loading and managing image files
 - adds a loader for zip files which is used by the new theme and the image manager
 - changes the widgets to use the new gui code
 - changes the scumm dialogs to use the new gui code
 - fixes a #include problem in the sky debugger with the new gui code

 To use the new gui copy gui/themes/default-theme.zip to your extrapath.
If the theme zip can not be found the gui will fallback to the classic theme.
If you want to change the gui styles use "gui_theme=classic" for the classic theme
and "gui_theme=default-theme" for the new theme.

Thanks to eriktorbjorn for testing and help with the new theme and to sev for
reviewing this patch.

svn-id: r20227
2006-01-27 15:43:23 +00:00
Max Horn
2f8dacd617 Clarified comment, cleanup
svn-id: r20111
2006-01-21 11:57:19 +00:00
Eugene Sandulenko
ea42bad781 Update copyright notice
svn-id: r20088
2006-01-18 17:39:49 +00:00
Travis Howell
64f1955745 Leave as warning.
svn-id: r20043
2006-01-15 10:22:44 +00:00
Travis Howell
1b18b98ca5 Update confusing warning.
Check that config file location is writable.

svn-id: r20034
2006-01-15 00:22:29 +00:00
Max Horn
6dbfaa2c31 Restore the alphabetical order of the platforms (this should really be done by the GUI automatically, but for not it is simpler to fix it here)
svn-id: r20022
2006-01-14 11:07:06 +00:00
Travis Howell
ad14c53110 Add SegaCD platform and remove SegaCD specific game Id.
svn-id: r20015
2006-01-14 09:28:38 +00:00
Lars Persson
d4e6b02fde Updated so ScummVM also builds for Symbian WINS emulator builds (!defined added)
svn-id: r19729
2005-12-02 18:37:20 +00:00
Eugene Sandulenko
edfae828f6 Patch #1341626: "New GP32 port"
svn-id: r19710
2005-11-27 02:35:57 +00:00
Travis Howell
9cde262192 Add Polish version of Simon the Sorcerer 2 (Windows).
svn-id: r19634
2005-11-18 00:59:47 +00:00
Travis Howell
5307f21742 Add acorn platform.
svn-id: r19564
2005-11-12 06:04:32 +00:00
Max Horn
eef4e5caec Augmented OSystem docs
svn-id: r19522
2005-11-08 22:28:31 +00:00
Chris Apers
3fe9730fc9 Prevent conflic with Sky def
svn-id: r19470
2005-11-05 18:28:30 +00:00
Max Horn
0063257a2b Fix another HOME buffer overflow attack vector
svn-id: r19376
2005-10-31 01:50:51 +00:00
Eugene Sandulenko
b36677af71 Update FSF address. Eek. Actually that took place on May 1, 2005
svn-id: r19142
2005-10-18 01:30:26 +00:00
Max Horn
7ab5fa8114 cleanup (really would like to unify all those typedef's eventually; maybe we can use inttypes.h on some systems?)
svn-id: r19077
2005-10-14 10:20:42 +00:00
Eugene Sandulenko
05457402f5 Added Linux platform. Now it is used by some ITE version and is required
for proper game identification (21 subtle distinct versions of same game
which still require individual flags is not a joke)
cvs: ----------------------------------------------------------------------

svn-id: r19073
2005-10-14 02:50:05 +00:00
Marcus Comstedt
57e1c6451d Improved savefile error handling:
* New flush() method in WriteStream class to flush pending I/O, in order
  to detect any I/O errors

* Use of flush() and ioFailed() added to scumm engine save function

* Dreamcast backend extended to support the new checks

svn-id: r19066
2005-10-13 18:50:53 +00:00
Travis Howell
8387b48d20 Set _HEAPOK to correct value,if using earlier mingw-runtime.
svn-id: r19059
2005-10-13 12:44:26 +00:00
Torbjörn Andersson
aa8df56744 Added WRITE_UINT16() and WRITE_UINT32() as well.
svn-id: r19019
2005-10-11 13:40:29 +00:00
Torbjörn Andersson
c23f1c5c72 Added READ_UINT16(). It looks like SAGA will need it.
svn-id: r19018
2005-10-11 13:33:01 +00:00
Eugene Sandulenko
049dd317d7 Patch #1323715 "OS/2 Patches to ScummVM" and credited the author.
svn-id: r19016
2005-10-11 11:27:18 +00:00
Chris Apers
8b4f59dc7a PalmOS:
- fix crash trying to use emptyString
- debug option

svn-id: r18963
2005-10-08 19:10:05 +00:00
Chris Apers
12f40ae777 PalmOS: cannot use global objects in ARM
svn-id: r18962
2005-10-08 19:07:18 +00:00
Eugene Sandulenko
b7a275a131 Fix compilation
svn-id: r18910
2005-09-30 21:45:41 +00:00
Lars Persson
7dc6b6adbd 1.Removed warning from symbian portdefs
2.Made thumbnail.cpp compile for VC6 (Symbian Emulator environment). Order of template declaration and includes causing the problems
3.Moved int i declaration from for;loop into local variable
4.Updated stdafx uio.h is not part of the Symbian build chain.

svn-id: r18909
2005-09-30 21:13:49 +00:00
Eugene Sandulenko
aa33153569 Normalize use of DISABLE_SCALERS. Now it really disables all scalers
except essential Normal1x. Also thumbnails get compiled unconditionally
so we get them on all platforms, even those which never display them.

Sorted out mess brought to sdl backend by epoc maintainer. He misused
__SYMBIAN32__ where DISABLE_SCALERS is more appropriate.

svn-id: r18850
2005-09-20 18:16:09 +00:00
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