Skip to content

Add known Linux Mono builds - #155

Open
ero-qt wants to merge 16 commits into
LiveSplit:masterfrom
ero-qt:linux-builds
Open

ero-qt wants to merge 16 commits into
LiveSplit:masterfrom
ero-qt:linux-builds

Conversation

@ero-qt

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

Copy link
Copy Markdown
Contributor

Part of #154.

Adds a table of 13 known Linux Mono builds and attaches with each build's measured offsets when a game runs one.

A build is recognized by its build ID, a value the linker writes into the binary that differs for every build. Unity's Mono library has one up to 2019.4. Newer libraries have none, so those builds are recognized by the ID of UnityPlayer.so. The player's ID is used only when the Mono library has no ID at all, never because the lookup missed, so a modified Mono cannot match a normal build's entry.

Some Linux games cannot attach at all today. Version::detect needs either a file named libmono.so or a UnityPlayer.so to read the Unity version from. Games that ship libmonobdwgc-2.0.so and no player library have neither, so attaching fails. 2018.4 is one of them. The build lookup runs first, so those games attach.

The measurements also fill in the Linux offset tables, which games nobody has measured fall back on. Those tables were shared with Mac, so they are split first and only the Linux copy takes the measurements.

cargo test --all-features runs the suite. The new tests cover the lookup, the build ID parser, which binary names a build and when, and the version tables agreeing with the measured builds.


Depends on #153.

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