Warn if stringLiteralOffset != sizeof(Il2CppGlobalMetadataHeader)#796
Open
kmod-midori wants to merge 1 commit intoPerfare:masterfrom
Open
Warn if stringLiteralOffset != sizeof(Il2CppGlobalMetadataHeader)#796kmod-midori wants to merge 1 commit intoPerfare:masterfrom
stringLiteralOffset != sizeof(Il2CppGlobalMetadataHeader)#796kmod-midori wants to merge 1 commit intoPerfare:masterfrom
Conversation
Heyter
added a commit
to Heyter/Il2CppDumper-GUI
that referenced
this pull request
Mar 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds extra checks found in Unity-2022.3.0f1:
As both magic number and version are checked with
IL2CPP_ASSERT, they are not actually enforced at runtime, and may be changed to anything without affecting functionality. I've noticed that there are games in whichglobal-metadata.datdoes not match the actual IL2CPP version being used, which might confuse users of this tool.Details can be found in my blog (Chinese): https://reimu.moe/2024/06/09/IL2Cpp-String-Literals/#String-Literals%20%E6%98%AF%E5%A6%82%E4%BD%95%E5%AD%98%E5%82%A8%E7%9A%84%EF%BC%88v27-%EF%BC%89