LiveSplit / asr

Helper crate to write auto splitters for LiveSplit One's auto splitting runtime.
https://livesplit.org/asr/asr
Apache License 2.0
10 stars 10 forks source link

Some Mac and Linux support for Unity/Mono #93

Open AlexKnauth opened 9 months ago

AlexKnauth commented 9 months ago

This PR depends on #92 for V1Cattrs support, and replaces the old #53.

This adds Mac and Linux support for Unity/Mono V1, V1Cattrs, and V2. More V3 offsets could be added in the future after testing with a V3 game.

The Linux support all around, and the Mac SceneManager support, both work without needing std or alloc.

The Mac Mono support needs alloc, but not std.

AlexKnauth commented 6 months ago

The macho::symbols iterator function still needs work.

It currently works for Hollow Knight 1.2.2.1 and 1.5.78, but not 1.4.3.2 on Mac.

Something is wrong with finding the symbol table and string table in memory.

A previous version that used the filesystem for the symbol table and string table, was able to work just fine. (I think)