diff --git a/src/ffi.c b/src/ffi.c index 0defc17..403cf1a 100644 --- a/src/ffi.c +++ b/src/ffi.c @@ -312,6 +312,7 @@ extern struct static_library lib_DataFile; extern struct static_library lib_DrawDungeon; extern struct static_library lib_DrawDungeon14; extern struct static_library lib_DrawGraph; +extern struct static_library lib_DrawMovie; extern struct static_library lib_DrawMovie2; extern struct static_library lib_DrawPluginManager; extern struct static_library lib_DrawSimpleText; @@ -379,6 +380,7 @@ static struct static_library *static_libraries[] = { &lib_DrawDungeon, &lib_DrawDungeon14, &lib_DrawGraph, + &lib_DrawMovie, &lib_DrawMovie2, &lib_DrawPluginManager, &lib_DrawSimpleText, diff --git a/src/hll/DrawMovie.c b/src/hll/DrawMovie.c new file mode 100644 index 0000000..f066e99 --- /dev/null +++ b/src/hll/DrawMovie.c @@ -0,0 +1,35 @@ +/* Copyright (C) 2022 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, DrawMovie, Release); +HLL_WARN_UNIMPLEMENTED(0, bool, DrawMovie, Load, possibly_unused struct string *filename); +//bool DrawMovie_Run(void); +//bool DrawMovie_Draw(int nSprite); +//bool DrawMovie_SetVolume(int nVolume); +//bool DrawMovie_IsEnd(void); +//int DrawMovie_GetCount(void); + +HLL_LIBRARY(DrawMovie, + HLL_EXPORT(Release, DrawMovie_Release), + HLL_EXPORT(Load, DrawMovie_Load), + HLL_TODO_EXPORT(Run, DrawMovie_Run), + HLL_TODO_EXPORT(Draw, DrawMovie_Draw), + HLL_TODO_EXPORT(SetVolume, DrawMovie_SetVolume), + HLL_TODO_EXPORT(IsEnd, DrawMovie_IsEnd), + HLL_TODO_EXPORT(GetCount, DrawMovie_GetCount) + ); diff --git a/src/meson.build b/src/meson.build index 484e97f..07a06c2 100644 --- a/src/meson.build +++ b/src/meson.build @@ -79,6 +79,7 @@ xsystem4 = [version_h, 'hll/DataFile.c', 'hll/DrawDungeon.c', 'hll/DrawGraph.c', + 'hll/DrawMovie.c', 'hll/DrawMovie2.c', 'hll/DrawPluginManager.c', 'hll/DrawSimpleText.c',