mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-29 09:13:39 +01:00
Change Copy, Rename to use Path. Remove std::string version of Exists().
Buildfixes Buildfix
This commit is contained in:
1 parent
0d80362c30
commit
ae06499a0c
24 files changed
+176
-128
No files matched your search
+2
-2
@@ -1212,7 +1212,7 @@ void Config::Load(const char *iniFileName, const char *controllerIniFilename) {
|
||||
});
|
||||
|
||||
iRunCount++;
|
||||
if (!File::Exists(currentDirectory))
|
||||
if (!File::Exists(Path(currentDirectory)))
|
||||
currentDirectory = "";
|
||||
|
||||
Section *log = iniFile.GetOrCreateSection(logSectionName);
|
||||
@@ -1249,7 +1249,7 @@ void Config::Load(const char *iniFileName, const char *controllerIniFilename) {
|
||||
for (auto it = pinnedPaths.begin(), end = pinnedPaths.end(); it != end; ++it) {
|
||||
// Unpin paths that are deleted automatically.
|
||||
const std::string &path = it->second;
|
||||
if (startsWith(path, "http://") || startsWith(path, "https://") || File::Exists(path)) {
|
||||
if (startsWith(path, "http://") || startsWith(path, "https://") || File::Exists(Path(path))) {
|
||||
vPinnedPaths.push_back(File::ResolvePath(path));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user