NiklasEi / bevy_asset_loader

Bevy plugin helping with asset loading and organization
Apache License 2.0
481 stars 53 forks source link

Mapped collections must be indexed using backslashes when running on Windows #135

Closed elijaharita closed 1 year ago

elijaharita commented 1 year ago

For example, I have an asset at part_types/test_cube.ron, and I can index it as such on Linux. But on Windows the resource gets inserted to the asset map with the key part_types\\test_cube.ron.

I think the path strings should be normalized to use slashes, or possibly the map could be indexed by a path type instead of a string.

NiklasEi commented 1 year ago

Yeah, those keys should be the same on different OS. I think strings with simple slashes would be the nicer solution. That also mimics the behavior of Bevy assets.