Skip to content

fix(Vfs): merge directories differing only in case in mount_host - #135

Open
Reveares wants to merge 1 commit into
GothicKit:mainfrom
Reveares:fix/mount-host-twin-dirs
Open

Reveares wants to merge 1 commit into
GothicKit:mainfrom
Reveares:fix/mount-host-twin-dirs

Conversation

@Reveares

Copy link
Copy Markdown
Contributor

On a case-sensitive file system, mount_host kept only one of two host directories whose names differ only in case (Data / data). load_directory passes every entry to VfsNode::create, which first removes an existing child with the same case-insensitive name. Which directory survived depended on the listing order.

load_directory now reuses an existing directory child, as mount.

I hit this problem from an archive that stored _work\data and unpacked it on Linux next to the game's _work\Data.

@lmichaelis lmichaelis self-assigned this Nov 15, 2026
@lmichaelis lmichaelis added the bug Something isn't working label Nov 15, 2026
@lmichaelis

Copy link
Copy Markdown
Member

Hiya, that's a good observation. No notes, everything check out. Will merge after rebase onto main. Thank you very much :)

@Reveares
Reveares force-pushed the fix/mount-host-twin-dirs branch from 93933cb to c73068d Compare November 15, 2026 15:59

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants