From f0fc0b669959a8805a84f7c30ac6f31ffc1d3390 Mon Sep 17 00:00:00 2001 From: kichikuou Date: Sat, 4 May 2024 07:30:13 +0900 Subject: [PATCH] Add stubs for PixelRestore hll It is used (only?) in Beat Blades Haruka, when two enemies are found by enemy seek. This is just a screen effect and can be ignored without affecting gameplay. --- CMakeLists.txt | 1 + src/ffi.c | 2 ++ src/hll/PixelRestore.c | 29 +++++++++++++++++++++++++++++ src/meson.build | 1 + 4 files changed, 33 insertions(+) create mode 100644 src/hll/PixelRestore.c diff --git a/CMakeLists.txt b/CMakeLists.txt index 43d183a..5fe202a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -160,6 +160,7 @@ target_sources(xsystem4 PRIVATE src/hll/OutputLog.c src/hll/PassRegister.c src/hll/PartsEngine.c + src/hll/PixelRestore.c src/hll/PlayDemo.c src/hll/PlayMovie.c src/hll/ReignEngine.c diff --git a/src/ffi.c b/src/ffi.c index 2bc73e4..7a05c39 100644 --- a/src/ffi.c +++ b/src/ffi.c @@ -349,6 +349,7 @@ extern struct static_library lib_MsgSkip; extern struct static_library lib_OutputLog; extern struct static_library lib_PassRegister; extern struct static_library lib_PartsEngine; +extern struct static_library lib_PixelRestore; extern struct static_library lib_PlayDemo; extern struct static_library lib_PlayMovie; extern struct static_library lib_ReignEngine; @@ -419,6 +420,7 @@ static struct static_library *static_libraries[] = { &lib_OutputLog, &lib_PassRegister, &lib_PartsEngine, + &lib_PixelRestore, &lib_PlayDemo, &lib_PlayMovie, &lib_ReignEngine, diff --git a/src/hll/PixelRestore.c b/src/hll/PixelRestore.c new file mode 100644 index 0000000..025b399 --- /dev/null +++ b/src/hll/PixelRestore.c @@ -0,0 +1,29 @@ +/* Copyright (C) 2024 kichikuou + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#include "hll.h" + +HLL_WARN_UNIMPLEMENTED(false, bool, PixelRestore, Init, int dest_sprite, int dest_x, int dest_y, int src_sprite, int total_time, int get_time); +HLL_WARN_UNIMPLEMENTED(false, bool, PixelRestore, Draw, int get_time); +HLL_WARN_UNIMPLEMENTED(, void, PixelRestore, Set, int now_time); +HLL_WARN_UNIMPLEMENTED(, void, PixelRestore, Delete, void); + +HLL_LIBRARY(PixelRestore, + HLL_EXPORT(Init, PixelRestore_Init), + HLL_EXPORT(Draw, PixelRestore_Draw), + HLL_EXPORT(Set, PixelRestore_Set), + HLL_EXPORT(Delete, PixelRestore_Delete) + ); diff --git a/src/meson.build b/src/meson.build index fbacf9b..354a7ef 100644 --- a/src/meson.build +++ b/src/meson.build @@ -114,6 +114,7 @@ xsystem4 = [version_h, 'hll/OutputLog.c', 'hll/PassRegister.c', 'hll/PartsEngine.c', + 'hll/PixelRestore.c', 'hll/PlayDemo.c', 'hll/PlayMovie.c', 'hll/ReignEngine.c',