ROM Hack Question About the main file in exefs folder

  • Thread starter Thread starter zellfy
  • Start date Start date
  • Views Views 20,559
  • Replies Replies 9

zellfy

Member
Newcomer
Joined
Mar 8, 2019
Messages
22
Reaction score
1
Trophies
0
Age
35
XP
159
Country
China
Is there someone know how to edit the code in main file of exefs folder.
Or some tools to do it.
Please, I need to translate a game to another lanuage, so I have to rewrite the code so that I can set the path to my own font Atlas.
 
What you need:
> nx2elf & elf2nso for decompressing and compressing main file
https://github.com/shuffle2/nx2elf
https://github.com/switchbrew/switch-tools

In attachment i uploaded compiled binaries for this tools.
Decompress.bat will decompress main to main.elf
Compress.bat will compress main.elf to main.nso - just rename to main
Ignore errors if it will show something - it's still good to edit.

> IDA Pro 7 (not free version) with SwitchIDAProLoader or nxo64.py for deassembling (it's loading original main file, don't try to open with them decompressed main files)
https://github.com/reswitched/loaders/
https://github.com/pgarba/SwitchIDAProLoader

And just wait until app will show "idle" in left lower corner of app (it will play windows jingle). If you do something in IDA when it's deassembling code, it will slow down dramatically.
 

Attachments

Last edited by masagrator,
What you need:
> nx2elf & elf2nso for decompressing and compressing main file
https://github.com/shuffle2/nx2elf
https://github.com/switchbrew/switch-tools

In attachment i uploaded compiled binaries for this tools.
Decompress.bat will decompress main to main.elf
Compress.bat will compress main.elf to main.nso - just rename to main
Ignore errors if it will show something - it's still good to edit.

> IDA Pro 7 (not free version) with SwitchIDAProLoader or nxo64.py for deassembling (it's loading original main file, don't try to open with them decompressed main files)
https://github.com/reswitched/loaders/
https://github.com/pgarba/SwitchIDAProLoader

And just wait until app will show "idle" in left lower corner of app (it will play windows jingle). If you do something in IDA when it's deassembling code, it will slow down dramatically.


upload_2019-3-19_11-2-29.png


It dosen't work bro.
 

Attachments

  • upload_2019-3-19_11-2-29.png
    upload_2019-3-19_11-2-29.png
    71 KB · Views: 381
Which redists are needed to run nx2elf?
I have installed c++ redist 2015-2022 for both x86 and x64 and it still doesn't launch because of missing the following files:
UCRTBASED.DLL
MSVCP140D.DLL
VCRUNTIME140D.DLL

Thanks in advance.
 
What you need:
> nx2elf & elf2nso for decompressing and compressing main file
https://github.com/shuffle2/nx2elf
https://github.com/switchbrew/switch-tools

In attachment i uploaded compiled binaries for this tools.
Decompress.bat will decompress main to main.elf
Compress.bat will compress main.elf to main.nso - just rename to main
Ignore errors if it will show something - it's still good to edit.

> IDA Pro 7 (not free version) with SwitchIDAProLoader or nxo64.py for deassembling (it's loading original main file, don't try to open with them decompressed main files)
https://github.com/reswitched/loaders/
https://github.com/pgarba/SwitchIDAProLoader

And just wait until app will show "idle" in left lower corner of app (it will play windows jingle). If you do something in IDA when it's deassembling code, it will slow down dramatically.
I`m lost, what should I do?
Screenshot 2023-12-06 092757.png

Post automatically merged:

I used Il2CppDumper GUI 2.1.0 with main(.nso) and global-metadata.dat and got these files
Can I continue with main(.nso)?
Screenshot 2023-12-06 093512.png
 
Last edited by morarin,
This "advise" is outdated as f.
For IDA use this, read readme

https://github.com/TSRBerry/nxo64

Then when loading original main it should detect by default that it's compatible with nxo64, don't change architecture
thank you so much :)
Post automatically merged:

I`ve never installed requirements.txt and got a few error messages and managed to solve ... done?

Screenshot 2023-12-06 171018.png


for someone like me
with command prompt
①pip install --upgrade pip
②install this https://aka.ms/vs/17/release/vs_BuildTools.exe

Post automatically merged:

This "advise" is outdated as f.
For IDA use this, read readme

https://github.com/TSRBerry/nxo64

Then when loading original main it should detect by default that it's compatible with nxo64, don't change architecture
after installing nxo64, I tried to open a plain main file and got this error message :(
what`s going on?
Screenshot 2023-12-07 130440.png
 
Last edited by morarin,

Site & Scene News

Popular threads in this forum