diff --git a/hll/PlayMovie.c b/hll/PlayMovie.c new file mode 100644 index 0000000..d08dcf6 --- /dev/null +++ b/hll/PlayMovie.c @@ -0,0 +1,40 @@ +/* Copyright (C) 2019 Nunuhara Cabbage + * + * 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" + +// int Init() +hll_warn_unimplemented(PlayMovie, Init, 0); +// int Load(string pIFileName) +hll_unimplemented(PlayMovie, Load); +// int Play() +hll_unimplemented(PlayMovie, Play); +// void Stop() +hll_unimplemented(PlayMovie, Stop); +// int IsPlay() +hll_unimplemented(PlayMovie, IsPlay); +// void Release() +hll_unimplemented(PlayMovie, Release); + +hll_deflib(PlayMovie) { + hll_export(Init), + hll_export(Load), + hll_export(Play), + hll_export(Stop), + hll_export(IsPlay), + hll_export(Release), + NULL +}; diff --git a/meson.build b/meson.build index 0e40895..538f07d 100644 --- a/meson.build +++ b/meson.build @@ -30,6 +30,7 @@ hll_libs = ['hll/ACXLoader.c', 'hll/MsgLogManager.c', 'hll/MsgSkip.c', 'hll/OutputLog.c', + 'hll/PlayMovie.c', 'hll/SACT2.c', 'hll/SystemServiceEx.c', ] diff --git a/vm.c b/vm.c index 7f77e45..256de5c 100644 --- a/vm.c +++ b/vm.c @@ -1335,6 +1335,7 @@ extern struct library lib_Math; extern struct library lib_MsgLogManager; extern struct library lib_MsgSkip; extern struct library lib_OutputLog; +extern struct library lib_PlayMovie; extern struct library lib_SACT2; extern struct library lib_SystemServiceEx; @@ -1350,6 +1351,7 @@ struct library *libraries[] = { &lib_MsgLogManager, &lib_MsgSkip, &lib_OutputLog, + &lib_PlayMovie, &lib_SACT2, &lib_SystemServiceEx, NULL