Repository navigation
Conversation
7fb08ab to
8723ea3
Compare
9a69940 to
3767abf
Compare
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Advanced
Run ID: 30171078-daf4-4191-a1f2-58a879ab62b0
📥 Commits
Reviewing files that changed from the base of the PR and between bfa3bbf and 2775f3dc2b0602aa72ebb07a92d09ece2a181953.
📒 Files selected for processing (5)
Core/GameEngine/Include/Common/FileSystem.hCore/GameEngine/Include/GameNetwork/FileTransfer.hCore/GameEngine/Source/Common/System/FileSystem.cppCore/GameEngine/Source/GameNetwork/FileTransfer.cppCore/Libraries/Include/Lib/PathUtil.h
Included review availability: Your plan provides up to 10 included reviews per hour; 1 remains after this review.
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to GitHub limitations.
🟡 Minor · Apply separator-aware parsing to fallback map labels. · GameState.cpp:1669
Generals/Code/GameEngine/Source/Common/System/SaveGame/GameState.cpp:1669
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick winApply separator-aware parsing to fallback map labels.
Both implementations now accept
/map paths but still search only for\when the map has no label. A save with an empty description can therefore display the full map path instead of the filename. (raw.githubusercontent.com)
Generals/Code/GameEngine/Source/Common/System/SaveGame/GameState.cpp#L1669-L1669: usegetMapLeafNameto set the fallback label.GeneralsMD/Code/GameEngine/Source/Common/System/SaveGame/GameState.cpp#L1669-L1669: usegetMapLeafNameto set the fallback label.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Advanced
Run ID: 134fc0bd-3ee2-47a2-b598-cd66c63ef7b0
📥 Commits
Reviewing files that changed from the base of the PR and between 2775f3dc2b0602aa72ebb07a92d09ece2a181953 and 3e76237a2b146e2bd9e481096cd9da0dde8cee13.
📒 Files selected for processing (2)
Generals/Code/GameEngine/Source/Common/System/SaveGame/GameState.cppGeneralsMD/Code/GameEngine/Source/Common/System/SaveGame/GameState.cpp
Included review availability: Your plan provides up to 10 included reviews per hour; 5 remain after this review.
3e76237 to
d4d5a3f
Compare
d4d5a3f to
a3b1ce8
Compare
a3b1ce8 to
8d7a3a6
Compare
8d7a3a6 to
187b2f9
Compare
[Medium impact] The supplied changes appear safe to merge.
|
Map transfer built the preview and companion file paths with a hard coded backslash, so a map path using
/produced mixed separators. The save game map path search also only looked for backslashes.Now the companion files are built in the map's own directory with its separator, and the save game search accepts either separator.
Todo:
-quickstart, and into a campaign missionNote
Handle both '/' and '' as path separators in map path lookups
FileTransfer(e.g.GetBasePathFromPath,GetFileFromPath,GetINIFromMap) previously searched only for backslashes; they now use newPathUtilhelpers (getLastPathSeparator,getFileName,isPathSeparator) that accept both separatorsPathUtil.isNativePathSeparatorandgetNativePathSeparator, and a newFileSystem.appendPathSeparatorhelper in FileSystem.cppFileTransfer.GetFileInMapDirectoryreuses the input path's own separator instead of hardcoding a backslashGameState.getMapLeafNameandGameState.getMapLeafAndDirNamein GameState.cpp and GameState.cpp now extract map leaf names after either separatorPathUtil.isPathSeparatornow accepts both separators on every platform, and map sibling paths (.ini,.str,.tgapreview, etc.) keep the input path's separator form rather than a hardcoded backslash; severalFileTransfergetters now take path parameters by const referenceMacroscope summarized 3e76237. (Automatic summaries will resume when PR exits draft mode or review begins).