04-30-2017, 11:36 PM
(This post was last modified: 04-30-2017, 11:47 PM by Seadragon91.)
Created a commit in a new branch in toluacpp 06f46c7f84e51cea405dc9ef5ec11abeeb141538
I had to add a check for AString, because there are a few functions that returns a passed number as reference. For example AddFaceDirection, accepts 3 numbers changes and returns them.
The function ReplaceString breaks with this changes, it has returned all the passed strings back. This one could be fixed by manual exporting it, not sure if there are more functions. Only found this one with APIFuzzing, but currently it doesn't cover the whole api.
Code:
if self.is_parameter and string.match(self.type, "AString") then
return 0
end
I had to add a check for AString, because there are a few functions that returns a passed number as reference. For example AddFaceDirection, accepts 3 numbers changes and returns them.
The function ReplaceString breaks with this changes, it has returned all the passed strings back. This one could be fixed by manual exporting it, not sure if there are more functions. Only found this one with APIFuzzing, but currently it doesn't cover the whole api.