Commit Graph
86 Commits
Author SHA1 Message Date
AndywinXp 7956cd19f9 SCUMM: HE: Fix Coverity #1544405 2024-04-29 19:44:01 +02:00
AndywinXp 35939dd19d SCUMM: HE: Fix warnings 2024-04-26 23:21:29 +02:00
AndywinXp 5ac8ea75a0 SCUMM: HE: Fix sub HE95 games not starting 2024-04-26 23:21:29 +02:00
AndywinXp 9d1ebb0cba SCUMM: HE: Fix TRLE AKOS cels not being erased 2024-04-26 23:21:29 +02:00
AndywinXp 86b9af993a SCUMM: HE: Re-implement AKOS TRLE drawing 2024-04-26 23:21:29 +02:00
AndywinXp 9dd2ea4e43 SCUMM: HE: Re-implement WIZ text and Aux images 2024-04-26 23:21:29 +02:00
AndywinXp b19c4b772d SCUMM: HE: Overhaul more of the GFX system
* Overhaul sprites system
* Fix compression routines for 8-bit graphics
* More fixes and clean-up
2024-04-26 23:21:29 +02:00
AndywinXp 8461f25218 SCUMM: Rename enhancementClassActive to enhancementEnabled 2023-11-08 11:46:06 +01:00
AndywinXp d5fa7aeb90 SCUMM: Mark all enhancements with their respective classes 2023-11-08 11:46:06 +01:00
BLooperZ df0a3a8fe2 SCUMM: Workaround line glitch in Freddi 3 2023-09-09 22:22:53 +02:00
AndywinXp 815e280da4 SCUMM: HE (Sound): Implement software mixer for all the other games
Sound now appears to play correctly for all HE games.
2023-08-18 22:20:45 +02:00
AndywinXp e457f75908 SCUMM: HE (Sound): Fix crashes in HE versions without sound modifiers
Also, fix early callback stuff and clean some other stuff up
2023-08-18 22:20:45 +02:00
AndywinXp f4455e773e SCUMM: Relabel part of the general sound code
Albeit not 100% necessary for rewriting the HE sound engine,
I decided to make this change in order to:
- Give proper meaning to magic numbers and variables
  which were given temporary names 20 years ago;
- Avoid going insane when making comparison with HE code
  and ours, when rewriting the sound code.
2023-08-18 22:20:45 +02:00
BLooperZ 1e51c121bd SCUMM: reuse majmin codec for smap 2022-11-18 13:53:12 +01:00
Donovan Watteau 5d5ba3470f SCUMM: Fix AkosCostumeLoader on big-endian hosts
Commit befd3b3511 introduced a regression
on big-endian systems, causing Guybrush to moonwalk and Wally to lose
his body in the first scene of COMI, for example.

`costumeFlags` must be read as a little-endian value, now that it it's
been confirmed to be an uint16 and not a byte, in the disasms.

Found after diff'ing the -fverbose-asm output of akos.cpp during a Git
bisect on a big-endian system.
2022-10-08 20:43:18 +02:00
AndywinXp befd3b3511 JANITORIAL: SCUMM: Costume renderer and AKOS labeling
This commit:
- Continues my AKOS relabeling task and adds some documentation and missing information;
- Renames the codec functions from codec1, codec5 and codec16 to something more expressive;
- Add '_' in front of private class members, when missing;
- Changes "v1" names (unnamed variables supposedly coming from Ghidra or similar tools...) to something more expressive;
- Renames related variables from foo_bar (or foobar) to fooBar (on costume.cpp, base-costume.cpp and akos.cpp).
2022-09-28 00:12:52 +02:00
D G Turner 527da1a3a9 SCUMM: Fix Minor Code Breakage in AKOS Refactoring
This generated a number of GCC compiler warnings regarding the comparison
to the enumerated type (which are mostly equivalent to uint, not byte).
2022-09-26 23:38:47 +01:00
AndywinXp 8f744954c3 JANITORIAL: SCUMM: Improve readability of AKOS code
This is part of an on-going effort on my end to document the AKOS code, and fix strange stuff
such as integers being used as booleans, and variable_names instead of variableNames
2022-09-27 00:14:26 +02:00
AndywinXp 7fb79ea697 SCUMM: AKOS: Document opcodes
It was getting painful to go through the AKOS system without proper opcodes documentation, so here it is.
This was checked against COMI and SCUMM HE code, for names consistency.
2022-09-26 19:07:07 +02:00
BLooperZ 3776b4c384 SCUMM: HE: dump costume script 2022-08-29 21:51:37 +02:00
BLooperZ d0a0070d85 SCUMM: FREDDI4: fix lipsync issues 2022-08-23 21:44:05 +03:00
BLooperZ 6884be9b7f Revert "SCUMM: FREDDI4: workaround lipsync issues in final scene"
This reverts commit 16955a15f1.
2022-08-23 21:44:05 +03:00
BLooperZ 16955a15f1 SCUMM: FREDDI4: workaround lipsync issues in final scene 2022-08-02 22:17:49 +02:00
Donovan Watteau 452afa29ed SCUMM: Remove the smallCostumeScaleTableAKOS workaround
This was an old workaround for GCC 3.4, but we don't support this
compiler anymore since we now require C++11.  This removes a hack and
saves some bytes.

This undoes commit a7a17969c3.
2022-05-25 19:07:30 +03:00
Eugene Sandulenko abea37c9bb ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Andrea Boscarino f731cfd648 SCUMM: DiMUSE: New Digital iMUSE Engine (#3368)
SCUMM: DiMUSE: Add new implementation of the engine
2021-11-16 00:05:18 +01:00
Orgad Shaneh ed5489929c SCUMM: Use nullptr
Using clang-tidy modernize-use-nullptr
2021-11-14 15:51:59 +02:00
athrxx 82c0b91975 SCUMM: whitespace 2021-08-03 21:14:32 +02:00
athrxx 4fe69dbf2e SCUMM: fix bug no. 12499 ("Curse of Monkey Island Sprite Vertical Colour Artifacts")
(regression from b542fad7)

The introduction of the skip_column variable caused skipping of columns that are actually meant to be drawn. The original interpreter has a similiar mechanism, but it only applies to colors that are translated via the shadow palette. This avoids recursive shading (pixels that already got translated via the shadow palette could get passed through the table again in case of horizontal scaling). I guess that is what b542fad7 actually meant to fix.
2021-08-03 20:26:59 +02:00
Cameron Cawley d02daaeb2b SCUMM: Remove direct use of Graphics::Surface from ARM code (#2931) 2021-05-04 00:17:52 +03:00
D G Turner 59b639ed4d SCUMM: Fix Missing Default Switch Cases
These are flagged by GCC if -Wswitch-default is enabled.
2019-12-23 11:56:16 +00:00
Sven Meier 64c54591c3 SCUMM: Workaround erroneous AKC_JUMP in German SPY Fox 3
Fixes Trac#3813 and makes this version of the game completable.
2018-06-23 13:50:57 +02:00
Johannes Schickel 3847465163 SCUMM: Make GPL headers consistent in themselves. 2014-02-18 02:39:38 +01:00
Johannes Schickel c05cb7f3bb SCUMM: Prefer getBasePtr over direct Surface::pixels access. 2013-08-03 02:52:31 +02:00
Max Horn b37463fe59 SCUMM: Move class ResourceManager to its own header 2011-05-13 11:47:08 +02:00
strangerke 69b1485a22 GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +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
Max Horn 3534cff8ef ALL: Fix indention (whitespaces -> tabs)
svn-id: r53738
2010-10-23 15:46:50 +00:00
Johannes Schickel 0ace80fed4 Fix for bug #2995282 "FT: Cavefish Hideout Chase (Failure Cutscene) Crash".
The bug itself is actually a regression from r43577, the merge
of the gsoc2009-16bit branch.

svn-id: r48987
2010-05-09 20:17:30 +00:00
Max Horn adaf3ec8b4 SCUMM: Rename _bitDepth to _bytesPerPixel
svn-id: r44336
2009-09-25 09:13:33 +00:00
Travis Howell 09845556e0 Revert revision 43410, and add alternative fix.
svn-id: r43416
2009-08-16 00:20:23 +00:00
Matthew Hoops 8e417b0884 Fix compile when compiling with --disable-he
svn-id: r43410
2009-08-15 14:50:21 +00:00
Travis Howell 9911c1bf59 Fix endian issue, the palette must be in little endian.
svn-id: r41184
2009-06-05 00:33:25 +00:00
Travis Howell fdbc49ab5f Fix the color of Poodles Galore's finger nails in Spy Fox 3.
svn-id: r41162
2009-06-04 11:03:45 +00:00
Travis Howell a45b902716 Ooops, re-enable codec32 code.
svn-id: r41161
2009-06-04 09:49:06 +00:00
Travis Howell 3a64d35dfd Add 16bit color support for later HE games.
svn-id: r41153
2009-06-04 01:05:47 +00:00
Travis Howell 2bf567d988 Fix possible regression in HE games re-releases.
svn-id: r39830
2009-04-04 06:03:09 +00:00
Max Horn 6f4b567124 SCUMM: Split intern.h into multiple headers
svn-id: r39567
2009-03-20 16:33:58 +00:00
Max Horn ac59693be2 A ton of code formatting fixes; also fixed warnings about single line loops like 'while(cond);' by inserting newlines
svn-id: r36127
2009-01-29 05:26:12 +00:00
Travis Howell 5bf899709c Switch assert to an error message, stating the exact unknown code.
svn-id: r35796
2009-01-09 12:08:06 +00:00