Homebrew Question Decompiling a switch unity game ?

  • Thread starter Thread starter kafji
  • Start date Start date
  • Views Views 14,149
  • Replies Replies 7

kafji

New Member
Newbie
Joined
Aug 1, 2018
Messages
4
Reaction score
0
Trophies
0
Age
36
XP
117
Country
United States
I extracted a switch game that was made in unity and in the folder tree there was a global-metadata.dat file so i guess it was compiled with il2cpp, I could use Il2CppInspector to decompile the .net properly, but it only supports pe files, android and ios

Anyone know if it's possible to decompile the binary like you would do with a .net binary with ilspy or something like that ?
 
can you get me a screenshot of the file tree?

I'm familiar with ripping from Android and PC Unity games, no idea about Switch file structure.
 
I used a tool called "hactool" to unpack/decrypt the game file, I got two directories "GameFiles" and "GameExecutable"

GameFiles with contain a "Data" directory with your usual Managed,Resources,StreamingAssets folders and level/sharedassets files
The metadata file is in GameFiles/Data/Managed/Metadata

GameExecutable contains these files :
main
main.npdm
rtld
sdk
subsdk0

"main" is the heaviest with 23838 kb
 
Last edited by kafji,
Off topic but I've been looking for unity rip tools for a long time thanks, every time i tried to have google be my friend I'm met with search results saying "would you want your work decompiled, you shouldn't decompile someone's work"

Thank you again for the links :)
 
Thanks for this, but I was more thinking about decompiling the game rather than ripping assets, which I already know how to do

you best bet is asking the developers of to attempt to add support for it.
I think it's the best solution thanks, I just hope the inactivity doesn't mean the project is abandoned
 

Site & Scene News

Popular threads in this forum