Skip to content

Added support for files larger than 2GB#869

Open
unhighghlow wants to merge 35 commits into
Perfare:masterfrom
unhighghlow:master
Open

Added support for files larger than 2GB#869
unhighghlow wants to merge 35 commits into
Perfare:masterfrom
unhighghlow:master

Conversation

@unhighghlow
Copy link
Copy Markdown

I changed some occurrences of File.ReadAllBytes to File.OpenRead. This add support for files larger that 2GB and fixes #853

@unhighghlow
Copy link
Copy Markdown
Author

The build of this PR can be obtained at https://ci.appveyor.com/project/Perfare/il2cppdumper/builds/52258506/artifacts

@Parsa307
Copy link
Copy Markdown

Parsa307 commented Aug 6, 2025

Thanks. For the great change!
I've merged it into my fork https://github.com/Parsa307/Il2CppDumper.

The main repo hasn't received any updates in over a year, so feel free to open pull requests here if you have ideas or fixes. If it's useful, I'll happily merge it in.

unhighghlow and others added 7 commits August 23, 2025 17:18
Revert "Revert "Added support for the nix package manager""
Following Perfare#3 by unhighghlow.

Co-Authored-By: unhighghlow <132668972+unhighghlow@users.noreply.github.com>
GitHub seems to not like it.

It might create issues.
@Random-Penguin
Copy link
Copy Markdown

This doesn't actually work for me, since there is still a ReadAllBytes call in Program.cs.

Initializing metadata...
Metadata Version: 31
Initializing il2cpp file...
System.IO.IOException: The file is too long. This operation is currently limited to supporting files less than 2 gigabytes in size.
   at System.IO.File.ReadAllBytes(String path)
   at Il2CppDumper.Program.Init(String il2cppPath, String metadataPath, Metadata& metadata, Il2Cpp& il2Cpp) in /home/random/git/Il2CppDumper/Il2CppDumper/Program.cs:line 112
   at Il2CppDumper.Program.Main(String[] args) in /home/random/git/Il2CppDumper/Il2CppDumper/Program.cs:line 87

I tried replacing it with an OpenRead call and converting it to a byte array, but the 32-bit integer limit made it not work without errors.

(yes I know the last commit was 5 months ago)

@unhighghlow
Copy link
Copy Markdown
Author

there is still a ReadAllBytes call in Program.cs.

Yea, I'm still around. As with all the previous calls, this one seems to be piped directly into MemoryStream. I'll try to fix this at some point in the future (hopefully today), though the error didn't occur to me when I used the tool. Can you send the executable that causes the error?

@Random-Penguin
Copy link
Copy Markdown

Can you send the executable that causes the error?

I am afraid I cannot, as that would constitute sharing of copyrighted data, aka piracy.
If this also means I can't use this tool without breaking the copyright too, please tell me.

@unhighghlow
Copy link
Copy Markdown
Author

If this also means I can't use this tool without breaking the copyright too, please tell me.

afaik you don't break copyright by using this, or any other tool. Can you at least say which app it is, so I can download it for myself?

@Random-Penguin
Copy link
Copy Markdown

Nine Sols (2024), Nintendo Switch port

Heyter added a commit to Heyter/Il2CppDumper-GUI that referenced this pull request Mar 22, 2026
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.

"The file is too long. This operation is currently limited to supporting files less than 2 gigabytes in size."

4 participants