Skip to content

Fix IL2CPP offsets label: Unity 2021.x → 2022.3 (verified)#2

Open
dan-blanchard wants to merge 1 commit intomtgatool:mainfrom
dan-blanchard:fix/il2cpp-offsets-label
Open

Fix IL2CPP offsets label: Unity 2021.x → 2022.3 (verified)#2
dan-blanchard wants to merge 1 commit intomtgatool:mainfrom
dan-blanchard:fix/il2cpp-offsets-label

Conversation

@dan-blanchard
Copy link
Copy Markdown

The Il2CppOffsets::unity_2021() function was labeled as "Unity 2021.x" but the offsets were actually verified against MTGA running Unity 2022.3.62f2 (build 7670c08855a9). Both the macOS and Windows Arena clients ship this exact Unity version (confirmed by extracting the version string from UnityPlayer.dll/.dylib).

This renames unity_2021()unity_2022_3() with a deprecated alias for backward compatibility, and updates the doc comments with the full verification history. No behavior change, just corrects the label so future developers aren't confused about which Unity version these offsets apply to.

Changes

  • src/il2cpp/offsets.rs: Renamed unity_2021()unity_2022_3(), added #[deprecated] alias, updated Default, for_version dispatch, version_name string
  • src/bin/http_server_il2cpp.rs: Updated get_offsets() caller

Testing

  • cargo check --lib and cargo check --bins both pass with zero errors
  • The deprecated alias emits a warning if anyone still calls unity_2021() directly

🤖 Generated with Claude Code

Renames unity_2021() → unity_2022_3() with deprecated alias.
Offsets were verified against MTGA Unity 2022.3.62f2, the label was wrong.
No behavior change.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@dan-blanchard dan-blanchard force-pushed the fix/il2cpp-offsets-label branch from 01a3c8b to 62bb016 Compare April 13, 2026 03:26
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