Store received savegames in save folder#1935
Store received savegames in save folder#1935DevOpsOfChaos wants to merge 2 commits intoReturn-To-The-Roots:masterfrom
Conversation
Flow86
left a comment
There was a problem hiding this comment.
I like the solution. simple and effective
9c5ddfe to
0a1af75
Compare
|
Tightened the implementation and regression test. The target folder is now created before assigning the received map/savegame path, so savegame transfers do not depend on the SAVE directory already existing. The regression test now sends actual compressed transfer data through Validation:
|
Flamefire
left a comment
There was a problem hiding this comment.
Should be ok, not sure if we should overwrite the users savegames with that received in multiplayer, but I guess that's rare enough
|
Thanks for the review. Good point. I’ll tighten the test so it focuses on the savegame path instead of duplicating the full connect protocol already covered by I’ll also make the path isolation explicit with The production change should stay unchanged; this should only need a test cleanup. |
|
Addressed both review points. The savegame-path test now uses an explicit I also moved the minimal connection setup into Validation:
|
This is still done, isn't it? |
|
Updated again. I removed the helper and the After that it only checks the savegame path handling:
Validation:
|
fa8f4c0 to
b0c6088
Compare
b0c6088 to
c16c857
Compare
|
now basically only a proper git squash/rebase is necessary to clean the git history |
755727a to
b68e731
Compare
@Flow86 Can you enable the squash-merge feature for this repo? IMO it is better to use that, than requiring force-pushes for (very) small changes where a single commit makes sense. For others an update is not (always) necessary and could be done by a merge too. As mentioned elsewhere this is quite common and doesn't break reviews, so I'd prefer that if updating at all. |
Summary
Motivation
Received map data is currently written to the played-maps folder unconditionally. This also affects
MapType::Savegame, leaving.savfiles inMAPS.Savegame transfers should not be stored as played maps.
Fixes #1846
Validation
Test_networklocally with VS2022 DebugGameClientTests/ClientStoresReceivedSavegamesInSaveFolderGameClientTests