Skip to content

Add measured offsets for known mono builds - #143

Open
ero-qt wants to merge 7 commits into
LiveSplit:masterfrom
ero-qt:profiles
Open

Add measured offsets for known mono builds#143
ero-qt wants to merge 7 commits into
LiveSplit:masterfrom
ero-qt:profiles

Conversation

@ero-qt

@ero-qt ero-qt commented Aug 28, 2026

Copy link
Copy Markdown

Depends on #142.

attach_auto_detect now reads the mono module's debug identity first. A known build attaches with its measured offsets and skips version detection entirely. Anything else falls back to the existing detection, unchanged. attach(version) is untouched, so an explicitly passed version keeps meaning what it means. On successful attach a log line names the identity, known or not, so unknown builds can be collected.

The table carries 26 builds from Unity 5.6 through 6000.7 at both pointer sizes, measured from the runtimes' own PDBs. Each entry states its provenance. GUIDs are written canonically and a const fn parses them into storage order at compile time, so a malformed one fails the build.

One finding from the measured data: every 2021.2+ x64 build places MonoVTable's method table at 0x48. The current table uses 0x40 there, which would misplace static field reads on those games. The entries carry the measured value and the existing table is left as is here.

Assembly names are read through the image when a build's offsets locate them there. ClassOffsets.image had no readers and is removed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant