With SC2059, shellcheck warns about using variables in printf
format strings. However, since we use this for injecting formatting
directives, we must supress this warning.
iOS and tvOS shares much of the same code. Normally all differences
between the targets are handled in the backend where Xcode specific
pre-processor macros can be used to distinguish the platforms.
In shared code, even if it's still Apple specific, we need a define
to separate the iOS and tvOS targets. Add such and use it in the
shared CoreMIDI code. This fixes buildbot issues.
Integrate the existing CoreMIDI implementation used in the MacOS
backend into the iOS7 backend. The CoreMIDI framework is available
from iOS 4.2 and tvOS 15.0.
This allows ScummVM to detect external MIDI devices connected to
the device running ScummVM and to be selected as MIDI music output
device.
We were using the Common::Language value to identify language blocks
in the teenagent.dat file. But that meant that modifying the enum
would cause the dat file to become obsolete and the engine to fail
to find some language block. This recently happened with commit
13b659b that added Canadian French to Common::Language.
This commit introduces custom language IDs that match the
Common::Language values at the time teenagent.dat was last
generated, This means we do not need to generate it again with
those changes.
This fixes bug #16568.
create_project is a standalone tool, so fix its build when it's not
being built with the standard "make devtools" command (e.g. from
Xcode or MSVC).
This reverts the inclusion of common/util.h, introduced in commit 4640c5c9cf
Keeping default values in function definitions is better design,
and helps identify default values instead of reading through
the function implementation
- Removes Windows font data from HUGO.DAT
- Uses Graphics::DosFont for Windows interface in DOS versions
The font data in HUGO.DAT was a temporary workaround until
DOS versions could draw their own font.
(HUGO.DAT regenerated in next commit)
This commit assumes that the architecture on which we build
create_project is also the one we will target for the ScummVM
build. This should be the case in most cases.
We enlarged the HUGO1 DOS hotspots for mouse compatibility in:
ac6c88869e
Two of these enlarged hotspots included Hugo's initial position in a
room, and that caused incorrect room changes when using the keyboard.
Now these two rectangles are slightly reduced so that they exclude
Hugo's initial position. They are still larger than the originals for
mouse compatibility.
Fixes:
- Garden: Walking up or right from Hugo's initial position would cause
a room change to the kitchen below.
- Final room: Walking right from the initial position would cause a
room change to the lake below when hitting the right wall.
HUGO2 DOS runs at 8 ticks per second. We are handling this correctly
in the engine, but in the static data we declared 9 ticks per second.
Fixes delays taking too long in the introduction and elsewhere.
Previously: bf787323ab
Fixes incorrect image counts in Harry's two sequence lists, causing
Harry to flip back and forth instead of jumping up and down.
This was a ScummVM bug, we had the wrong value in our Windows table.
Visual Studio 2022 17.14 introduces SLNX as a new XML-based solution format.
This change allows to create the solution as such an SLNX file instead of SLN.