mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2026-04-02 10:16:50 +02:00
Fix for paths starting with // or \\ in windows
This commit is contained in:
@@ -305,9 +305,11 @@ std::string Configuration::convertToAbsolutePath(std::string prefix, std::string
|
||||
}
|
||||
|
||||
// check to see if it is already an absolute path
|
||||
if((first != Utils::pathSeparator) &&
|
||||
//(first != '.') &&
|
||||
(second != ':'))
|
||||
#ifdef WIN32
|
||||
if((first != '\\') && (first != '/') && (second != ':'))
|
||||
#else
|
||||
if(first != Utils::pathSeparator)
|
||||
#endif
|
||||
{
|
||||
path = Utils::combinePath(prefix, path);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user