You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on both windows and linux, and as you know, they have different path separators. Currently BMS uses the asset's path to determine which script must be loaded where. However, if I do the following on windows
ScriptComponent::new(vec!["foo/bar.baz"])
I can't actually load the script into the entity because the asset is loaded as "foo\bar.baz". I don't want to keep track of two copies of each path changing only the separator character. I think the path should be normalised to convert \ into /
The text was updated successfully, but these errors were encountered:
Why not use PathBuf/Path here to avoid any issues?
You can already do this by overriding ScriptAssetSettings, and specifically the AssetPathToScriptIdMapper, if you override there, you will be able to normalize all ScriptId's
I am not sure asset paths always correspond to file paths, so I am a bit wary of making many assumptions here
I'm working on both windows and linux, and as you know, they have different path separators. Currently BMS uses the asset's path to determine which script must be loaded where. However, if I do the following on windows
I can't actually load the script into the entity because the asset is loaded as "foo\bar.baz". I don't want to keep track of two copies of each path changing only the separator character. I think the path should be normalised to convert
\
into/
The text was updated successfully, but these errors were encountered: