Skip to content

Commit ca65e39

Browse files
atlv24mockersf
andauthored
Update crates/bevy_asset/src/io/embedded/mod.rs
Co-authored-by: François Mockers <[email protected]>
1 parent ff7e38e commit ca65e39

File tree

1 file changed

+1
-1
lines changed
  • crates/bevy_asset/src/io/embedded

1 file changed

+1
-1
lines changed

crates/bevy_asset/src/io/embedded/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ pub fn _embedded_asset_path(
168168
file_path: &Path,
169169
asset_path: &Path,
170170
) -> PathBuf {
171-
let file_path = if cfg!(target_family = "wasm") {
171+
let file_path = if cfg!(not(target_family = "windows")) {
172172
// Work around bug: https://github.com/bevyengine/bevy/issues/14246
173173
// Note, this will break any paths on Linux/Mac containing "\"
174174
PathBuf::from(file_path.to_str().unwrap().replace("\\", "/"))

0 commit comments

Comments
 (0)