Skip to content

fix: Relativize paths in examples/**/*.map.json#46

Open
davewa wants to merge 1 commit intojbuehler23:mainfrom
davewa:43-relative-paths
Open

fix: Relativize paths in examples/**/*.map.json#46
davewa wants to merge 1 commit intojbuehler23:mainfrom
davewa:43-relative-paths

Conversation

@davewa
Copy link

@davewa davewa commented Mar 13, 2026

Closes:

Manually changed the *.map.json files, replacing absolute file paths with assets-path-relative paths to the same files. Also changed all \\ to / in paths.

Testing

Passes all PR checks:

cargo fmt --all
cargo clippy --workspace -- -D warnings
cargo test --workspace

cargo run --example collision_demo works correctly on macOS 26.3.1 (Apple M2), and Windows 11 (aarch64).

Notes

This only edits the *.map.json files in the examples/ folder, there are no code changes. Creating a new project using the editor still writes absolute paths into the .map.json file for the project. I'd prefer to address that in a separate PR, possibly using diff_paths to handle creating relative paths to files outside of the assets folder.

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.

1 participant