diff --git a/CMakeLists.txt b/CMakeLists.txt index 777aa32..a722015 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -107,6 +107,7 @@ target_sources(xsystem4 PRIVATE src/hll/ACXLoader.c src/hll/ADVSYS.c + src/hll/AFAFactory.c src/hll/AliceLogo.c src/hll/AliceLogo2.c src/hll/AliceLogo3.c diff --git a/src/ffi.c b/src/ffi.c index b0d2c65..4834436 100644 --- a/src/ffi.c +++ b/src/ffi.c @@ -417,6 +417,7 @@ void hll_call(int libno, int fno) extern struct static_library lib_ACXLoader; extern struct static_library lib_ACXLoaderP2; extern struct static_library lib_ADVSYS; +extern struct static_library lib_AFAFactory; extern struct static_library lib_AliceLogo; extern struct static_library lib_AliceLogo2; extern struct static_library lib_AliceLogo3; @@ -534,6 +535,7 @@ static struct static_library *static_libraries[] = { &lib_ACXLoader, &lib_ACXLoaderP2, &lib_ADVSYS, + &lib_AFAFactory, &lib_AliceLogo, &lib_AliceLogo2, &lib_AliceLogo3, diff --git a/src/hll/AFAFactory.c b/src/hll/AFAFactory.c new file mode 100644 index 0000000..5e05296 --- /dev/null +++ b/src/hll/AFAFactory.c @@ -0,0 +1,39 @@ +/* Copyright (C) 2026 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, AFAFactory, IsExistArchive, struct string *ArchiveName); +//bool AFAFactory_LoadArchive(int Type, struct string *ArchiveName); +//int AFAFactory_GetCountOfData(int Type); +//void AFAFactory_GetTitleByIndex(int Type, int Index, struct string **Name); +//int AFAFactory_SearchTitle(int Type, struct string *Name); +//int AFAFactory_PrefixSearchTitle(int Type, struct string *Name); +//int AFAFactory_SuffixSearchTitle(int Type, struct string *Name); +//int AFAFactory_GetCountOfSearchData(int Type); +//void AFAFactory_GetSearchTitleByIndex(int Type, int Index, struct string **Name); + +HLL_LIBRARY(AFAFactory, + HLL_EXPORT(IsExistArchive, AFAFactory_IsExistArchive), + HLL_TODO_EXPORT(LoadArchive, AFAFactory_LoadArchive), + HLL_TODO_EXPORT(GetCountOfData, AFAFactory_GetCountOfData), + HLL_TODO_EXPORT(GetTitleByIndex, AFAFactory_GetTitleByIndex), + HLL_TODO_EXPORT(SearchTitle, AFAFactory_SearchTitle), + HLL_TODO_EXPORT(PrefixSearchTitle, AFAFactory_PrefixSearchTitle), + HLL_TODO_EXPORT(SuffixSearchTitle, AFAFactory_SuffixSearchTitle), + HLL_TODO_EXPORT(GetCountOfSearchData, AFAFactory_GetCountOfSearchData), + HLL_TODO_EXPORT(GetSearchTitleByIndex, AFAFactory_GetSearchTitleByIndex) + ); diff --git a/src/meson.build b/src/meson.build index 58936a9..652abbf 100644 --- a/src/meson.build +++ b/src/meson.build @@ -68,6 +68,7 @@ xsystem4 = [version_h, 'hll/ACXLoader.c', 'hll/ADVSYS.c', + 'hll/AFAFactory.c', 'hll/AliceLogo.c', 'hll/AliceLogo2.c', 'hll/AliceLogo3.c',