ladybird/Ports/fheroes2/patches
Michael Manganiello f421addc50 Ports: Add Free Heroes of Might and Magic II (fheroes2) port
`fheroes2` is a recreation of HoMM2 game engine. This port is set with
`GET_HOMM2_DEMO=ON` for a free demo version to be automatically
downloaded and used, without requiring the user to provide game
resources from the original game.

Besides the provided patches, we set `CXXFLAGS="'-D_GNU_SOURCE'"` to
build the port, for SerenityOS' `LibC/endian.h` to provide required
endianness functions and constants.

**Considerations**:
* In-game custom cursor is not working, game logs show:
  `Cursors are not currently supported` [0].
* Game is still unplayable, as it commonly raises a Kernel panic when
  trying to start a new game (reported at SerenityOS/serenity#9401).

[0] ae3bc94772/src/events/SDL_mouse.c (L952)
2022-03-27 18:31:10 +02:00
..
add-serenity-support.patch Ports: Add Free Heroes of Might and Magic II (fheroes2) port 2022-03-27 18:31:10 +02:00
cmakelists.patch Ports: Add Free Heroes of Might and Magic II (fheroes2) port 2022-03-27 18:31:10 +02:00
ReadMe.md Ports: Add Free Heroes of Might and Magic II (fheroes2) port 2022-03-27 18:31:10 +02:00
set-sdl-software-renderer.patch Ports: Add Free Heroes of Might and Magic II (fheroes2) port 2022-03-27 18:31:10 +02:00

Patches for fheroes2 on SerenityOS

cmakelists.patch

Fix library detection for SDL2 dependencies in CMakeLists files.

add-serenity-support.patch

Add __serenity__ option in header files that validate current platform.

set-sdl-software-renderer.patch

Use SDL Software renderer, instead of hardware-accelerated one.