PrivateProfileRedirector
PrivateProfileRedirector copied to clipboard
Quoted text produces an error
The problem:
If a value of an option contains text enclosed in quotation marks, an error will be generated.
Details:
Let's assume that the Fallout4.ini file contains the following line:
[General]
...
sStartingConsoleCommand=bat "batches\autoexec.txt"
and the file autoexec.txt (in <Fallout 4 Root dir>\batches subfolder) contains the following code:
coc ctest
Then, when the game starts without PrivateProfileRedirector being active, you (as a default PC char) will be teleported to the ctest cell and the console output will show these lines:
bat "batches\autoexec.txt"
Command: bat "batches\autoexec.txt"
> coc ctest
But if the game starts with PrivateProfileRedirector, you won't be teleported anywhere and the console window will show these lines:
bat "batches\autoexec.txt
Command: bat "batches\autoexec.txt
Syntax Error. Mismatched quotes.
You must enter a filename.