ThiaudioTT / hoi4-presence

Hearts of Iron IV presence for Discord!
MIT License
13 stars 10 forks source link

Check for valid game storage path #16

Closed Wolfmyths closed 1 year ago

Wolfmyths commented 1 year ago

For issue #13

Added a while loop that checks if the game storage path is valid. If no exceptions are raised, then it will break out of the while loop.

It also checks for the settings.txt file if the path is valid.

If an error is raised, it will specify what it can't find and ask the user to try again.

I was reading pull request #15 and tried my best to accomplish what you were talking about on there. I don't own or have even played a hearts of iron game, but I created a small environment to bug test this commit.

ThiaudioTT commented 1 year ago

Thank you for opening the PR!

Edit these changes in the review and I will test.

ThiaudioTT commented 1 year ago

Okayy I will test here and merge the PR