atlanticaccent / starsector-mod-manager-rust

A mod manager for Starsector, a space fleet-battle and economics simulator. This time written in Rust.
https://atlanticaccent.github.io/starsector-mod-manager-rust/
MIT License
33 stars 1 forks source link

Support symbolically linked mod folders #72

Closed atlanticaccent closed 3 years ago

atlanticaccent commented 3 years ago

Bug report indicates that folders that are represented in the mod folder by a symbolic link are invisible to the application/are not read.

I believe this stems from https://github.com/atlanticaccent/starsector-mod-manager-rust/blob/0f847149d1998c89ad708a0bdd2bb47682243086/src/gui/mod_list.rs#L632 as there is an additional file type for symlinks. Hopefully, just adding an or clause including symlinks here should be enough.

I'm currently attempting to build a test case to make sure the fix works.

Note: only some filesystems support symlinks (eg: NTFS does, exFAT doesn't)