From 6e08ff502968caed588e3f33fa90f81896e353c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Lam?= Date: Tue, 13 Apr 2021 19:11:23 +0200 Subject: ksys/res: Implement AS --- src/KingSystem/Resource/resResourceASResource.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/KingSystem/Resource/resResourceASResource.cpp') diff --git a/src/KingSystem/Resource/resResourceASResource.cpp b/src/KingSystem/Resource/resResourceASResource.cpp index 92db7010..e7b348db 100644 --- a/src/KingSystem/Resource/resResourceASResource.cpp +++ b/src/KingSystem/Resource/resResourceASResource.cpp @@ -13,7 +13,7 @@ namespace { struct ASElementFactory { const char* name; - ASResource* (*make_res)(int type_index, const ASResource::MakeResourceArgs& args); + ASResource* (*make_res)(int type_index, const ASResource::ParseArgs& args); // FIXME: signature as::Element* (*make)(); /// Arbitrary value that is passed to the Element class @@ -23,7 +23,7 @@ struct ASElementFactory { sead::SafeString sStr_default = "default"; template -ASResource* resFactoryImpl_(int type_index, const ASResource::MakeResourceArgs& arg) { +ASResource* resFactoryImpl_(int type_index, const ASResource::ParseArgs& arg) { return new (arg.heap) T(type_index, arg.index); } @@ -358,7 +358,7 @@ bool ASSkeltalAssetResource::doParse(const ASResource::ParseArgs& args) { return true; } -ASResource* ASResource::make(const ASResource::MakeResourceArgs& args) { +ASResource* ASResource::make(const ASResource::ParseArgs& args) { const auto Parameters = agl::utl::getResParameterObj(args.list, "Parameters"); const auto TypeIndex = agl::utl::getResParameter(Parameters, "TypeIndex"); -- cgit v1.2.3