ROM Hack LayeredFS faster Loading?

  • Thread starter Thread starter ehnoah
  • Start date Start date
  • Views Views 2,367
  • Replies Replies 8

ehnoah

Well-Known Member
Member
Joined
Oct 9, 2012
Messages
926
Reaction score
211
Trophies
1
XP
823
Country
Netherlands
So currently we're translating Story of Season,

sadly it has over 500 Files which makes the loading super slow when using the mod as LayeredFS. Is there any way to make the game load fast again?
Like pack the RomFS to an NSP again?
 
Like pack the RomFS to an NSP again?
This would limit your release only to pirates and potentially ban anyone who tries to use it.

You can't do much about it. This is how access to physical drive for hundreds of files works instead of blob. It got much slower in recent releases because faster method was causing issues with games containing tens of thousands files.
 
Last edited by masagrator,
Can layeredfs use a romfs file instead of 'loose' files? I feel like it can, but I haven't checked. If so, and if that works out faster, you could include instructions for users who want to repack a romfs file themselves?
 
Can layeredfs use a romfs file instead of 'loose' files? I feel like it can, but I haven't checked. If so, and if that works out faster, you could include instructions for users who want to repack a romfs file themselves?
I don't remember any tool that can pack files to romfs.bin (only that you can extract it). So I don't think so. But I will ask on ReSwitched if layeredfs supports romfs blob.
Ofc this would mean that there must be introduced priority if blob and loose files have the same file. And I didn't see anything about this issue.
 
Last edited by masagrator,
I don't remember any tool that can pack files to romfs.bin (only that you can extract it). So I don't think so. But I will ask on ReSwitched if layeredfs supports romfs blob.
Ofc this would mean that there must be introduced priority if blob and loose files have the same file. And I didn't see anything about this issue.
I feel like I remember reading that the priority is loose files first, then romfs.bin, then the game's original romfs - however I can't find any layeredfs details in the docs on github so idk where I read this or if I dreamt it.
 
Okay, found it.

  • fs.mitm will parse the base RomFS image for a game, a RomFS image located at /atmosphere/titles/<title ID>/romfs.bin, and all loose files in /atmosphere/titles/<title ID>/romfs/, and merge them together into a single RomFS image.
  • When merging, loose files are preferred to content in the SD card romfs.bin image, and files from the SD card image are preferred to those in the base image.
Now only how to pack to romfs.bin
 
  • Like
Reactions: hippy dave
Wait, can't we pack new romfs.bin for homebrew etc?

e: hacpack: https://github.com/The-4n/hacPack
I don't see in hacpack option to build just romfs.bin. it's building it for NCA. So it requires having keys. Building romfs.bin shouldn't require keys.
Homebrew has "romfs_build". Never used it manually, only as part of makefile.
 

Site & Scene News

Popular threads in this forum