KieronJ / rpsx

A PlayStation emulator written in Rust.
MIT License
42 stars 2 forks source link

Memory card directory not created automatically and gives unfriendly error #3

Closed DannyJJK closed 1 year ago

DannyJJK commented 2 years ago

Version: rpsx #8af932d OS: macOS Monterey 12.5 (21G72) Hardware: MacBook Pro (13-inch, 2019)

When I initially ran the emulator I had this error:

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }', src/psx/peripherals/memory_card.rs:68:36

I decided to take a look at the code and found the directory it was looking for: ./cards so I created this directory which stopped the error coming up.

If the user is expected to create this manually, a more friendly error message would be fine, or can this directory be created automatically by the emulator?

KieronJ commented 2 years ago

Yeah memory card I/O is fairly unfriendly at the moment. I can have it create the directory automatically which should be a lot more convenient.

There is also a timing bug I'm still trying to find which is affecting the ability to load and save many games.

KieronJ commented 1 year ago

This should be fixed by 5c0fe198832d8ae948038cccfc5da33d0246be8e. Thanks for raising this issue.