Skip to content

Commit

Permalink
Fix unnecessary hard includes
Browse files Browse the repository at this point in the history
  • Loading branch information
Fernthedev committed Nov 22, 2024
1 parent 1aebff3 commit 178375a
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions src/generate/cpp/cpp_type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -613,12 +613,8 @@ impl CppType {

let prop_ty = prop.prop_ty.get_type(name_resolver.cordl_metadata);

let prop_resolved_ty = name_resolver.resolve_name(
self,
&prop.prop_ty,
TypeUsage::Property,
prop_ty.valuetype,
);
let prop_resolved_ty =
name_resolver.resolve_name(self, &prop.prop_ty, TypeUsage::Property, false);

let getter = prop.getter.map(|g| config.name_cpp(&g));
let setter = prop.setter.map(|s| config.name_cpp(&s));
Expand Down Expand Up @@ -1493,8 +1489,15 @@ impl CppType {
return None;
}

let field_il2cpp_ty = field.field_ty.get_type(name_resolver.cordl_metadata);

let f_type_cpp_name = name_resolver
.resolve_name(self, &field.field_ty, TypeUsage::Field, true)
.resolve_name(
self,
&field.field_ty,
TypeUsage::Field,
field_il2cpp_ty.valuetype,
)
.combine_all();

// Get the inner type of a Generic Inst
Expand Down

0 comments on commit 178375a

Please sign in to comment.