Skip to content

Match gmod's hardcoded filsystem search path order - #248

Merged
marchc1 merged 3 commits into
SourceDotNET:mainfrom
Earu:fix/filesystem-search-order
Nov 12, 2026
Merged

marchc1 merged 3 commits into
SourceDotNET:mainfrom
Earu:fix/filesystem-search-order

Conversation

@Earu

@Earu Earu commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Basically GMod ignores the SearchPaths in gameinfo.txt.

filesystem_stdio sets up a fixed list of search paths, each in a priority group. Sdn has every gameinfo path to GModCore in file order, so the hl2 VPKs in sourceengine was loaded before the gamedir. So if a file was in both, it would get hl2's one.

For example, particles/particles_manifest.txt loaded hl2's manifest instead of garrysmod's.

EDIT: This also fixes game mounting. The extra folders (episodic, ep2, lostcoast) were never mounted because the manifest stores them as a block and they were read as a string. Bundled games that aren't mounted now fallback to sourceengine/content_<folder>.vpk like gmod, this is important so that CS:S content works without CS:S installed.

@Earu
Earu marked this pull request as ready for review November 12, 2026 12:48
@marchc1
marchc1 merged commit 1df5ef1 into SourceDotNET:main Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants