Closed badandbest closed 4 days ago
FileSystem.Mounted ignores files from libraries. This is really bad because it breaks every feature that relies on it.
FileSystem.Mounted
In the Code folder, create a file with the extension ".test".
Find all files in FileSystem.Mounted with the ".test" extension.
foreach ( var testExtension in FileSystem.Mounted.FindFile( "", "*.test", true ) ) { Log.Info( testExtension ); }
FileSystem only mounts the file in the game project.
Content in libraries needs to be mounted to FileSystem
Project.zip
This is likely the root cause of https://github.com/Facepunch/sbox-issues/issues/5522 because scss files also do not get mounted.
Alex confirms libraries aren't mounted.
Is there a reason for not mounting libraries? Does that break other features?
After 6 months we can finally use UI in libraries. 🎉
Describe the bug
FileSystem.Mounted
ignores files from libraries. This is really bad because it breaks every feature that relies on it.To Reproduce
In the Code folder, create a file with the extension ".test".
Find all files in FileSystem.Mounted with the ".test" extension.
FileSystem only mounts the file in the game project.
Expected behavior
Content in libraries needs to be mounted to FileSystem
Media/Files
Project.zip
Additional context
This is likely the root cause of https://github.com/Facepunch/sbox-issues/issues/5522 because scss files also do not get mounted.