rster2002 / ed-journals

Work in progress journal parsing and utilities for Elite Dangerous written in Rust.
https://crates.io/crates/ed-journals
MIT License
3 stars 4 forks source link

Automatic journal location detection based on platform. #11

Closed rster2002 closed 4 months ago

rster2002 commented 4 months ago

Add a function for detecting where the journal directory is located taking platform into account.

Somfic commented 4 months ago

If I’m not mistaken Elite has been discontinued on Mac, and is now only running on Windows, Xbox One and PlayStation 4. Though I am not sure we can run ed-journals, or any custom application, on the console platforms (don’t quote me on this), leaving only Windows as a viable platform for the library.

I was wondering what you meant with “taking platform into account” if we can only run on Windows? (maybe when using Wine on Linux distros?)

The journals are on Windows always™️ located in user profile/Saved Games/Frontier Developments/Elite Dangerous.

rster2002 commented 4 months ago

Primarily Linux and Windows. For Windows it's pretty straight forward forward, but for Linux depending on which compatibility layer you're using it can be it different places.

I actually started this project because I found tooling for Linux to be a bit iffy...

rster2002 commented 4 months ago

This post on the forum has some of the locations pointed out (for Linux at least) but haven't tested all of them yet. https://forums.frontier.co.uk/threads/solved-linux-journal-files.507750/post-7716832

Probably just has to be a function that has all of these paths listed and just calls .exists() in the path returning the first match.