Skip to content

Align filenames with the Qt spec#39

Draft
LossRain wants to merge 2 commits intopuyonexus:masterfrom
LossRain:filename
Draft

Align filenames with the Qt spec#39
LossRain wants to merge 2 commits intopuyonexus:masterfrom
LossRain:filename

Conversation

@LossRain
Copy link
Copy Markdown
Contributor

Until now we have been largely hard-coding the location of user files for PuyoVS. While this approach is okay it might turn back on us, especially when we account for modding support as we need to make sure that the user has access to the system assets at runtime, because otherwise we will not be able to store cached / permanently downloaded add-ons downloaded from within the game.

This is far from being complete, we need to thoroughly test that these folders are actually readable by the user and that we can go ahead without completely breaking the game and make the updater aware of the changes to prevent additional breakage.

PS: A bit controversial but I believe that on Windows we should just hide our assets in C:\ProgramFiles as creating a root level folder seems extremely odd and bloaty.

LossRain and others added 2 commits November 11, 2022 11:25
We want to align ourselves to the standard paths when it comes to User Data,
Cache and Configs on most possible platforms. This is partially in an effort
to ease mod creation by guaranteeing user access to User Data folders.

This commit might need revisioning for completely portable installations. This
commit may be breaking and might require intervention by the updater.
@jchv
Copy link
Copy Markdown
Contributor

jchv commented Nov 11, 2022

Root level folder is possibly necessary until we have a better auto update strategy. The reason is that directories in Program Files are only writable for admin users.

Also, I do agree that we should move towards this, but I'd also like to continue supporting "portable" installations. The method I propose for doing this is allowing there to be a configuration file next to the binary that can override the paths used. That way, the current auto update can ship a file that keeps the game working for them.

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