Ejemplo n.º 1
0
        public static Result CreateNew(out DirectorySaveDataFileSystem created, IFileSystem baseFileSystem,
                                       bool isPersistentSaveData, bool canCommitProvisionally)
        {
            var    obj = new DirectorySaveDataFileSystem(baseFileSystem);
            Result rc  = obj.Initialize(isPersistentSaveData, canCommitProvisionally);

            if (rc.IsSuccess())
            {
                created = obj;
                return(Result.Success);
            }

            obj.Dispose();
            created = default;
            return(rc);
        }
Ejemplo n.º 2
0
 public DirectorySaveDataFile(DirectorySaveDataFileSystem parentFs, IFile baseFile, OpenMode mode)
 {
     ParentFs = parentFs;
     BaseFile = baseFile;
     Mode     = mode;
 }
Ejemplo n.º 3
0
 public static Result CreateNew(out DirectorySaveDataFileSystem created, IFileSystem baseFileSystem)
 {
     return(CreateNew(out created, baseFileSystem, true, true));
 }