Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Linux scriptslog path #4

Merged
merged 3 commits into from
Feb 24, 2022

Conversation

abheekda1
Copy link
Contributor

Adds support for the Linux scriptslog.txt under the Steam prefix (non-functional with GOG yet). Anything other than Linux or Windows throws and unimplemented exception.

pub const SCRIPTSLOG_FILE_NAME: &str = "scriptslog.txt";
pub const LINUX_STEAM_PFX_PATH: &str = ".local/share/Steam/steamapps/compatdata/292030/pfx/drive_c/users/steamuser/Documents"; // it's ok to use forward slashes because this is Linux-specific
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure this path is universal for all linux steam installations? Maybe a better solution would be to just allow passing a custom path to the scriptslog in the CLI?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the standard Steam prefix location and I think we could keep this as default, but yeah I think it would be better for people with a custom Steam location or a GOG installation if we allowed user input. Good thinking.

Copy link
Owner

@SpontanCombust SpontanCombust Feb 22, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should I close this PR and add the option for custom path instead then?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be better if you added commits to this PR rather than rewrite it.

@SpontanCombust SpontanCombust merged commit abc0a68 into SpontanCombust:master Feb 24, 2022
@abheekda1 abheekda1 deleted the linux-scriptslog branch February 24, 2022 16:23
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.

2 participants