Skip to content

feat: launcher data folder - #767

Open
rozwader wants to merge 3 commits into
mainfrom
feat/launcher-data-folder
Open

feat: launcher data folder#767
rozwader wants to merge 3 commits into
mainfrom
feat/launcher-data-folder

Conversation

@rozwader

Copy link
Copy Markdown
Collaborator

Description

  1. Added choosing disk for a fresh install of OneClient
  • as requested settings.json always stay on the default disk, user has no way to change it thru OneClient UI (auth.json also stays). Now the Polyfrost folder on default disk will always take about 3KB of space
  1. Added migration option for users who already have OneClient installed
  2. Added protection from possible bugs/errors with settings.json
  3. Changed the default directory for OneClient data
  • (Windows) "AppData/Roaming/Polyfrost/OneClient
  • (MacOS) "~/Library/Application Support/Polyfrost/Oneclient"
  • (Linux) "~/.local/share/Polyfrost/OneClient"

Related Issue(s)

#755

How to test

First Feature

  1. Delete all data associated with Polyfrost
  2. Start the launcher
  3. You should see a view where you are prompted too choose a disk
  4. Choose a different disk than the default one

Second Feature

  1. If you already have everything installed go to the settings/storage view
  2. On "Game data folder" click "Change"
  3. Choose a place for data
  4. Wait for the migration
  5. Restart the launcher
  6. Get back to the settings/storage and (optional) remove the old files

Third Feature
Haven't tested that one, someone would have to manually break settings.json for this protection to kick in

Fourth Feature
Test on MacOS, Linux if the fresh installation of OneClient goes to the dirs listed above (on windows it works already)

Documentation

No

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In review

Development

Successfully merging this pull request may close these issues.

2 participants