Atmosphere-NX / Atmosphere

Atmosphère is a work-in-progress customized firmware for the Nintendo Switch.
GNU General Public License v2.0
15.01k stars 1.24k forks source link

Modding romfs in Fire Emblem: Engage causes Atmosphere to crash. #2016

Closed ayssia closed 1 year ago

ayssia commented 1 year ago

Bug Report

What's the issue you encountered?

I've unpacked FE:Engage and modded a file inside it. I placed the modded file under atmosphere\contents\TITLEID\romfs\Data\... like what I did to other games, and atmosphere crashed. Further testing showed that even without modding the file it would cause a crash.

How can the issue be reproduced?

  1. Unpack Fire Emblem: Engage.
  2. Choose a file at random. For example, romfs\Data\StreamingAssets\aa\Switch\fe_assets_gamedata\person.xml.bundle. No need to modify this file.
  3. Copy the unchanged file to atmosphere\contents\ .
  4. Run the game. Atmosphere crashed.

A fatal error occured when running Atmosphere. Error Desc: Data Abort (0x101)

Crash Report

It's a binary file so I converted it to base64: https://gist.github.com/ayssia/fd0f4901740362030c8587e46e89e393

System Firmware Version

15.0.1

Environment?

Hekate 5.9.0 with Official Atmosphere 1.4.0, SysNAND. Test with all kips/sysmodules disabled.

Additional context?

I guess the crash is caused by too many files in the unpacked game, there are ~178,000 files.

SciresM commented 1 year ago

Piracy not supported. Please re-open this issue on Friday.