shurizzle / rust-smc

macOS SMC implementation.
4 stars 5 forks source link

Add flt data support #4

Closed xiaopengli89 closed 1 year ago

shurizzle commented 1 year ago

https://github.com/acidanthera/VirtualSMC/blob/58c64bf250571f3bcdbc59f37f3f20661e6ba27e/VirtualSMCSDK/kern_vsmcapi.hpp#L201-L216

I was reading this and it seems to be a native endian float, has your PC a LE arch? Can you add the write support too for completeness?

Thank you

xiaopengli89 commented 1 year ago

Just fixed, it should work on all platform.

shurizzle commented 1 year ago

I tested it by myself and it works. Thank you for contribution