AshitaXI / Ashita

Issue tracker and wiki for the Ashita project.
https://ashitaxi.com/
7 stars 1 forks source link

Convert `int64_t / uint64_t` Returns In Addons To `uint8_t*` Pointers #23

Closed atom0s closed 2 years ago

atom0s commented 2 years ago

Addon / Plugin Description

Due to Lua's limitations in handling integer numbers prior to Lua 5.3, it is impossible for int64_t and uint64_t values to be returned into Lua and hold their true full values. Ashita accounts for this with some return values from the SDK / API but not all of them are adjusted.

This is a note / reminder to finish converting the other 64bit returns to instead return uint8_t* pointers that the user can then use with the respective ashita.mem.read/write calls or with LuaJIT's FFI.

atom0s commented 2 years ago

This should now be resolved. If others pop up will adjust as needed.