Commit Graph

1670 Commits

Author SHA1 Message Date
Sven Hesse
d124b87649 GOB: Remove unnecessary include
A remnant of when we were still doing dithering color LUT
creation at startup
2012-06-03 17:15:18 +02:00
Sven Hesse
5a245bd4f2 GOB: Consume shields in Penetration 2012-06-03 03:40:04 +02:00
Sven Hesse
627e870629 GOB: Limit Penetration movement to walkable tiles 2012-06-03 03:29:35 +02:00
Johannes Schickel
a401f0a19e ALL: Replace cursorTargetScale in OSystem API with a simple "do not scale" logic.
All uses of the old target scale API actually wanted to disallow scaling of
the mouse cursor. This commit adapts our API to this and thus simplifies
backend implementations.

Some backends, most notable the Wii and Android, did some implementation of
the cursor target scale, which I didn't adapt yet. I added a TODO for the
porters there.
2012-06-03 02:02:57 +02:00
Sven Hesse
95e467d82c GOB: Display the Penetration submarine 2012-06-03 01:29:44 +02:00
Sven Hesse
8dcb93f2ce GOB: Draw the Penetration map and do basic movement 2012-06-03 01:29:44 +02:00
Sven Hesse
43abb525d4 GOB: Draw the map in a separate surface
Still hidden for now.
2012-06-03 01:29:44 +02:00
Sven Hesse
030509c8eb GOB: Draw the shield and health meters in Penetration 2012-06-02 23:14:12 +02:00
Sven Hesse
585ceb566f GOB: Add animation handling frame to Penetration 2012-06-02 23:14:12 +02:00
Sven Hesse
3eeb3d7416 GOB: Correctly name the Penetration script variables 2012-06-02 23:14:12 +02:00
Sven Hesse
be25e31a0a GOB: Fix v7 cursors drawn by the scripts
When the cursor name is "", then that cursor is drawn by the scripts
instead of loaded from cursor32.dll. That cursor does not have its own
palette then.
Fixes the cursors in the "paint" game in Adibou2.
2012-05-29 17:12:06 +02:00
Sven Hesse
aa7c44a070 GOB: Hook up the PE cursors to v7 loadCursor
Addy Junior / Adibou2 now shows proper cursors.
Thanks to clone2727 for the constant nagging. :P
2012-05-29 14:22:07 +02:00
Sven Hesse
8a4da1e6b0 GOB: Add a Spanish Amiga version of Gobliins 2
As supplied by aldozx in the forums.
2012-03-30 11:35:18 +02:00
Sven Hesse
3664088f6f GOB: Add a way to add sprite coordinates to CMP files
Because the meter bar and icons for Penetration are not
even in the CMP's RXY.
2012-03-11 21:39:14 +01:00
Sven Hesse
c340159486 GOB: Extend ANIObject to also handle CMP sprite "animations" 2012-03-11 21:05:57 +01:00
Sven Hesse
4db94f805c GOB: Use the CMPFile class in ANIFile 2012-03-11 21:05:57 +01:00
Sven Hesse
b928d6dcb1 GOB: Use the CMPFile class in DECFile 2012-03-11 21:05:57 +01:00
Sven Hesse
17e3bfd42c GOB: Add a class for CMP sprites with RXY coordinates 2012-03-11 21:05:57 +01:00
Johannes Schickel
48efab4e5a COMMON: Rename SafeSubReadStream to SafeSeekableSubReadStream.
It actually inherits from SeekableSubReadStream, so it should be named
accordingly.
2012-03-11 00:51:20 +01:00
Fabio Battaglia
b918149e6b GOB: Add detection entry for Italian playtoons2 2012-03-01 18:43:41 +01:00
Max Horn
367131ef0e COMMON: Move Language and Platform functionality into separate files 2012-02-26 15:21:36 +01:00
Eugene Sandulenko
54c87f20e3 Merge pull request #189 from fingolfin/cleanup
ALL: Cleanup
2012-02-23 23:55:45 -08:00
Johannes Schickel
442bcb7d3e ALL: Fix some signed/unsigned comparison warnings. 2012-02-22 20:20:55 +01:00
Max Horn
9628913cdc GOB: Fix type conversion warning 2012-02-22 18:26:38 +01:00
Sven Hesse
885a29a1de GOB: Fix a segfault 2012-01-29 00:12:11 +01:00
Sven Hesse
2f7ae1109b GOB: Add a cheat debug command
- Cheat the Diving minigame to a win
- Get the mastermind solution
2012-01-29 00:10:11 +01:00
Sven Hesse
caeae1a7d6 GOB: Pick the pearl at the right frame of the animation
And make the pearl picking a bit less...picky.
2012-01-28 23:29:47 +01:00
Sven Hesse
1eb7c7507b GOB: Minor cleanup 2012-01-28 22:55:12 +01:00
Sven Hesse
0627a4244d GOB: Play the lungs animation when breathing 2012-01-28 22:29:19 +01:00
Sven Hesse
9fba98415d GOB: Don't play a hurt animation right before Oko dies 2012-01-28 20:09:58 +01:00
Sven Hesse
c161cc1232 GOB: Fade the Diving minigame in 2012-01-28 20:08:13 +01:00
Sven Hesse
c0d0792ccf GOB: End the Diving minigame when Oko is dead 2012-01-28 19:55:55 +01:00
Sven Hesse
4b60a761a0 GOB: Explicitely set the Diving palette 2012-01-28 19:53:26 +01:00
Sven Hesse
3a95cdf961 GOB: Correct the variable value for the Diving result 2012-01-28 19:45:27 +01:00
Sven Hesse
0eeae6e59e GOB: Oko gets hurt by fish and dies if health == 0 2012-01-28 19:45:02 +01:00
Sven Hesse
60306c40ac GOB: If there's no air left, Oko dies 2012-01-28 18:03:00 +01:00
Sven Hesse
7650fca040 GOB: Air gets used up and is refilled by breathing 2012-01-28 17:46:38 +01:00
Sven Hesse
9dd7035327 GOB: Add the air and health meters in Geisha's Diving minigame 2012-01-28 17:46:38 +01:00
Sven Hesse
0fd9abfe01 GOB: Play the correct animation when Oko's picking up pearls 2012-01-27 15:07:26 +01:00
Sven Hesse
cf45f49f72 GOB: Picking up pearls 2012-01-27 14:55:32 +01:00
Sven Hesse
8414627216 GOB: Play Oko's breathing sound 2012-01-27 14:45:41 +01:00
Sven Hesse
9d348f46ad GOB: Add a controlable Oko to Geisha's Diving minigame
Still missing:
  - Air, constantly decreasing, fill up with breathing
  - Health, decreases by collision with evil fish
  - Death, when health == 0
  - Picking up pearls
2012-01-27 14:27:16 +01:00
Sven Hesse
e0209358b7 GOB: Add pearls scrolling by on the ocean floor 2012-01-26 21:13:38 +01:00
Sven Hesse
a19eb26485 GOB: Add the background plants in Geisha's Diving minigame 2012-01-26 19:47:03 +01:00
Strangerke
bab4b6f729 LAUNCHER: Introduce GUIO0() in order to replace GUIO1(GUIO_NONE) 2011-11-16 22:38:58 +01:00
Sven Hesse
d43af8da79 GOB: Fix a very stupid typo in the pathfinder 2011-11-03 17:01:54 +01:00
Sven Hesse
c66afb213b GOB: Fix analyser warnings regarding sprintf() parameter signness 2011-11-03 17:01:54 +01:00
Torbjörn Andersson
a010038492 JANITORIAL: Remove unnecessary semicolons 2011-10-29 11:23:44 +02:00
Strangerke
ee9b0ae7bf LAUNCHER: Add GUIO_NOASPECT to gob 2011-10-23 21:47:16 +02:00
Eugene Sandulenko
32972a5ffb AD: Switched rest of the engines to new GUIO 2011-10-23 17:53:13 +01:00
Sven Hesse
a1825e4d02 GOB: At the decorative fishes in the Diving minigame 2011-09-18 17:02:45 +02:00
Sven Hesse
679fc75408 GOB: Fix a stupid mistake regarding enum MouseButtons 2011-09-16 14:52:52 +02:00
Sven Hesse
a607247262 GOB: Randomize when the evil fishes enter and leave 2011-09-15 21:24:08 +02:00
Sven Hesse
79f2bb52b6 GOB: Randomize evil fish positions 2011-09-15 21:24:08 +02:00
Sven Hesse
3fe3a49283 GOB: Make sure that the evil fish don't drift up/down 2011-09-15 21:24:08 +02:00
Matthew Hoops
bf560908c3 GOB: Fix a typo 2011-09-15 12:10:13 -04:00
Sven Hesse
16bbc07690 GOB: Don't explicitly open CD1.ITK for Urban Runner
CD1.ITK is the one CD archive file the Urban Runner scripts open
themselves in NO_CD mode. Since the PSP has extremely limited file
handles, having that archive opened twice makes the load code fail
on that device.

Hopefully, the scripts don't decide to close and not reopend CD1.ITK
in places where it's needed. A full playthrough with loading/saving
between screens (especially across CD content borders, and during
death screens) would probably be prudent.
2011-09-15 17:36:55 +02:00
Sven Hesse
1998ab500e GOB: Tell Geisha that we have no AdLib
The title music is then played from SND files instead of
MDY/TBR files (that we still don't yet support).
2011-09-14 21:42:18 +02:00
Sven Hesse
c6bb055941 GOB: Play the shooting sound in the Diving minigame 2011-09-14 20:43:06 +02:00
Sven Hesse
6c259c5d66 GOB: Randomize the evil fish types 2011-09-14 20:31:50 +02:00
Sven Hesse
2edfb693be GOB: Add EvilFish::mutate()
Changing a fish into a different fish type
2011-09-14 20:07:17 +02:00
Sven Hesse
5caf4ac400 GOB: Implement the fish shooting part of the Diving minigame 2011-09-14 18:54:28 +02:00
Sven Hesse
e21b1af568 GOB: Add ANIObject::rewind() 2011-09-14 18:54:28 +02:00
Sven Hesse
a43794b9c4 GOB: Add ANIObject animation mode
Play the animation continuously or only once.
2011-09-14 18:54:28 +02:00
Sven Hesse
ac3593c631 GOB: Init "Diving" cursor 2011-09-14 18:54:28 +02:00
Sven Hesse
00a5ccfce0 GOB: Add stubby "Diving" white pearl drawing 2011-09-14 18:54:28 +02:00
Sven Hesse
358f55db40 GOB: Add stubby "Diving" black pearl drawing 2011-09-14 18:54:27 +02:00
Sven Hesse
918fe978e2 GOB: Add ANIObject::setPause() 2011-09-14 18:54:27 +02:00
Sven Hesse
96961b2c2d GOB: More const correctness 2011-09-14 18:54:27 +02:00
Johannes Schickel
44068338e5 GOB: Made some static data const. 2011-09-08 20:03:30 +02:00
Strangerke
b60a706751 JANITORIAL: Fix some formatting glitches in gob, hugo and toon 2011-09-08 07:55:40 +02:00
Johannes Schickel
b92a087857 GOB: Remove unused include. 2011-09-06 14:34:07 +02:00
Sven Hesse
7f5f9c9f91 GOB: Stub classes for Geisha's Diving and Penetration minigames 2011-09-03 18:00:09 +02:00
Sven Hesse
26dd2f5f60 GOB: Move keyPressed() to Util 2011-09-03 18:00:09 +02:00
Sven Hesse
dbb70e3d6f GOB: Add class Geisha::EvilFish
An "evil" fish in Geisha's "Diving" minigame.
2011-09-03 18:00:09 +02:00
Sven Hesse
220fc2b593 GOB: Add class ANIObject
Controls an animation stored within an ANI file.
2011-09-03 18:00:09 +02:00
Sven Hesse
a4f42017d7 GOB: Add class ANIFile
Handles ANI files, describing animations.
Used in hardcoded "actiony" parts of gob games, like
Geisha's minigames.
2011-09-03 18:00:09 +02:00
Sven Hesse
37964e8e85 GOB: Add class DECFile
Handles DEC files, describing "decals" (backgrounds).
Used in hardcoded "actiony" parts of gob games, like
Geisha's minigames.
2011-09-03 18:00:09 +02:00
Sven Hesse
2985f118b8 GOB: Add class RXYFile
Handles RXY files, containing relative sprite coordinates.
Used in hardcoded "actiony" parts of gob games, like
Geisha's minigames.
2011-09-03 18:00:09 +02:00
Sven Hesse
44b83551aa GOB: Add the Amiga version of Geisha 2011-09-03 18:00:08 +02:00
Sven Hesse
cceaa04ef2 GOB: Make Util::setExtension() not add an extension to an empty string 2011-09-03 18:00:08 +02:00
Sven Hesse
eebd5a28f9 GOB: Add Util::readString() 2011-09-03 18:00:08 +02:00
Sven Hesse
b516e4f440 GOB: Add a workaround for some of Geisha's textboxes
Geisha often displays text while it loads a new TOT.
Back in the days, this took long enough so that the text
could be read. Since this isn't the case anymore, we'll
wait for the user to press a key or click the mouse.
2011-08-29 14:10:10 +02:00
Sven Hesse
5f4dad1a6d GOB: Fix the display length of "You can't use that" texts in Geisha 2011-08-29 09:47:46 +02:00
Sven Hesse
dfe9fc05aa GOB: Implement saving/loading for Geisha 2011-08-29 01:37:57 +02:00
Sven Hesse
fcadd5a56d GOB: Fix Geisha's hotspot checks 2011-08-28 21:54:43 +02:00
Sven Hesse
8c69d64678 GOB: Fix a potential input box bug 2011-08-28 21:54:42 +02:00
Sven Hesse
5b25fc3e25 GOB: Fix language inconsistencies in Geisha 2011-08-28 21:54:42 +02:00
Sven Hesse
5dd26b9a36 GOB: Add cheat output for Geisha's mastermind 2011-08-26 11:50:37 +02:00
Sven Hesse
5bcb89852f GOB: Add a console command to dump the whole variable space 2011-08-26 11:50:37 +02:00
Sven Hesse
cdc86c6f67 GOB: Add oGeisha_checkData 2011-08-26 09:17:51 +02:00
Sven Hesse
8fd8c913af GOB: Implement oGeisha_caress1 and oGeisha_caress2
Used in the Mastermind minigame in Chapter 2: Caress
2011-08-26 09:11:11 +02:00
Sven Hesse
3062bc1df6 GOB: Stub the Geisha minigame "Diving" 2011-08-26 08:20:19 +02:00
Sven Hesse
e05e18d8bd GOB: Stub the Geisha minigame "Penetration" 2011-08-26 08:15:47 +02:00
Sven Hesse
6a9271b6cf GOB: Oops, don't skip vital parts of the script
The paramater count is already read in oGeisha_goblinFunc...
2011-08-26 08:11:24 +02:00
Sven Hesse
a3bc17296b GOB: Add Geisha AdLib music opcodes
adlibPlay() is commented out for now, until Strangerke fixes the
MDYPlayer. :P
2011-08-26 07:47:37 +02:00
Sven Hesse
e20b90543d GOB: Fix the Geisha cursor 2011-08-26 06:09:56 +02:00
Sven Hesse
479eeb7e47 GOB: Actually, we do support 16 color fading 2011-08-26 05:00:28 +02:00
Sven Hesse
225f0ad3dc GOB: Fix EGA palette animation
The Geisha intro is now watchable
2011-08-26 04:45:34 +02:00
Sven Hesse
24929c9990 GOB: Add inter_geisha.cpp and implement oGeisha_loadSound
Geisha's intro shows now (with glitches, palette animation fail?) and
the game is playable.
2011-08-26 04:10:46 +02:00
Sven Hesse
ba84788bda GOB: Geisha seems to be EGA-only
The menu in Geisha shows now. It crashes when something is clicked
though; the loadSound opcode is probably different.
2011-08-26 01:53:16 +02:00
Sven Hesse
c57fd31246 GOB: Fix 0OT resource loading, used in Geisha
0OT are compressed TOT files. The compression flag in the STK header
is *not* set, and 0OT files are compressed in chunks, not as a whole.
2011-08-26 01:53:16 +02:00
Christoph Mallon
23a0f5318c JANITORIAL: Remove trailing empty lines. 2011-08-07 13:53:33 +02:00
Sven Hesse
a852f30fb2 GOB: Add a workaround for bug #3376547 (gob3 footstep sound) 2011-07-25 18:47:31 +02:00
Sven Hesse
74e43312f7 GOB: Fix missing sound effects in Woodruff (bug #3374170)
Another regression of the CoktelDecoder rewrite.
Thanks to digitall for finding the offending commit. :)
2011-07-23 15:39:38 +02:00
Max Horn
88913c0139 ALL: Remove trailing whitespaces
This tries to make our code a bit more compliant with our code formatting
conventions. For future use, this is the command I used:
  git ls-files "*.cpp" "*.h" | xargs sed -i -e 's/[ \t]*$//'
2011-06-20 00:59:48 +02:00
Max Horn
d9a996e6ef DETECTOR: Change ADFileBasedFallback::desc to ADGameDescription pointer 2011-06-14 18:52:12 +02:00
Max Horn
01f806c2db DETECTOR: Treat file based fallback like any other fallback method 2011-06-14 18:52:11 +02:00
Max Horn
593b929047 DETECTOR: Separate code for handling obsolete gameids from advanced detector
This includes a renaming of ADObsoleteGameID to Engine::ObsoleteGameID,
and AdvancedDetector::findGameID now is Engines::findGameID.

Doxygen comments were added or improved
2011-06-14 18:52:07 +02:00
Max Horn
7c992d6598 DETECTOR: Merge ADParams into AdvancedMetaEngine 2011-06-14 18:17:01 +02:00
Thierry Crozat
06bbb57ad7 I18N: Make many more GUI MessageDialog strings translatable 2011-06-13 22:19:18 +01:00
Max Horn
a89f9ca31c GOB: Switch to alternate AdvancedMetaEngine, avoid ADParams 2011-06-10 22:15:42 +02:00
Max Horn
4827cc914a ENGINES: Change incorrect use of 'target' to 'gameid' 2011-06-10 22:15:40 +02:00
D G Turner
8356656575 GOB: Replace snprintf() usage with Common::String::format()
Safer and less portability issues.
2011-06-02 02:20:51 +01:00
Matthew Hoops
eea482fa43 ALL: behaviour -> behavior 2011-05-25 10:50:46 -04:00
Max Horn
4cbe4ede66 COMMON: Registers RandomSources in constructor with the event recorder
This also removes the dependency of engines on the event recorder header
and API, and will make it easier to RandomSources that are not properly
registered.
2011-05-17 12:17:26 +02:00
Sven Hesse
d47eceeb2f GOB: Add a non-interactive Adibou2 demo 2011-05-16 20:37:44 +02:00
Thierry Crozat
3c59e37035 ENGINES: Unify engine names
This unifies the engine names in MetaEngine::getName() and the
credits. In particular drop "Engine" or "engine" from the names when
it was present and use expanded names in credits when the
MetaEngine uses it (e.g. "Beneath a Steel Sky" instead of "BASS").
2011-05-16 00:11:32 +01:00
strangerke
69b1485a22 GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02:00
Sven Hesse
6fb232b9ff GOB: Create a SafeSubReadStream for files in STKs
Instead of memcpy'ing them into a MemoryReadStream.
This is necessary for the lower end PSPs to run Urban Runner with
its comparably big VMD videos.
2011-05-06 16:47:49 +02:00
Sven Hesse
8e03a200ef GOB: Fix a stupid typo in SlotFileIndexed::buildIndex()
This should fix bug #3295893.

The intention of this piece of code was to pad the first save slot
name with spaces until it's as long as the longest save slot name,
because the scripts use it to gauge the width of the save list.
Unfortunately, I messed up there, overwriting variable space directly
after the save names. In Urban Runner's case, this would be the list
of inventory items.
2011-05-05 20:50:53 +02:00
Sven Hesse
db22f32a44 GOB: Add another Italian Fascination version
As supplied by alex86r in bug report #3297633.
2011-05-04 21:20:27 +02:00
Sven Hesse
31818ad4fd GOB: Add another Italian Urban Runner version
As supplied by alex86r in bug report #3297602.
2011-05-04 21:14:19 +02:00
Sven Hesse
a1c339ea4f GOB: Don't overwrite _destSpriteX after PRINTTEXT
Don't overwrite _destSpriteX after PRINTTEXT with a value that's only
appropriate for monospaced fonts; support for non-monospaced fonts
has been introduced with Woodruff.

This should fix bug #3295889.
2011-05-04 02:34:37 +02:00
Sven Hesse
30f7cdb49a GOB: Plug a leak
Thanks to digitall for finding that one
2011-05-04 01:26:10 +02:00
Johannes Schickel
71bdb86e02 Merge pull request #16 "Add a PixelFormat to Graphics::Surface.".
For further discussion check here:
https://github.com/scummvm/scummvm/pull/16

Conflicts:
	graphics/png.cpp
2011-05-01 16:54:45 +02:00
Ori Avtalion
9414d7a6e2 JANITORIAL: Reduce header dependencies in shared code
Some backends may break as I only compiled SDL
2011-04-28 15:08:58 +03:00
Ori Avtalion
cd6ee0589d JANITORIAL: Format forward declarations to follow convention 2011-04-28 12:20:34 +03:00
Sven Hesse
804f0f3e47 GOB: Shut up VS2010 code analysis warning 2011-04-20 23:10:00 +02:00
Johannes Schickel
ca81ab1a4c GOB: Do not access Surface::bytesPerPixel anymore. 2011-04-17 20:56:16 +02:00
Max Horn
0ce2ca4e00 COMMON: Replace MKID_BE by MKTAG
MKID_BE relied on unspecified behavior of the C++ compiler,
and as such was always a bit unsafe. The new MKTAG macro
is slightly less elegant, but does no longer depend on the
behavior of the compiler.
Inspired by FFmpeg, which has an almost identical macro.
2011-04-12 16:53:15 +02:00
dhewg
d83a83ef50 JANITORIAL: Remove/comment unused vars
Found by GCC 4.6's -Wunused-but-set-variable
2011-03-29 21:57:56 +02:00
Sven Hesse
f5fb832b63 GOB: Use memmove instead of memcpy in Surface::blit()
Inca 2 actually blits surfaces on themselves...
2011-03-29 12:32:30 +02:00
Sven Hesse
e6c8d151f9 GOB: Add another US version of Urban Runner
As supplied by Collector9 in bug report #3228040
2011-03-20 10:14:31 +01:00
Sven Hesse
27e2201ce2 GOB: Fix Urban Runner fallback feature flags 2011-03-20 10:09:27 +01:00
dhewg
3eda4c16ac GOB: Init volume levels on startup 2011-03-19 16:04:52 +01:00
Sven Hesse
004df22752 GOB: Add an Italian version of Urban Runner
As supplied by "Alex" on my Gobsmacked blog:
<http://drmccoy.de/gobsmacked/?p=407&cpage=1#comment-2070>
2011-03-18 21:24:50 +01:00
Ori Avtalion
765540a5fd GOB: Avoid hiding overloaded virtual methods 2011-02-26 20:25:44 +02:00
Johannes Schickel
04d4162357 GOB: Adapt to setPalette RGBA->RGB change. 2011-02-14 17:08:32 +01:00
Max Horn
42ab839dd6 AUDIO: Rename sound/ dir to audio/
svn-id: r55850
2011-02-09 01:09:01 +00:00
Max Horn
2d1c8a3533 ALL: Fix whitespaces / indention
svn-id: r55818
2011-02-07 23:01:06 +00:00
Max Horn
357c225f64 VIDEO: Rename VideoDecoder::load() to loadStream()
svn-id: r55810
2011-02-07 17:54:16 +00:00
Max Horn
ab039812e7 COMMON: OSystem now has a PaletteManager
svn-id: r55806
2011-02-07 17:52:38 +00:00
Sven Hesse
94b6d23d44 GOB: Silence a compiler warning
svn-id: r55771
2011-02-04 16:16:07 +00:00
Sven Hesse
e3ceff83f4 GOB: Add the "envir" directory to the search path for Adibou
svn-id: r55770
2011-02-04 15:55:54 +00:00
Sven Hesse
b6d2e521c5 GOB: Add oPlaytoons_loadMultObject
svn-id: r55769
2011-02-04 15:55:20 +00:00
Sven Hesse
0efcd484ea GOB: Implement case -2 for oPlaytoons_getObjAnimSize
svn-id: r55768
2011-02-04 15:54:52 +00:00
Sven Hesse
6a99b6f340 GOB: Add Inter::readValue()
svn-id: r55767
2011-02-04 15:54:21 +00:00
Sven Hesse
209f5bd77e GOB: Move storeValue/storeString to class Inter
svn-id: r55766
2011-02-04 15:53:44 +00:00
Sven Hesse
80bfecb625 GOB: Fix a regression that broke Lost in Time
svn-id: r55760
2011-02-03 20:51:59 +00:00
Sven Hesse
b9b8b4d3eb GOB: Oops, set the correct opcode :P
svn-id: r55739
2011-02-02 19:56:24 +00:00
Sven Hesse
c3e7b03b46 GOB: Add o7_findCDFile
Stubbing that for now

svn-id: r55738
2011-02-02 19:53:22 +00:00
Sven Hesse
c1967c1a0a GOB: Add o7_gob0x201
svn-id: r55737
2011-02-02 19:52:47 +00:00
Sven Hesse
1d38568bc1 GOB: Fix detection of JPEG images
Thanks, clone :P

svn-id: r55735
2011-02-02 17:28:28 +00:00
Sven Hesse
fed0adacb7 GOB: Close the just ended live video, not the first one
svn-id: r55734
2011-02-02 17:03:14 +00:00
Sven Hesse
3d0edd71c9 GOB: Implement o7_loadLBMPalette
svn-id: r55733
2011-02-02 16:51:31 +00:00
Sven Hesse
63c6d4432c GOB: Implement LBM loading
svn-id: r55732
2011-02-02 16:50:57 +00:00
Sven Hesse
729be647a0 GOB: o7_draw0xA4 is o7_loadLBMPalette
Stubbing that one for now.

svn-id: r55731
2011-02-02 16:50:23 +00:00
Sven Hesse
b9b7b449b9 GOB: Stub o7_loadImage further
svn-id: r55730
2011-02-02 16:49:49 +00:00
Sven Hesse
812680d187 GOB: Rename Draw::kSpritesCount to Draw::kSpriteCount
svn-id: r55729
2011-02-02 16:49:20 +00:00
Sven Hesse
113d5a5a9a GOB: Make flags optional in Video::initSurfDesc
svn-id: r55728
2011-02-02 16:48:46 +00:00
Sven Hesse
076b9c9e53 GOB: Remove the vidMode parameter from Video::initSurfDesc
svn-id: r55727
2011-02-02 16:48:04 +00:00
Sven Hesse
e3713746a0 GOB: Fix Databases constructor
Ooops, a leftover I forgot to remove.

svn-id: r55717
2011-02-02 14:15:13 +00:00
Sven Hesse
5c1e21818a GOB: o7_draw0xA4 has something to do with LBMs, though
svn-id: r55695
2011-01-31 21:02:13 +00:00
Sven Hesse
a3a51efa80 GOB: Actually, draw opcode 0x90 is loadImage
Not just loadLBM. The image can be a TGA, LBM, BRC, BMP or JPEG.

svn-id: r55694
2011-01-31 21:01:50 +00:00
Sven Hesse
1c1cfaf867 GOB: Set the language before opening the database
svn-id: r55693
2011-01-31 20:43:04 +00:00
Sven Hesse
a29282eefd GOB: Fix last updated month's range
svn-id: r55692
2011-01-31 20:42:41 +00:00
Sven Hesse
b874396219 GOB: o7_draw0x45 is o7_logString
svn-id: r55691
2011-01-31 20:42:16 +00:00
Sven Hesse
7cb4b49db9 GOB: Fix a compiler warning
svn-id: r55684
2011-01-31 14:08:33 +00:00
Sven Hesse
a8d62921c7 GOB: Fix text end positons for non-monospaced fonts
Fixes Adibou's recipices.

svn-id: r55682
2011-01-31 13:29:19 +00:00
Sven Hesse
9810ec1442 GOB: Make Font::_itemSize unsigned
This fixes a font drawing error in Adibou.

svn-id: r55681
2011-01-31 13:28:55 +00:00
Sven Hesse
b187551a01 GOB: Add support for dBase III files
Implementing o7_opendBase, o7_closedBase and o7_getDBString

svn-id: r55676
2011-01-31 10:49:43 +00:00
Sven Hesse
0f0dbe7b78 GOB: o7_draw0xC4 is o7_closedBase; o7_draw0xC6 is o7_getDBString
Stubbing those for now

svn-id: r55675
2011-01-31 10:49:03 +00:00
Sven Hesse
f8d61c9e55 GOB: Work around the unimplemented copyFile :P
svn-id: r55654
2011-01-30 13:14:54 +00:00
Sven Hesse
c88ee19478 GOB: Stub some Adibou mult stuff
svn-id: r55653
2011-01-30 13:14:32 +00:00
Sven Hesse
fc59e0b6b3 GOB: Add o7_playVmdOrMusic
svn-id: r55648
2011-01-30 00:04:04 +00:00
Sven Hesse
e4a9cafab8 GOB: Add a sanity check to the copyFile stub
svn-id: r55647
2011-01-30 00:03:35 +00:00
Sven Hesse
4588d4cc97 GOB: Add Inter_Playtoons::readSprite()
svn-id: r55646
2011-01-30 00:03:12 +00:00
Sven Hesse
c498d70dd2 GOB: Change SPRITES_COUNT into a const
svn-id: r55645
2011-01-30 00:02:42 +00:00
Sven Hesse
0793e5c0a3 GOB: Adibou has background atmosphere
svn-id: r55644
2011-01-30 00:02:14 +00:00
Sven Hesse
d635c7b950 GOB: Fix Inter_v6::probe16bitMusic()
svn-id: r55643
2011-01-30 00:01:43 +00:00
Sven Hesse
4e66280388 GOB: Implement o7_loadFunctions and o7_callFunction
svn-id: r55640
2011-01-29 22:50:41 +00:00
Sven Hesse
078162c665 GOB: Add setExtension()
svn-id: r55639
2011-01-29 22:50:11 +00:00
Sven Hesse
ec288c0603 GOB: Rename loadGroups/callGroup to loadFunctions/callFunctions
svn-id: r55638
2011-01-29 22:49:40 +00:00
Sven Hesse
993a543432 GOB: Add Inter_Playtoons::getFile()
svn-id: r55637
2011-01-29 22:49:15 +00:00
Sven Hesse
ffc4af820f GOB: _environments doesn't need to be a pointer
svn-id: r55636
2011-01-29 22:48:44 +00:00
Sven Hesse
d2c9893327 GOB: Remove the long obsolete inter_execPtr
svn-id: r55635
2011-01-29 22:48:18 +00:00
Sven Hesse
65bc46d3ab GOB: Add Script::evalInt() and Script::evalString()
svn-id: r55634
2011-01-29 22:47:53 +00:00
Sven Hesse
40bf0286a1 GOB: Rename Script::evalBoolResult() to Script::evalBool()
svn-id: r55633
2011-01-29 22:47:14 +00:00
Sven Hesse
b54416b46e GOB: Stub o7_loadGroups
svn-id: r55632
2011-01-29 22:46:41 +00:00
Sven Hesse
9b9c34a378 GOB: o7_draw0x59 is o7_callGroup
svn-id: r55631
2011-01-29 22:46:16 +00:00
Sven Hesse
ce3d4b5d1b GOB: Add GobEngine::isCurrentTot()
svn-id: r55630
2011-01-29 22:45:51 +00:00
Sven Hesse
0c3a33c354 GOB: Change _curTotFile and _totToLoad into Common::String
svn-id: r55629
2011-01-29 22:45:15 +00:00
Sven Hesse
05d5d64d6c GOB: Rename "skipPlay" to "function" in playTot
svn-id: r55628
2011-01-29 22:44:36 +00:00
Sven Hesse
14678f059b GOB: Move OpcodeFunc's return flag into its parameter
To make the meaning of the flag more clear and make the func
opcodes more similar to draw and gob opcodes.

svn-id: r55627
2011-01-29 22:44:06 +00:00
Torbjörn Andersson
128e36275d GOB: Remove unnecessary semicolon
svn-id: r55609
2011-01-29 09:56:23 +00:00
Sven Hesse
03adf7fdf6 GOB: Only draw text when coordinates are within the surface
svn-id: r55575
2011-01-27 21:12:27 +00:00
Sven Hesse
261a640a93 GOB: Stop drawing a letter on surface boundaries
svn-id: r55574
2011-01-27 20:50:43 +00:00
Sven Hesse
6513748c46 GOB: Add Pixel::isValid() and ConstPixel::isValid()
svn-id: r55573
2011-01-27 20:50:18 +00:00
Sven Hesse
ecd2e0f3a0 GOB: Add sanity checks to Pixel and ConstPixel
svn-id: r55571
2011-01-27 20:38:58 +00:00
Sven Hesse
eb3667d7c9 GOB: Implement backuping of sprites, sounds, fonts in totSub
svn-id: r55565
2011-01-27 13:27:58 +00:00
Sven Hesse
95ed10adde GOB: Add SoundDesc::swap()
svn-id: r55564
2011-01-27 13:27:29 +00:00
Sven Hesse
20d74edf8b GOB: Add o7_draw0x59 stub
svn-id: r55563
2011-01-27 13:27:04 +00:00
Sven Hesse
e237ff3628 GOB: Some Addy gameflow stubs
svn-id: r55562
2011-01-27 13:26:34 +00:00
Sven Hesse
437a3eb63b GOB: Add 2 Addy 4 base fake save handlers
svn-id: r55553
2011-01-26 19:05:36 +00:00
Sven Hesse
1d59d3ecb0 GOB: Another fake Addy 4 save handler
svn-id: r55552
2011-01-26 19:05:04 +00:00
Sven Hesse
efdcf921ea GOB: Another fake file path
svn-id: r55551
2011-01-26 19:04:42 +00:00
Sven Hesse
d71125dc21 GOB: Use a fake cursor for Addy for now :P
svn-id: r55550
2011-01-26 19:04:24 +00:00
Sven Hesse
7a41cd7fa9 GOB: Add stub save handlers for Addy 4 (Grundschule)
svn-id: r55549
2011-01-26 19:04:03 +00:00
Sven Hesse
f23b4af682 GOB: Increase kFontCount for Addy
svn-id: r55548
2011-01-26 19:03:37 +00:00
Sven Hesse
a2afc0f4d1 GOB: Check font index for kFontCount
svn-id: r55547
2011-01-26 19:03:13 +00:00
Sven Hesse
2c2476b203 GOB: Add a small playTot change for Addy
svn-id: r55546
2011-01-26 19:02:39 +00:00
Sven Hesse
1686ecdf83 GOB: Increase kEnvironmentCount to 20 for Addy
svn-id: r55545
2011-01-26 19:02:20 +00:00
Sven Hesse
e5f9eb30d3 GOB: o7_draw0x93 is o7_setVolume
svn-id: r55544
2011-01-26 19:01:42 +00:00
Sven Hesse
a3baa1874a GOB: Add a sanity check to o1_freeFont
svn-id: r55537
2011-01-25 15:14:07 +00:00
Sven Hesse
e3f1d02044 GOB: Add o7_zeroVar and partially implement draw0x89
svn-id: r55536
2011-01-25 15:13:37 +00:00
Sven Hesse
330acb2168 GOB: Add a sanity check assert()
svn-id: r55535
2011-01-25 14:20:47 +00:00
Sven Hesse
e32c9a10bf GOB: Implement getting/setting values from INI files
Setting is non-permanent for now

svn-id: r55534
2011-01-25 14:20:19 +00:00
Sven Hesse
f01b8b98a4 GOB: Add a small manager for INI configs
svn-id: r55533
2011-01-25 14:19:52 +00:00
Sven Hesse
3e5cd6d9de GOB: o7_draw0x8A is o7_findFile()
svn-id: r55531
2011-01-25 13:00:58 +00:00
Sven Hesse
bf60f06105 GOB: Add a workaround for taking the music sheet from Dr. Dramish's car
svn-id: r55530
2011-01-25 13:00:38 +00:00
Sven Hesse
d1b53b1b81 GOB Add save stubs for Addy Junior
svn-id: r55529
2011-01-25 12:14:31 +00:00
Sven Hesse
0432ca6d0f GOB: Add a FakeFileHandler
For temporarily storing save "files"

svn-id: r55528
2011-01-25 12:14:05 +00:00
Sven Hesse
ff13458eb7 GOB: o7_draw0x57 is o7_intToString
svn-id: r55527
2011-01-25 12:13:42 +00:00
Sven Hesse
c8f58b4e19 GOB: o7_draw0x0D is o7_loadCursor
Not implemented yet, because they're in cursor32.dll as PE resources...

svn-id: r55526
2011-01-25 11:01:51 +00:00
Sven Hesse
e5304457b4 GOB: Add o7_oemToANSI
I don't think that we'll need that :P

svn-id: r55522
2011-01-25 03:44:34 +00:00
Sven Hesse
2ce333bf16 GOB: o7_draw0xA1 is o7_getINIValue
svn-id: r55521
2011-01-25 03:44:07 +00:00
Sven Hesse
64da68cb0d GOB: Adi 4 should get a Inter_v7 too
svn-id: r55518
2011-01-25 02:52:19 +00:00
Sven Hesse
a875901485 GOB: o7_draw0x90 is o7_loadLBM
Stubbed for now

svn-id: r55517
2011-01-25 02:51:51 +00:00
Sven Hesse
c293eb6073 GOB: o7_draw0xC4 is o7_opendBase
Not implemented for now, of course

svn-id: r55516
2011-01-25 02:51:26 +00:00
Sven Hesse
c8997d0ef8 GOB: o7_draw0x44 is o7_displayWarning
svn-id: r55515
2011-01-25 02:50:56 +00:00
Sven Hesse
0b5af778b0 GOB: o7_draw0x8C is o7_getSystemProperty
svn-id: r55514
2011-01-25 02:50:26 +00:00
Sven Hesse
1a44ed588f GOB: Some more Addy stubs
svn-id: r55509
2011-01-25 01:28:31 +00:00
Sven Hesse
176e49975c GOB: Adding stubs for Addy
svn-id: r55508
2011-01-25 00:50:26 +00:00
Sven Hesse
9eea8c6bca GOB: Wait for the exact moment of the video sound's end
This should fix all cut-off sound issues in Urban Runner

svn-id: r55503
2011-01-24 14:10:15 +00:00
Sven Hesse
d706ab3ee8 GOB: Urban: Write intro.0xx to file too
This fixes retrying after dying in the Secret Room.

svn-id: r55496
2011-01-24 10:31:19 +00:00
Sven Hesse
9b31b9c214 GOB: Fix a clipping issue
svn-id: r55481
2011-01-23 20:16:24 +00:00
Eugene Sandulenko
caa6684752 VIDEO: Move video classes to Video:: namespace
svn-id: r55479
2011-01-23 19:08:09 +00:00
Eugene Sandulenko
806ccf5d25 GRAPHICS: Move graphics/video/ to video/. Step 1/2
svn-id: r55473
2011-01-23 17:14:43 +00:00
Sven Hesse
ccd5129588 GOB: Pass engine pause to the VideoPlayer and decoders
Entering the GMM or the debug console during a video will not
mess up audio/video sync anymore.

svn-id: r55466
2011-01-23 15:33:30 +00:00
Sven Hesse
411d41d3d0 GOB: Change the NOCD workaround for Urban Runner a bit
Seems like the game does close the CD1.ITK too, so we just
open all ITKs right at the start, lest it might blow up when
it wants to close the top ITK and that's actually CD4.

svn-id: r55461
2011-01-23 11:00:57 +00:00
Sven Hesse
00cabdad11 GOB: Only let one video with sound play at a time
svn-id: r55444
2011-01-22 19:37:25 +00:00
Sven Hesse
0722df9472 GOB: Hacking in multiple live videos
Needed for Bambou. The narrator voice and the "Do you want to quit?"
voices are live videos that should continue while the live video
buttons are playing.

svn-id: r55443
2011-01-22 19:28:23 +00:00
Sven Hesse
5b4183fa27 GOB: Or actually, *this* should be the correct loop flag handling
svn-id: r55438
2011-01-22 17:19:58 +00:00
Sven Hesse
3f162962aa GOB: Oops, -10 = close video, < -10 = looping
svn-id: r55437
2011-01-22 16:56:02 +00:00
Sven Hesse
7fee6f9740 GOB: Proper live video looping
Fixes the Yes/No robots in Bambou

svn-id: r55436
2011-01-22 16:48:51 +00:00
Sven Hesse
cbbafc962d GOB: Extend the good-measure wait to all videos with sound
Fixes a glitch in Bambou, where the intro movie is cut off to
soon.

svn-id: r55432
2011-01-22 16:29:54 +00:00
Sven Hesse
a8e6fa3346 GOB: Don't blit dirty rectangles while playing a live video
This fixes the inventory list flickering in live videos :)

svn-id: r55430
2011-01-22 15:39:52 +00:00
Sven Hesse
2bb8cf25df GOB: Force live videos onto the backSurface
Fixes some inventory list uglyness in live videos.
It still flickers when mousing over it though, and keeps popping
when mousing over the register during the hotel scene

svn-id: r55429
2011-01-22 15:06:12 +00:00
Sven Hesse
40a4b09246 GOB: Fix the save list width
The length of the slot 0 string determines the list's width

svn-id: r55426
2011-01-22 14:23:03 +00:00