config: sometimes wine exe has forward-slashes instead

pull/43/head
jackun 4 years ago
parent 65b90fc01b
commit 6a45ac84b3
No known key found for this signature in database
GPG Key ID: 119DB3F1D05A9ED3

@ -67,7 +67,8 @@ void parseConfigFile() {
while (std::getline(stream, line, '\0'))
{
if (!line.empty()
&& (n = line.find_last_of('\\')) != std::string::npos
&& ((n = line.find_last_of('\\')) != std::string::npos
|| (n = line.find_last_of('/')) != std::string::npos)
&& n < line.size() - 1) // have at least one character
{
auto dot = line.find_last_of('.');

Loading…
Cancel
Save