When adding a shortcut to Steam for the scenario where the live rename logic fails the shortcuts are limited to two formats: "[platform] game" and "game (platform)"
Add a generic system where the user may type in what they would like in a similar format to the -name command line flag.
Concerns: If the platform name is blank, empty ()s or []s could occur. The hard coded logic for the 2 existing formats bypass this issue by omitting the empty parenthesis. A method of resolving this for custom formats will be needed. it might be best to simply have a platform filter when adding shortcuts. Another option is to add some sort of custom syntax, such as:
?platform?[?%platform%?platform?]?
This would translate as ' if platform is set, write "[", then the platform, then "]" ' which might be enough of a solution.
When adding a shortcut to Steam for the scenario where the live rename logic fails the shortcuts are limited to two formats: "[platform] game" and "game (platform)"
Add a generic system where the user may type in what they would like in a similar format to the -name command line flag.
Concerns: If the platform name is blank, empty ()s or []s could occur. The hard coded logic for the 2 existing formats bypass this issue by omitting the empty parenthesis. A method of resolving this for custom formats will be needed. it might be best to simply have a platform filter when adding shortcuts. Another option is to add some sort of custom syntax, such as:
This would translate as ' if platform is set, write "[", then the platform, then "]" ' which might be enough of a solution.