SimpleModManager icon indicating copy to clipboard operation
SimpleModManager copied to clipboard

Feature Request: Symlinks over copy & pasting files

Open LokeYourC3PH opened this issue 3 years ago • 6 comments

So, I have wondered why SMM just doesn't create symlinks over copying, pasting and deleting files. As far as I can tell, it would create far less issues (as in possibly having left over files left behind after deactivating/deleting mods, as the symlinks would stop working rather than the files being left behind in places like "contents" and "romfs"), make activation instantaneous (because it only creates symbolic links to the files, rather than copying tens to possibly hundreds of megabytes or even gigabytes for really large mods or modpacks), and it would also make mod merging/multi mod usage easier as it would just replace symlinks in the order that the mods have been activated in, rather than replacing files of individual mods and potentially breaking the load order or even worse breaking mods themselves.

So why isn't this a feature or the way SMM works? It would be great if SMM worked this way instead, and I think it would make SMM safer, faster and more reliable.

LokeYourC3PH avatar Mar 20 '22 13:03 LokeYourC3PH

Fat32 does not support symlinks

KP2048 avatar Apr 06 '22 17:04 KP2048

Neither does exfat

KP2048 avatar Apr 06 '22 17:04 KP2048

Hmm yeah you're right, kinda forgot about that because I forgot how garbage FAT32 is in comparison to modern filesystems 😂 I assume there's no equivalent or better solution to this other than keeping it the way it is?

LokeYourC3PH avatar Apr 12 '22 11:04 LokeYourC3PH

Unless Nintendo decides to support btrfs, or someone in homebrew figures out how to make a driver for it, I don’t see how this could be done. (Windows can natively read btrfs and so can Linux and it supports both hard links and symbolic links as well as true file system compression and has way better read/write speeds)

KP2048 avatar Apr 12 '22 13:04 KP2048

I agree fat32 is hot garbage but Nintendo decided to use it because most operating systems can read it

KP2048 avatar Apr 12 '22 13:04 KP2048

The only way to do links in fat32 is to manually alter the entry in the file system. Unfortunately most file system checkers like fsck will see that as corruption and “fix” it by undoing the modification.

KP2048 avatar Apr 12 '22 13:04 KP2048