Exemplo n.º 1
0
        public static FSaveHandle Create(string fileName, FFilePath pathType, FOpenType ot = FOpenType.OT_ReadWrite)
        {
            FSaveHandle sh = new FSaveHandle();

            sh.Open(fileName, pathType, ot);
            return(sh);
        }
Exemplo n.º 2
0
 protected virtual void _SaveFile(string realPath)
 {
     if (mFileHandle == null)
     {
         mFileHandle = new FSaveHandle();
         mFileHandle.Open(realPath, FFilePath.FP_Cache, GetOpenType() | FOpenType.OT_Write);
     }
     mFileHandle.PushObject(this);
     mFileHandle.Save();
 }
Exemplo n.º 3
0
 protected virtual bool _ReadFile(string realPath)
 {
     mFileHandle = new FSaveHandle();
     mFileHandle.Open(realPath, FFilePath.FP_Cache, GetOpenType() & (~FOpenType.OT_Write));
     if (mFileHandle.IsLoad)
     {
         mFileHandle.FromObject(this);
         return(true);
     }
     return(false);
 }