Memcard: Fix incorrect order of directory/filename path components for _pcsx2_meta_directory files

This commit is contained in:
RedPanda4552 2024-02-08 01:16:30 -05:00 committed by lightningterror
parent 6e7c6c205c
commit 8dc16827ea
1 changed files with 1 additions and 1 deletions

View File

@ -511,7 +511,7 @@ bool FolderMemoryCard::AddFolder(MemoryCardFileEntry* const dirEntry, const std:
dirEntry->entry.data.length++;
// set metadata
const std::string metaFileName(Path::Combine(Path::Combine(dirPath, "_pcsx2_meta_directory"), file.m_fileName));
const std::string metaFileName(Path::Combine(Path::Combine(dirPath, file.m_fileName), "_pcsx2_meta_directory"));
if (auto metaFile = FileSystem::OpenManagedCFile(metaFileName.c_str(), "rb"); metaFile)
{
if (std::fread(&newDirEntry->entry.raw, 1, sizeof(newDirEntry->entry.raw), metaFile.get()) < 0x60)