From 62ec0be41aa689b7331e4a5546a15d442adf4ba8 Mon Sep 17 00:00:00 2001 From: kichikuou Date: Thu, 24 Jul 2025 08:02:42 +0900 Subject: [PATCH] Pastel Chime Continue: Add MusicSystem HLL --- CMakeLists.txt | 1 + src/ffi.c | 2 ++ src/hll/MusicSystem.c | 23 +++++++++++++++++++++++ src/meson.build | 1 + 4 files changed, 27 insertions(+) create mode 100644 src/hll/MusicSystem.c diff --git a/CMakeLists.txt b/CMakeLists.txt index 57c60b8..f360532 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -162,6 +162,7 @@ target_sources(xsystem4 PRIVATE src/hll/MsgLogManager.c src/hll/MsgLogViewer.c src/hll/MsgSkip.c + src/hll/MusicSystem.c src/hll/NewFont.c src/hll/OutputLog.c src/hll/PassRegister.c diff --git a/src/ffi.c b/src/ffi.c index 1b5787e..de668f4 100644 --- a/src/ffi.c +++ b/src/ffi.c @@ -468,6 +468,7 @@ extern struct static_library lib_MonsterInfo; extern struct static_library lib_MsgLogManager; extern struct static_library lib_MsgLogViewer; extern struct static_library lib_MsgSkip; +extern struct static_library lib_MusicSystem; extern struct static_library lib_NewFont; extern struct static_library lib_OutputLog; extern struct static_library lib_PassRegister; @@ -578,6 +579,7 @@ static struct static_library *static_libraries[] = { &lib_MsgLogManager, &lib_MsgLogViewer, &lib_MsgSkip, + &lib_MusicSystem, &lib_NewFont, &lib_OutputLog, &lib_PassRegister, diff --git a/src/hll/MusicSystem.c b/src/hll/MusicSystem.c new file mode 100644 index 0000000..e3819dd --- /dev/null +++ b/src/hll/MusicSystem.c @@ -0,0 +1,23 @@ +/* Copyright (C) 2025 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(, void, MusicSystem, SetErrorOutput, bool bOutputIDE, bool bErrorMsgBox); + +HLL_LIBRARY(MusicSystem, + HLL_EXPORT(SetErrorOutput, MusicSystem_SetErrorOutput) + ); diff --git a/src/meson.build b/src/meson.build index 0bba817..bf9e26e 100644 --- a/src/meson.build +++ b/src/meson.build @@ -123,6 +123,7 @@ xsystem4 = [version_h, 'hll/MsgLogManager.c', 'hll/MsgLogViewer.c', 'hll/MsgSkip.c', + 'hll/MusicSystem.c', 'hll/NewFont.c', 'hll/OutputLog.c', 'hll/PassRegister.c',