From b8fbba074b76d35376e5a6bd83fe482723b8a89d Mon Sep 17 00:00:00 2001 From: Nunuhara Cabbage Date: Sun, 1 Dec 2019 14:18:36 -0800 Subject: [PATCH] Add stubs for Confirm2.dll --- hll/Confirm2.c | 34 ++++++++++++++++++++++++++++++++++ meson.build | 1 + vm.c | 2 ++ 3 files changed, 37 insertions(+) create mode 100644 hll/Confirm2.c diff --git a/hll/Confirm2.c b/hll/Confirm2.c new file mode 100644 index 0000000..93178d9 --- /dev/null +++ b/hll/Confirm2.c @@ -0,0 +1,34 @@ +/* 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" + +// void Init(imain_system pIMainSystem) +hll_warn_unimplemented(Confirm2, Init, 0); +// int ExistKeyFile(string pIFileName, int nKeyNum) +hll_warn_unimplemented(Confirm2, ExistKeyFile, 1); +// int CheckProtectFile(string pIFileName, int nKeyNum) +hll_unimplemented(Confirm2, CheckProtectFile); +// int CreateKeyFile(string pIFileName, int nKeyNum) +hll_unimplemented(Confirm2, CreateKeyFile); + +hll_deflib(Confirm2) { + hll_export(Init), + hll_export(ExistKeyFile), + hll_export(CheckProtectFile), + hll_export(CreateKeyFile), + NULL +}; diff --git a/meson.build b/meson.build index 4dde78d..0e40895 100644 --- a/meson.build +++ b/meson.build @@ -23,6 +23,7 @@ hll_libs = ['hll/ACXLoader.c', 'hll/AliceLogo.c', 'hll/AliceLogo2.c', 'hll/AliceLogo3.c', + 'hll/Confirm2.c', 'hll/DrawGraph.c', 'hll/DrawPluginManager.c', 'hll/Math.c', diff --git a/vm.c b/vm.c index 2fb4d21..7f77e45 100644 --- a/vm.c +++ b/vm.c @@ -1328,6 +1328,7 @@ extern struct library lib_ACXLoader; extern struct library lib_AliceLogo; extern struct library lib_AliceLogo2; extern struct library lib_AliceLogo3; +extern struct library lib_Confirm2; extern struct library lib_DrawGraph; extern struct library lib_DrawPluginManager; extern struct library lib_Math; @@ -1342,6 +1343,7 @@ struct library *libraries[] = { &lib_AliceLogo, &lib_AliceLogo2, &lib_AliceLogo3, + &lib_Confirm2, &lib_DrawGraph, &lib_DrawPluginManager, &lib_Math,