Read/write save games from/to the savefiles folder#6083
Read/write save games from/to the savefiles folder#6083fluffyfreak merged 1 commit intopioneerspacesim:masterfrom
Conversation
|
SaveGameManager should likely provide a method to retrieve the savefile path. The existing method to retrieve the directory name is meant to be used for logging purposes only (hence why it returns an absolute filesystem path), but for the use of tooling I can definitely endorse providing methods to query the savefile directory within the FileSystem API. |
Small problem, this requires me to pull in Whereas this PR is currently quite a self contained change for a utility tool. It's far more hassle than it's worth just so I can type |
|
Hmm, yeah, good point. As-is, this is fine. I had originally required the use of the |
I was trying to use the
savegamedump.exeto extract the JSON for a few save game file when debugging a crash issue reported on Discord. It refused to load the file and I realised that it was looking in the root of the userfiles location. However the savegames are actually saved in the sub-directorysavefilesThis is adraftPR because I wonder if there's a better way to do the pathing. Otherwise I've tested it and it all worksI've tested it and it all works