149073 Commits

Author SHA1 Message Date
Walter Agazzi
7e003f30e9 AGS: Engine: allow old-style resolution upscale for kGameResolution_Default
From upstream a7f3c775de0f1a82c34b5f3acd67418aec31bf17
2024-01-17 03:12:31 +01:00
Walter Agazzi
46b14a21c6 AGS: Engine: safety check for fixups with out of range code reference
From upstream 973845a15ed9726956895161c8847bc668c3e787
2024-01-17 03:12:31 +01:00
Walter Agazzi
d18f7cac25 AGS: Engine: replaced another case of strncpy with snprintf
From upstream 73e49b44db8042aa307bff7fadf51f67156658be
2024-01-17 03:12:31 +01:00
Walter Agazzi
cce6aff754 AGS: Engine: replaced uses of strncpy with snprintf for safety
From upstream 02feb81b34f041dccd8a4bb33ff060cc532d979b
2024-01-17 03:12:30 +01:00
Walter Agazzi
4eaac90e4e AGS: Common: safer reading of fixed-len string fields
From upstream 458a524a418f30142f5fe2e512902b7e00e97eec
2024-01-17 03:12:30 +01:00
Walter Agazzi
4e6d475e17 AGS: Engine: fixed gamename label not updating if Game.Name changes
From upstream ae34b8881f64d422971aab3d70758c5184aca0b4
2024-01-17 03:12:29 +01:00
Walter Agazzi
a7266499a5 AGS: Engine: misspelling fix: perfomance->performance
From upstream c4cf67ac5bc5ac3463609eeefea16c1caa8abab9
2024-01-17 03:12:29 +01:00
Walter Agazzi
e2d455ee9e AGS: Updated build version (3.6.0.54)
Paritally from upstream 7a471ddeb30ee16f00397ac6939b334dbba6b717
2024-01-17 03:12:29 +01:00
Walter Agazzi
0f39d8c525 AGS: Common: small fix for GUITextBox::CalcGraphicRect()
From upstream 3529f4b2e5e41c6662abc9e2ec07e4113605137e
2024-01-17 03:12:29 +01:00
Walter Agazzi
8aa46edc16 AGS: Common: account for Font's height when calculating ListBox and TextBox
Historically these controls could draw text beyond their vertical bounds too (in non-clipping mode).
From upstream c9572541a6f8d38ed2ca1ba7af8e235c5d56c8f2
2024-01-17 03:12:28 +01:00
Walter Agazzi
bcf5ebaae5 AGS: Common: account Font's YOffset when calculating GUI's graphical rect
This fixes fonts with a custom VerticalOffset set getting unexpectedly clipped by a control's texture. Fixes Button and Label controls.
From upstream 02b15886d09b1025ac051bc8adfd6c3e5e7cd171
2024-01-17 03:12:28 +01:00
Walter Agazzi
b395603107 AGS: Engine: print which gfx driver is set to the log
Partially from upstream f58f9634422ae28f54d1fd9dc6112c62ad283597
2024-01-17 03:12:28 +01:00
Walter Agazzi
6f4b702810 AGS: Common: small fix to the OpenMainGameFile's error msg
from upstream d297b2d76a1b98a8fd3bb6bcdb752e0286c11db7
2024-01-17 03:12:28 +01:00
Walter Agazzi
95b0b2fc4d AGS: Engine: when drawing TextWindow clip border pieces, fix over corners
This fixes vertical or horizontal borders to be drawn under rightmost and bottom
corners, which may have transparent parts.
From upstream a77393abc2353a7d8309b7edf1f0ff582c34778c
2024-01-17 03:12:27 +01:00
Paul Gilbert
b69d587feb M4: Better skipping showing intro again after first time 2024-01-16 18:08:39 -08:00
Paul Gilbert
ad029b18cf M4: RIDDLE: Start of room 201 2024-01-16 17:57:12 -08:00
Paul Gilbert
e2ecea61f5 M4: RIDDLE: Init code for room 304 2024-01-16 17:57:12 -08:00
Walter Agazzi
a9e4ab25b3 AGS: Add detection for new games (from AGS forums)
+ minor sorting fixes
2024-01-17 00:20:12 +01:00
Walter Agazzi
12959dacb6 AGS: Add detection for latest blackwell2 updates 2024-01-17 00:20:12 +01:00
Kaloyan Chehlarski
28fbde9bff NANCY: Improve hypertext token heuristic
Fixed a couple issues when handling hypertext tokens
using the new API in Common::Tokenizer:
- The sound file names that were accidentally left in some
dialogue in nancy6 scenes 1953 and 1954 no longer get
rendered as part of the text.
- Short text strings now get rendered correctly. This fixes
the HAM radio puzzle input readout.
- Hypertext tokens now have checks for proper size;
otherwise, the offending token is output to the newly
created kDebugHypertext debug channel.
2024-01-16 23:01:40 +01:00
Miro Kropacek
48675ed9cf CONFIGURE: Don't use -ffast-math in for m68k-atari-mint*
This breaks calculation of sceneObject->walkCount in
engines/bbvs/walk.cpp (and possibly at other places, too).

Added "-fno-unsafe-math-optimizations" to prevent reciprocal
approximations which break fixed point delta calculations.
2024-01-16 22:59:35 +01:00
Kaloyan Chehlarski
b89b946e7d COMMON: Allow extracting delimiter info from Tokenizer
Extended the StringTokenizer and U32StringTokenizer
classes with functions that provide the caller with a list
of all delimiters surrounding the last processed token.
2024-01-16 23:31:13 +02:00
Kaloyan Chehlarski
a73d5d8106 NANCY: Implement win game event flag
Added a feature that stores whether the player has won
the game at least once, and activates a specific event flag
if so. This may or may not enable easter eggs in the
game data, but definitely affects the (still unimplemented)
quotes easter egg in the version screen.
2024-01-16 22:26:55 +01:00
Kaloyan Chehlarski
ccca59475c NANCY: Support modified nancy.dat format
Added support for the freshly modified nancy.dat. The
previous version is also supported and will be kept that way
until the next time nancy.dat gets updated in master
(most likely after work on nancy8/9 is finished)
2024-01-16 22:26:55 +01:00
Kaloyan Chehlarski
c0e2f746ea DEVTOOLS: Update nancy.dat format
Slightly changed the format of nancy.dat:
- curtain animation frames are no longer stored
- number of cursor TYPES is stored instead of number of
non-item cursors
- map access IDs were moved to a separate chunk outside
the general GameConstants
- GameConstants now stores the ID of the event flag
that gets set after the player has won the game
at least once before.
2024-01-16 22:26:55 +01:00
Kaloyan Chehlarski
ae81715b26 DEVTOOLS: Fix typos in create_nancy nancy3 data 2024-01-16 22:26:55 +01:00
Kaloyan Chehlarski
2cef013209 NANCY: Sync missing SceneState member
Fixed an oversight with syncing nancy7 savefiles where
the inventory ID of an inventory scene would not get saved,
and cause a crash when attempting to exit said scene after
loading.
2024-01-16 22:26:55 +01:00
Kaloyan Chehlarski
52dcc17de3 DEVTOOLS: Fix typo in create_nancy nancy7 data 2024-01-16 22:26:54 +01:00
sluicebox
3531843679 AGI: Add more error checks when loading sounds
Applies the previous commit to V1 and V3 loaders
2024-01-16 10:52:52 -07:00
sluicebox
34a1e5aac4 AGI: Add error check when loading sounds
Fixes the CoCo3 version of Xmas Card 86 crashing on startup.

The sound format isn't supported yet but the return value from
AgiSound::createFromRawResource wasn't tested.
2024-01-16 10:11:13 -07:00
sluicebox
a5656b43fe AGI: Detect V3 volume format in V2 games
The CoCo3 version of Xmas Card 86 has a volume file with a V3 format.

The V2 loader now detects this and ignores the extra header bytes.

Fixes bug #14699
2024-01-16 10:11:13 -07:00
neuromancer
bca50cd100 FREESCAPE: reset events when the engine quits or returns to launcher 2024-01-16 09:40:13 +01:00
neuromancer
7f410de2c7 FREESCAPE: disable debug statement in drawFullscreenMessage 2024-01-16 09:40:13 +01:00
elasota
e36482f994 DIRECTOR: Fix missing comma breaking some detection paths 2024-01-16 10:19:01 +02:00
Thierry Crozat
44ad305cbe MACOS: Remove Sparkle XPC Services when creating the app bundle
The XPC Services are only needed for sandboxed app. Sandboxing the
ScummVM App will be required if we submit it to the Mac App Store,
but since the Mac App Store handles app updates we have no reason
to use Sparkle for that version. So assume we will only use Sparkle
in non-sandboxed applications.

If we find that we need to keep the XPC Services, we will need to
update how the bundle is signed. With the current commands this
results in a corrupted bundle that cannot be open.
See https://sparkle-project.org/documentation/sandboxing/#code-signing
2024-01-15 23:07:31 +00:00
Thierry Crozat
e8ebf8800c MACOS: Add Application Category Type key in Info,plist
This will be needed if we ever decide to submit the app to the Mac
App Store.
2024-01-15 23:05:14 +00:00
neuromancer
457628ecb8 FREESCAPE: fixed IPHONE specific code to set better default controls 2024-01-15 20:55:05 +01:00
neuromancer
9182a9971b FREESCAPE: added some code for handling eclipse cga dos 2024-01-15 20:55:05 +01:00
Paul Gilbert
3304c829c2 M4: RIDDLE: Fix clicking menu buttons 2024-01-15 11:30:26 -08:00
Paul Gilbert
eb2331b426 M4: Remove unneeded demo menu items 2024-01-15 10:52:39 -08:00
Paul Gilbert
53af3006c3 M4: Mouse wheel fixes in room 602 2024-01-15 10:45:14 -08:00
Paul Gilbert
d49978267a M4: Fix Exit demo menu item 2024-01-15 10:45:13 -08:00
Le Philousophe
e51e93c3de COMMON: Fix DumpFile path creation at opening
Path rework broke it badly
2024-01-15 18:52:36 +01:00
antoniou79
803ae263da PEGASUS: Clarify use of enableEditListBoundsCheckQuirk() in comment 2024-01-15 09:10:07 +02:00
Paul Gilbert
6f039142d8 M4: RIDDLE: Implement game tick handler 2024-01-14 22:29:23 -08:00
Paul Gilbert
8479e6a91e M4: RIDDLE: Added menu room 494 2024-01-14 22:15:24 -08:00
Paul Gilbert
eebdfa7029 M4: RIDDLE: Properly implementing walker methods 2024-01-14 19:04:31 -08:00
Paul Gilbert
8a3046c067 M4: RIDDLE: Add Riddle specific console sub-class 2024-01-14 17:11:29 -08:00
Paul Gilbert
fff714de9d M4: Add better detection for non interactive Burger demo 2024-01-14 15:17:14 -08:00
Kaloyan Chehlarski
d9a96d7412 NANCY: Make function const 2024-01-14 22:30:01 +01:00