summaryrefslogtreecommitdiff
path: root/src/KingSystem/Resource/resResourceASResource.cpp
diff options
context:
space:
mode:
authorLéo Lam <leo@leolam.fr>2021-04-13 19:11:23 +0200
committerLéo Lam <leo@leolam.fr>2021-04-14 00:45:59 +0200
commit6e08ff502968caed588e3f33fa90f81896e353c2 (patch)
tree07dab41c71bb5d42cbafa03464cb214131fb7310 /src/KingSystem/Resource/resResourceASResource.cpp
parent49a96d9e62114f44e7f44e7a0a52b444ca1fda42 (diff)
ksys/res: Implement AS
Diffstat (limited to 'src/KingSystem/Resource/resResourceASResource.cpp')
-rw-r--r--src/KingSystem/Resource/resResourceASResource.cpp6
1 files changed, 3 insertions, 3 deletions
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 <typename T>
-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");