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

Change location of .vegastrike folder on Windows - 0.8.x #615

Merged
merged 11 commits into from
Dec 7, 2021

Conversation

stephengtuggy
Copy link
Contributor

@stephengtuggy stephengtuggy commented Dec 5, 2021

Thank you for submitting a pull request and becoming a contributor to the Vega Strike Core Engine.

Please answer the following:

Code Changes:

Issues:

Purpose:

  • What is this pull request trying to do? Port Fix/CodeQL Warnings 2021-09 (Part 1) #551 to 0.8.x, and then change location of .vegastrike and .pu folders on Windows, from "My Documents" to C:\Users\<user>\AppData\Local
  • What release is this for? 0.8.x; 0.9.x pending
  • Is there a project or milestone we should apply this to? 0.8.x; 0.9.x pending

@stephengtuggy stephengtuggy added enhancement Compiler_Warnings Issues that pertain to compiler warnings labels Dec 5, 2021
@stephengtuggy stephengtuggy added this to the 0.8.x milestone Dec 5, 2021
@stephengtuggy stephengtuggy self-assigned this Dec 5, 2021
@Loki1950
Copy link
Member

Loki1950 commented Dec 5, 2021

BTW that is the location that 0.05 placed the config file so there should be #Define with the relevant code still about.

Copy link
Member

@BenjamenMeyer BenjamenMeyer left a comment

Choose a reason for hiding this comment

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

LGTM, but one question: does it preserve the legacy location?

@stephengtuggy
Copy link
Contributor Author

BTW that is the location that 0.05 placed the config file so there should be #Define with the relevant code still about.

Really? I thought I remembered 0.5.x trying to store all the data under Program Files.

Sure enough, looks like you're right. The My Documents location was introduced by @pheonixstorm in 0d8aadd , in 2012. However, did that make it into 0.5.1r1, the last release from SVN?

@stephengtuggy
Copy link
Contributor Author

stephengtuggy commented Dec 5, 2021

I see that 0.5.1.r1 was released April 1, 2012: https://forums.vega-strike.org/viewtopic.php?f=0&t=18088 . 0d8aadd was committed July 22, 2012. So I don't think that change made it into any of the releases until we switched over to GitHub, at which point VS was no longer playable on Windows anyway.

@stephengtuggy
Copy link
Contributor Author

The commit before that, 53de752 , dated April 16, 2012, used getenv("USERPROFILE") . And the commit before that is the one with the behavior I remember: 97fb92c , dated October 1, 2003.

@stephengtuggy stephengtuggy merged commit e72b292 into vegastrike:0.8.x Dec 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Compiler_Warnings Issues that pertain to compiler warnings enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants