mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
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:
parent
e97eeca281
commit
cf0af87c80
2 changed files with 16 additions and 14 deletions
|
@ -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), {}};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue