Skip to content

Commit

Permalink
fix(vm): rearrange CreateObject methods
Browse files Browse the repository at this point in the history
  • Loading branch information
maybegreat48 committed Nov 11, 2023
1 parent 290935d commit a8f089f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CommonLibSF/include/RE/I/IVirtualMachine.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ namespace RE
virtual bool GetScriptStructType(const BSFixedString& a_structTypeName, BSTSmartPointer<StructTypeInfo>& a_structType) = 0; // 16
virtual bool GetScriptStructTypeNoLoad(const BSFixedString& a_structTypeName, BSTSmartPointer<StructTypeInfo>& a_structType) const = 0; // 17
virtual bool GetChildStructTypes(const BSFixedString& a_parentObjectName, /*BSTObjectArena<BSFixedString>&*/ void* a_structTypes) const = 0; // 18
virtual bool CreateObject(const BSFixedString& a_objectTypeName, const /*BSTScrapHashMap<BSFixedString, Variable>&*/ void* a_properties, BSTSmartPointer<Object>& a_newObj) = 0; // 19
virtual bool CreateObject(const BSFixedString& a_objectTypeName, BSTSmartPointer<Object>& a_newObj) = 0; // 1A
virtual bool CreateObject(const BSFixedString& a_objectTypeName, const /*BSTScrapHashMap<BSFixedString, Variable>&*/ void* a_properties, BSTSmartPointer<Object>& a_newObj) = 0; // 19 -- this is intended; not the right order, but the compiler appears to swap the two for some reason
virtual bool CreateStruct(const BSFixedString& a_structTypeName, BSTSmartPointer<Struct>& a_newStruct) = 0; // 1B
virtual bool CreateArray(TypeInfo::RawType a_elementType, const BSFixedString& a_elementObjectTypeName, std::uint32_t a_elementCount, BSTSmartPointer<Array>& a_newArray) = 0; // 1C
virtual bool CreateArray(const TypeInfo& a_type, std::uint32_t a_elementCount, BSTSmartPointer<Array>& a_newArray) = 0; // 1D
Expand Down

0 comments on commit a8f089f

Please sign in to comment.