Beispiel #1
0
        /// <summary>
        /// Remove a file previously added by AddReadonlyFile.  Frees the internal copy of the filedata, saving memory.
        /// All savestates must have the same file list, so either leave it up forever or remove it during init!
        /// </summary>
        public void RemoveReadonlyFile(string name)
        {
            var retobj = new ReturnData();

            NativeImpl.wbx_unmount_file(_nativeHost, name, null, IntPtr.Zero, retobj);
            retobj.GetDataOrThrow();
        }
Beispiel #2
0
 /// <summary>
 /// Remove a file previously added by AddReadonlyFile.  Frees the internal copy of the filedata, saving memory.
 /// All savestates must have the same file list, so either leave it up forever or remove it during init!
 /// </summary>
 public void RemoveReadonlyFile(string name)
 {
     using (this.EnterExit())
     {
         var retobj = new ReturnData();
         NativeImpl.wbx_unmount_file(_activatedNativeHost, name, null, IntPtr.Zero, retobj);
         retobj.GetDataOrThrow();
     }
 }