Nicola Mettifogo
3dd23c5d9a
found and commented gross hack in the original engine
...
svn-id: r25679
2007-02-18 10:32:15 +00:00
Nicola Mettifogo
d4e5daa5b5
change in debug level
...
svn-id: r25678
2007-02-18 10:31:29 +00:00
Nicola Mettifogo
bc17ef29f9
set the size of savegame name to the same length for both saving and loading
...
svn-id: r25677
2007-02-18 09:56:28 +00:00
Nicola Mettifogo
6452e60727
enforced use of MAKE_INVENTORY_ID
...
svn-id: r25676
2007-02-18 09:36:47 +00:00
Nicola Mettifogo
d0da566633
fixed broken sprintf formats in saving routines
...
svn-id: r25675
2007-02-18 09:35:50 +00:00
Nicola Mettifogo
eb30be5f10
new special debug levels
...
svn-id: r25674
2007-02-18 09:33:53 +00:00
Nicola Mettifogo
b096586a22
fixes last broken commit
...
svn-id: r25673
2007-02-18 09:29:54 +00:00
Nicola Mettifogo
03099ec1ca
more big-endianness fixes
...
svn-id: r25672
2007-02-18 09:26:20 +00:00
Nicola Mettifogo
4e6e57eb53
adjusted wrong comment
...
svn-id: r25670
2007-02-18 08:45:22 +00:00
Nicola Mettifogo
be878d60db
fixed regression bug causing labels not to be aligned properly when near the right border
...
svn-id: r25665
2007-02-17 21:19:55 +00:00
Nicola Mettifogo
b1a63e8a16
changed mapChar to use unsigned (byte) instead of char, to avoid possible sign issues
...
svn-id: r25664
2007-02-17 20:54:25 +00:00
Nicola Mettifogo
33d04d5aa4
changed CNV loading code to be endian-safe
...
svn-id: r25663
2007-02-17 20:50:50 +00:00
Torbjörn Andersson
24a36cbb3f
Changed spaces to tabs again.
...
svn-id: r25656
2007-02-17 16:06:34 +00:00
Nicola Mettifogo
e29ddfe156
more conventional termination handling. Event loops are going to get merged soon, so there are FIXME remainders around there.
...
svn-id: r25655
2007-02-17 15:57:49 +00:00
Torbjörn Andersson
f33da9e412
Some indentation and format changes. Mostly replacing spaces with tabs.
...
svn-id: r25654
2007-02-17 15:37:49 +00:00
Nicola Mettifogo
9ab2ca5bc7
changed some debug levels
...
svn-id: r25653
2007-02-17 13:39:22 +00:00
Nicola Mettifogo
5e38eab640
fixed regression bug caused by ZoneTypeData being declared as a struct instead of an union. Should have taken care of this when the switch was actually made...
...
svn-id: r25652
2007-02-17 10:58:54 +00:00
Nicola Mettifogo
e3e76b59b6
fixed a bug in the original engine causing memory-protected systems to occasionally crash
...
svn-id: r25614
2007-02-15 21:43:56 +00:00
Nicola Mettifogo
22c7239796
fixed warning pointed out by _Q
...
svn-id: r25613
2007-02-15 21:42:57 +00:00
Eugene Sandulenko
d910b545c5
More skip_whitespace -> Common::ltrim(). For real now.
...
svn-id: r25577
2007-02-14 00:36:06 +00:00
Max Horn
7572d2b4f2
Changed detectBestMatchingGame to return a pointer to a ADGameDescription (or a subclass of it); added a (currently fake) fallback callback entry in ADParams
...
svn-id: r25574
2007-02-13 23:37:44 +00:00
Eugene Sandulenko
de02e840a6
skip_whitespace() -> Common::ltrim()
...
svn-id: r25573
2007-02-13 23:15:46 +00:00
Nicola Mettifogo
9317aec6a2
cancel button on load/save dialog is now handled correctly
...
svn-id: r25565
2007-02-13 21:07:33 +00:00
Nicola Mettifogo
75fab28be2
cleanup
...
svn-id: r25562
2007-02-13 21:06:13 +00:00
Max Horn
4968e912ce
AdvancedDetector changes:
...
* Renamed genGameList to gameIDList to make it match the corresponding
plugin API function name
* removed the detectFunc param from detectGameForEngineCreation,
as it *always* pointed to a straight wrapper around AdvancedDetector::detectAllGames
* as a consequence, removed the various GAME_detectGames functions from the
engines, and removed the detectFunc param from ADVANCED_DETECTOR_DEFINE_PLUGIN
svn-id: r25547
2007-02-13 14:55:11 +00:00
Eugene Sandulenko
da7d8c9f35
Rename Common::GF_XXX to Common::ADGF_XXX
...
svn-id: r25545
2007-02-13 13:42:28 +00:00
Max Horn
2afe07992f
Renamed kADFlagComplexID to kADFlagAugmentPreferredTarget, document it, and add it for AGOS, too
...
svn-id: r25543
2007-02-13 13:17:46 +00:00
Max Horn
55adc889e7
(re)added flags field to ADGameDescription, with currently only one value (GF_DEMO) -- this flag value is not yet used by anything (also, GF_DEMO hasn't been correctly set for AGI games yet)
...
svn-id: r25539
2007-02-13 01:28:18 +00:00
Nicola Mettifogo
f644986f87
changed structure packing to use pack-start.h and pack-end.h
...
svn-id: r25537
2007-02-12 21:14:34 +00:00
Max Horn
ccd6417f88
Fix warnings
...
svn-id: r25498
2007-02-11 22:40:32 +00:00
Nicola Mettifogo
f0cdab74a5
added load/save support
...
svn-id: r25496
2007-02-11 21:17:37 +00:00
Nicola Mettifogo
b8087fe1a8
fixed wrong implementation: zones and animations now survive location switches according to their properties and/or system flags
...
svn-id: r25478
2007-02-10 21:00:15 +00:00
Nicola Mettifogo
6cbdf9ad59
fixed bug: dialogue questions don't clutter the screen anymore when user is selecting an answer
...
svn-id: r25429
2007-02-08 21:56:51 +00:00
Nicola Mettifogo
65dfc335ef
fixed bug in dialogue parsing code: available answers now really depend on game flags
...
svn-id: r25427
2007-02-08 21:08:54 +00:00
Nicola Mettifogo
d1eb91882e
fixed location script parsing error causing irritatingly inconsistent gameplay
...
svn-id: r25421
2007-02-07 23:02:51 +00:00
Nicola Mettifogo
98bd5a6680
changed multiplexed uint32 to const void* to avoid errors on 64 bits systems
...
svn-id: r25418
2007-02-07 20:28:59 +00:00
Nicola Mettifogo
710105d1c1
solved 64 bit casting issue from BUG #1648325
...
svn-id: r25391
2007-02-05 12:53:40 +00:00
Nicola Mettifogo
890ee97285
applied 2nd workaround to avoid crashes caused by labels when switching location
...
svn-id: r25388
2007-02-04 15:48:51 +00:00
Nicola Mettifogo
8f084baf66
added more debug levels and comments
...
svn-id: r25386
2007-02-04 15:43:45 +00:00
Nicola Mettifogo
5007d82ec7
solved array out of bound issue in quickFadePalette
...
svn-id: r25380
2007-02-04 12:14:11 +00:00
Nicola Mettifogo
9832736f9a
added game palette static initializers to avoid warnings
...
svn-id: r25379
2007-02-04 11:19:14 +00:00
Nicola Mettifogo
854e351e5b
Implemented workaround to avoid crashes on location switches, using knowledge from Big Red Adventure.
...
svn-id: r25378
2007-02-04 11:16:40 +00:00
Nicola Mettifogo
d89bfde4a6
oops fixed 64 bit warnings in the last revision
...
svn-id: r25377
2007-02-04 08:26:44 +00:00
Nicola Mettifogo
e3b9bda909
changed handling of zone labels to match original engine
...
svn-id: r25376
2007-02-04 08:12:33 +00:00
Nicola Mettifogo
b7d72fd959
_hoverZone now is handled as in the original engine
...
svn-id: r25375
2007-02-04 08:10:00 +00:00
Eugene Sandulenko
7b6bdd231d
AdvancedDetector now has built-in fallback detection based on file lists.
...
Currently only gob engine benefits from it.
svn-id: r25374
2007-02-04 03:10:27 +00:00
Torbjörn Andersson
0a18259d78
Used Fingolfin's workaround for a bogus (?) warning produced by some versions
...
of GCC. (Not the one he's using, though, which is why I'm doing this instead.)
svn-id: r25327
2007-02-01 20:16:32 +00:00
Nicola Mettifogo
74b655f8df
fixed casting bug as suggested by fingolfin on tracker item #1648325
...
svn-id: r25304
2007-01-31 10:21:36 +00:00
Eugene Sandulenko
adcfd2cc5f
Now AdvancedDetector could use single ID per engine. Also it can suggest
...
more complex game IDs with platform and language specified.
AGI engine benefits most from that.
Also turned Cine, Parallaction and SAGA to single ID, autoupgrading old ID.
svn-id: r25269
2007-01-29 23:25:51 +00:00
Eugene Sandulenko
93687d376b
Add more paramteres to AdvancedDetector. Not used yet.
...
svn-id: r25241
2007-01-28 07:31:26 +00:00
Eugene Sandulenko
281ee019e0
Oops. Revert accidental commit
...
svn-id: r25233
2007-01-27 22:41:18 +00:00
Eugene Sandulenko
6365546fc5
Fixes and gfx rendering works
...
svn-id: r25232
2007-01-27 22:38:27 +00:00
Nicola Mettifogo
c77ac3380a
removed printf's spewing out tons of debug messages
...
svn-id: r25217
2007-01-27 00:20:41 +00:00
Nicola Mettifogo
3be5b0cca2
fixed out-of-bounds error causing random crashes in dialogues
...
svn-id: r25215
2007-01-26 23:26:28 +00:00
Nicola Mettifogo
da096e4b17
added more debug messages
...
svn-id: r25214
2007-01-26 23:24:12 +00:00
Nicola Mettifogo
b5a04fc2df
added NULLity checks
...
svn-id: r25213
2007-01-26 23:21:04 +00:00
Nicola Mettifogo
221e9e77dd
make sure current archive is closed before opening a new one
...
svn-id: r25212
2007-01-26 23:19:50 +00:00
Max Horn
d70c83bd4b
Lots of cleanup in the AdvancedDetector
...
svn-id: r25194
2007-01-25 21:16:57 +00:00
Eugene Sandulenko
bb3cc79bc6
Reduce #include dependencies
...
svn-id: r25178
2007-01-25 01:05:25 +00:00
Eugene Sandulenko
318210ad96
Add optional size parameter to ADGameFileDescription. Not used now.
...
svn-id: r25164
2007-01-24 22:42:44 +00:00
Eugene Sandulenko
edd2422a55
Hide all AdvacedDetector parameters into a structure for easier maintenance
...
and extensibility
svn-id: r25163
2007-01-24 22:24:52 +00:00
Eugene Sandulenko
d3b0ff8ade
Reduce dependency from common/advancedDetector.h
...
svn-id: r25156
2007-01-21 20:24:38 +00:00
Max Horn
fef501c205
openForSaving can fail, so it should be handled gracefully -- but better to assert out in a controlled manner than o invoke methods on a NULL pointer, right? :-)
...
svn-id: r25151
2007-01-21 15:19:30 +00:00
Nicola Mettifogo
0147a83180
fixed ordering of engine jobs: no more known graphics glitches
...
svn-id: r25146
2007-01-21 11:05:22 +00:00
Nicola Mettifogo
c12fe85922
fixed occasional border issues in inventory
...
svn-id: r25145
2007-01-21 11:00:07 +00:00
Nicola Mettifogo
d17f18223e
fixed out-of-bounds error causing premature crashes on some systems
...
svn-id: r25140
2007-01-21 08:53:18 +00:00
Eugene Sandulenko
cd8a5f3a98
First phase of detection-related plugins interface improvements. Now plugins
...
return StringMap instead of fixed list of parameters. This adds great
flexibility.
Current patch should not alter any functionality, i.e. if there are regressions,
submit a report. Phase 2 will benefit from these changes and will come later.
svn-id: r25134
2007-01-20 21:27:57 +00:00
Nicola Mettifogo
7d8ddb9a5b
fixed walk bug: characters now walk along complex paths
...
svn-id: r25117
2007-01-18 21:25:02 +00:00
Torbjörn Andersson
684a71cee0
Fixed a warning.
...
svn-id: r25112
2007-01-17 20:11:31 +00:00
Nicola Mettifogo
2541fcd82a
fixed broken tab widths
...
svn-id: r25111
2007-01-17 11:12:02 +00:00
Nicola Mettifogo
0c9d01ad81
added first debug messages
...
svn-id: r25106
2007-01-16 21:30:18 +00:00
Nicola Mettifogo
a3df05727a
removed definition of _glyphWidths
...
svn-id: r25097
2007-01-15 21:59:56 +00:00
Nicola Mettifogo
79d98bf52a
made _glyphWidths only referenced into graphics.cpp
...
svn-id: r25096
2007-01-15 21:58:51 +00:00
Max Horn
abb7d49bca
Fixing const related warnings in the parallaction engine
...
svn-id: r25095
2007-01-15 21:14:34 +00:00
Nicola Mettifogo
a90529c323
enforced MemoryReadStream usage instead of custom byte swapping in background loading
...
svn-id: r25094
2007-01-15 20:46:06 +00:00
Nicola Mettifogo
3545af0275
fixed pointer casting in InputData management
...
svn-id: r25093
2007-01-15 20:11:49 +00:00
Nicola Mettifogo
1bde157987
Made Nippon Safes start from the regular splash screen
...
svn-id: r25091
2007-01-15 12:59:40 +00:00
Paweł Kołodziejski
13129f6eba
fix warning
...
svn-id: r25089
2007-01-15 08:24:45 +00:00
Max Horn
3c537cb3c9
Zone names get free'd, so don't assign a static string to it (it causes a const warning, too)
...
svn-id: r25087
2007-01-14 23:48:11 +00:00
Willem Jan Palenstijn
d38d85b8bc
mark 64bit issues
...
svn-id: r25084
2007-01-14 21:58:18 +00:00
Eugene Sandulenko
e5c7ce83b8
Initial import of Parallaction engine
...
svn-id: r25083
2007-01-14 21:29:12 +00:00