Max Horn
9339e651aa
- The command line parser now doesn't work in reverse order anymore.
...
- Changed the usage string to a very short message; the old usage string
now is only printed upon help (this matches the behavior of many other
tools out there).
- Continued to modify GameDetector::parseCommandLine in such a way that it
soon will be possible to use it w/o immediately storing stuff into ConfMan.
- Slightly reduced code duplication for bool option parsing.
svn-id: r21560
2006-04-02 17:51:04 +00:00
Max Horn
e9bc5ba280
Backends now are also responsile for deiniting properly. In particular, moved the call to quit() from scummvm_main to the various backend main routines (porters may want to replace it by something different)
...
svn-id: r21559
2006-04-02 14:31:23 +00:00
Max Horn
9217472f0e
With this change, backends are now responsible for instantiating their OSystem class before calling scummvm_main (Note: PalmOS and Symbian are not yet converted, and won't work currently)
...
svn-id: r21557
2006-04-02 14:16:31 +00:00
Travis Howell
72f4a1c76c
Fix console output been redirected under win32 build, due to main changes. Remove NO_CONSOLE, since it is never defined
...
svn-id: r21554
2006-04-02 13:33:36 +00:00
Max Horn
f8bb142f0b
Fixing the X11 & NULL backends by adding main()
...
svn-id: r21553
2006-04-02 10:01:58 +00:00
Max Horn
a4d075dad3
Only include gui/launcher.h if it is used; cleanup
...
svn-id: r21552
2006-04-02 09:56:11 +00:00
Max Horn
32de344111
Move gDebugLevel to common/util.cpp (where most other debug() related stuff already is)
...
svn-id: r21551
2006-04-02 09:31:06 +00:00
Max Horn
2fd027846e
Moved AmigaOS 'magic cookie' to sdl.cpp, as it is port specific (porter says he might remove it completly in a future version)
...
svn-id: r21550
2006-04-02 09:26:51 +00:00
Max Horn
a30d832ee0
Removed built-in endian/alignment verifier (it's original purpose is mostly gone now that we have a configure script detecting endianess and more)
...
svn-id: r21549
2006-04-02 09:23:18 +00:00
Max Horn
041bc770e8
ps2_fopen uses getGameDataPath -- added FIXME comment that explain how it probably could be fixed, but I'll leave this to somebody who can actually compile & test this port :-)
...
svn-id: r21548
2006-04-02 02:40:39 +00:00
Max Horn
9b08d8e467
Moved the Win/Symbian specific stdout/stderr redirect code from base/main.cpp to sdl.cpp, where it belongs (considering that it is backend specific code)
...
svn-id: r21547
2006-04-02 02:23:29 +00:00
Johannes Schickel
70cc7b8c26
- changed standard inactive dialog effect to dim with 30% instead of luminance
...
svn-id: r21546
2006-04-02 01:08:16 +00:00
Max Horn
8a8bdcd1f8
Moved all debug functions to from main.cpp to util.cpp
...
svn-id: r21545
2006-04-02 00:56:53 +00:00
Johannes Schickel
d0b8efd575
- moves some code in ThemeNew.cpp (calcGradient and calcAlpha to the bottom)
...
- added possibility to use a shading effect on inactive dialogs (luminance and dim are builtin, and special ablility to specifiy a own expression, evaluated via the evaluator)
- adds also a color cache (atm it's generated on startup)
- uses luminance effect by default
- bumps theme config version to 7
svn-id: r21544
2006-04-02 00:56:21 +00:00
Max Horn
b2a5647887
Removing undocumented Allegro/Qtopia port stuff -- if anybody is working on either port, feel free to re-add it, but this time, document it and make sure it's clear how to build that port
...
svn-id: r21543
2006-04-02 00:18:33 +00:00
Max Horn
587431f8e8
Fully and officially renamed our main function to scummvm_main, thus making
...
various backend specific hacks unnecessary. As a consequence, it is now the
responsibility of the backend to define main. Hence I adapted the SDL backend
accordingly.
svn-id: r21542
2006-04-02 00:08:22 +00:00
Travis Howell
a2c4795f32
Update gameDataPath() calls in engine, to fix compile
...
svn-id: r21541
2006-04-01 23:31:51 +00:00
Max Horn
3de55677b9
Typo
...
svn-id: r21540
2006-04-01 22:31:57 +00:00
Max Horn
8b1c432bac
Switch ConfigManager to use HashMap (seems to work fine over here, but an older version killed my scummvm.ini, so use at your own risk (not that you really have a choice. I just like being evil *g*))
...
svn-id: r21539
2006-04-01 22:31:45 +00:00
Torbjörn Andersson
c4955466fd
Simplified loading of startup.inf
...
svn-id: r21538
2006-04-01 21:56:10 +00:00
Max Horn
0ee4f304b8
Properly use registerDefault to set the default value for autosave_period
...
svn-id: r21537
2006-04-01 21:55:45 +00:00
Torbjörn Andersson
d6f348638d
Guard against too many entries in resource.inf, since there has been a TODO
...
comment about that (removed in the previous commit) since roughly forever.
svn-id: r21536
2006-04-01 21:55:41 +00:00
Max Horn
2197597f9a
Moved File::resetDefaultDirectories from Engine destructor to runGame (since that is the main spot where we call addDefaultDirectory)
...
svn-id: r21535
2006-04-01 21:52:33 +00:00
Max Horn
d61b104568
Removed yet another superfluous addDefaultDirectory call, and removed the unused Engine::getGameDataPath method (just use _gameDataPath directly if you need this)
...
svn-id: r21534
2006-04-01 21:43:49 +00:00
Torbjörn Andersson
f59d472155
Simplified the loading of resource.inf
...
svn-id: r21533
2006-04-01 21:42:11 +00:00
Max Horn
8f691e51fa
Removed superfluous addDefaultDirectory call, as well as two unused bad member vars
...
svn-id: r21532
2006-04-01 21:31:27 +00:00
Max Horn
49d63590ab
Removing superfluous addDefaultDirectory call
...
svn-id: r21531
2006-04-01 21:30:06 +00:00
Max Horn
e390639dd8
Use extra_versions to compute ScummGameSettings (currently only compared to the value determined via multiple_versions_md5_settings but not actively used; requires more testing, in particular with HE games)
...
svn-id: r21530
2006-04-01 18:20:35 +00:00
Max Horn
46360fcc77
Changed output path for md5scumm target (matching the credits target: assumes that you are running the target from inside a full checkout of the ScummVM SVN repository)
...
svn-id: r21529
2006-04-01 18:14:34 +00:00
Max Horn
ee62cd3c51
Generate an error when kGenAsIs is used with an unsupported platform, instead of silently continuing with a bogus _fileHandle (leading to odd crashes)
...
svn-id: r21528
2006-04-01 18:13:06 +00:00
Max Horn
9ed2d26db5
Simplified the File::addDefaultDirectory(Recursive) code; avoid scanning directory multiple times
...
svn-id: r21527
2006-04-01 17:36:43 +00:00
Max Horn
0bb6d64064
A lot of code in sword1/router.cpp and sword2/router.cpp is virtually identical -- unified the two files in many places (but a lot more could be done, feel free to pick up and continue this work)
...
svn-id: r21526
2006-04-01 12:47:09 +00:00
Travis Howell
d10929b394
Always check array bounds are valid in HE games, matching original
...
svn-id: r21524
2006-04-01 12:26:50 +00:00
Max Horn
361572af2c
Patch #1432378 : BASS: Memory leak, patch included
...
svn-id: r21523
2006-04-01 11:25:08 +00:00
Travis Howell
7a81cc76e1
Fix painting and fridge magnet palette glitches in thinker1
...
svn-id: r21522
2006-04-01 06:38:47 +00:00
Eugene Sandulenko
8a5df05aa0
Hide eval debug output deeper to level 5. Report total number of defined
...
variables.
svn-id: r21521
2006-03-31 23:51:19 +00:00
Eugene Sandulenko
8272591c8d
Add size() methods to Map and HashMap classes
...
svn-id: r21520
2006-03-31 23:49:08 +00:00
Max Horn
e947bd5e27
Updated ConfigFile/ConfigManager classes, that work with the updated Map class, and optionally support HashMap (disabled for now)
...
svn-id: r21519
2006-03-31 23:10:24 +00:00
Max Horn
05b0ed007e
Disable DEBUG_HASH_COLLISIONS again (accidentally got enabled in my previous commit)
...
svn-id: r21518
2006-03-31 22:38:27 +00:00
Max Horn
c50bfd9d34
Modify HashMap to allow client code to override the equality/hash functionality via functors that are specified as template paramaters (emulating the hash_map class which many STL implementations provide) -> this is necessary to allow e.g. HashMaps that use case insensitive strings as keys
...
svn-id: r21517
2006-03-31 22:19:39 +00:00
Max Horn
661128b2b4
Modified our Map class to use a 'Less' function instead of a 'strcmp'-like comparator functor, to match the STL map template
...
svn-id: r21516
2006-03-31 22:17:06 +00:00
Max Horn
088b0afad5
Modified the List postfix ++/-- operators to simply invoke their prefix counterparts; also removed Symbian/Palm specific hack
...
svn-id: r21515
2006-03-31 22:15:42 +00:00
Travis Howell
c4349e88f7
Rename two WizParameters fields
...
svn-id: r21514
2006-03-31 13:06:23 +00:00
Eugene Sandulenko
0335bab074
Make corners of SCUMM load/save dialog round.
...
svn-id: r21513
2006-03-31 13:00:06 +00:00
Max Horn
00bbc5c96c
Small correction in the TODO file (use proper class names)
...
svn-id: r21512
2006-03-31 12:16:19 +00:00
Max Horn
a23fba7a42
Avoid using Map::merge
...
svn-id: r21511
2006-03-31 07:30:43 +00:00
Max Horn
e0b3e777cf
Added some functor objects (for comparision and hash computations), similar to those present in the STL
...
svn-id: r21510
2006-03-31 07:22:49 +00:00
Max Horn
111c0d1ddd
Some new & extended test cases
...
svn-id: r21509
2006-03-31 07:20:16 +00:00
Torbjörn Andersson
c26b762f48
Made readFileToMem() print a more useful error message than "File is not open"
...
if the file could not be opened.
svn-id: r21508
2006-03-31 06:42:56 +00:00
Travis Howell
f991b88da8
Fix skipping insane sequence in bundled Macintosh demo of FT
...
svn-id: r21507
2006-03-31 01:28:35 +00:00