Make sure extra data is initialized in DirectorySaveDataFileSystem

This commit is contained in:
Alex Barney 2021-05-18 20:28:33 -07:00
parent a1477cc9f9
commit e99d05cc84

View file

@ -251,14 +251,14 @@ namespace LibHac.FsSystem
// Only the working directory is needed for non-journaling savedata // Only the working directory is needed for non-journaling savedata
if (!_isJournalingSupported) if (!_isJournalingSupported)
return Result.Success; return InitializeExtraData();
rc = _baseFs.GetEntryType(out _, CommittedDirectoryPath); rc = _baseFs.GetEntryType(out _, CommittedDirectoryPath);
if (rc.IsSuccess()) if (rc.IsSuccess())
{ {
if (!_isJournalingEnabled) if (!_isJournalingEnabled)
return Result.Success; return InitializeExtraData();
rc = SynchronizeDirectory(WorkingDirectoryPath, CommittedDirectoryPath); rc = SynchronizeDirectory(WorkingDirectoryPath, CommittedDirectoryPath);
if (rc.IsFailure()) return rc; if (rc.IsFailure()) return rc;