mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-16 07:50:28 +02:00
Also respect Windows absolute paths.
This commit is contained in:
1 parent
87781736c4
commit
49983fa1e4
1 file changed
+5
@@ -475,6 +475,11 @@ const std::string Config::FindConfigFile(const std::string &baseFilename) {
|
||||
if (baseFilename.size() > 1 && baseFilename[0] == '/') {
|
||||
return baseFilename;
|
||||
}
|
||||
#ifdef _WIN32
|
||||
if (baseFilename.size() > 3 && baseFilename[1] == ':' && (baseFilename[2] == '/' || baseFilename[2] == '\\')) {
|
||||
return baseFilename;
|
||||
}
|
||||
#endif
|
||||
|
||||
for (size_t i = 0; i < searchPath_.size(); ++i) {
|
||||
std::string filename = searchPath_[i] + baseFilename;
|
||||
|
||||
Reference in new issue
Block a user