Command line parameter to support dot slashes in VScript file read calls #274
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds a command line parameter (
-script_dotslash_read
) to allow dot slashes in VScript file read functions, namelyFileToString
,FileExists
, andKeyValuesRead
. This would allow any file outside of thevscript_io
directory to be read using VScript.Individual users can specify this in their command line parameters to allow it, but this can also be enabled by individual mods by using the
CommandLine
section ingameinfo.txt
:This feature was requested for the specific use case of being able to read save files in an adjacent sourcemod using VScript. An equivalent parameter for writing to files will not be added at this time.
PR Checklist
develop
branch OR targets another branch with a specific goal in mind