Introduce Path, start using it all over the place.

Still lots left to convert!

Convert GetSysDirectory to return Path.

More buildfixing

Remove unnecessary Path( constructors
This commit is contained in:
Henrik Rydgård committed 2021-05-13 10:39:16 +02:00
1 parent 2987b8c17a
commit 025bcb1673
123 files changed
+1321 -949

No files matched your search

+2 -2
View File
@@ -886,8 +886,8 @@ static void __SaveDecryptedEbootToStorageMedia(const u8 *decryptedEbootDataPtr,
}
const std::string filenameToDumpTo = g_paramSFO.GetDiscID() + ".BIN";
const std::string dumpDirectory = GetSysDirectory(DIRECTORY_DUMP);
const std::string fullPath = dumpDirectory + filenameToDumpTo;
const Path dumpDirectory = GetSysDirectory(DIRECTORY_DUMP);
const Path fullPath = dumpDirectory / filenameToDumpTo;
// If the file already exists, don't dump it again.
if (File::Exists(fullPath)) {