Skip to content

Commit

Permalink
CPF_OutParm support
Browse files Browse the repository at this point in the history
  • Loading branch information
guttir14 committed Sep 10, 2021
1 parent 480f7f6 commit 18f5f1d
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions Dumper/wrappers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1054,11 +1054,15 @@ void UE_UPackage::GenerateFunction(UE_UFunction fn, Function *out) {
// if property has 'Parm' flag
else if (flags & 0x80) {
if (prop->GetArrayDim() > 1) {
out->Params +=
fmt::format("{}* {}, ", prop->GetType().second, prop->GetName());
out->Params += fmt::format("{}* {}, ", prop->GetType().second, prop->GetName());
} else {
out->Params +=
fmt::format("{} {}, ", prop->GetType().second, prop->GetName());
if (flags & 0x100) {
out->Params += fmt::format("{}& {}, ", prop->GetType().second, prop->GetName());
}
else {
out->Params += fmt::format("{} {}, ", prop->GetType().second, prop->GetName());
}

}
}
};
Expand Down

0 comments on commit 18f5f1d

Please sign in to comment.