pd-rs / crankstart

A barely functional, wildly incomplete and basically undocumented Rust crate whose aim is to let you write Games for the Playdate handheld gaming system in Rust.
MIT License
235 stars 24 forks source link

Assets are inaccessible when Crank.toml project name includes a hyphen #89

Open AdamBlance opened 6 months ago

AdamBlance commented 6 months ago

Steps to reproduce (have only tested on Windows):

  1. Clone the crankstart repo
  2. Run cargo clean
  3. Run crank run --release --example hello_world
  4. Project should launch successfully in the simulator
  5. Change the project name in Crank.toml from hello_world to hello-world
  6. Run cargo clean again
  7. Run crank run --release --example hello_world again
  8. Game fails to launch with Got error while creating game: file examples/assets/heart not found: No such file

Happy to document this in the README in the meantime if anyone else can reproduce the problem.

boozook commented 6 months ago

Thanks! I totally agree. This should be fixed and mentioned in README before.