Revert changes from "4c8e1ccf - Fixed windows build and updated tests to reflect changes of escape character from "&" to "\"" in "apps/openmw_test_suite/openmw/options.cpp"

This commit is contained in:
Project579 2022-06-11 19:15:24 +02:00
parent e97eeca281
commit cf0af87c80
2 changed files with 16 additions and 14 deletions

View file

@ -432,7 +432,9 @@ std::istream& operator>> (std::istream& istream, MaybeQuotedPath& MaybeQuotedPat
// If it doesn't start with a double quote, read the whole thing verbatim
if (istream.peek() == '"')
{
istream >> static_cast<std::filesystem::path&>(MaybeQuotedPath);
std::string intermediate;
istream >> std::quoted(intermediate, '"', '&');
static_cast<std::filesystem::path&>(MaybeQuotedPath) = intermediate;
if (istream && !istream.eof() && istream.peek() != EOF)
{
std::string remainder{std::istreambuf_iterator(istream), {}};