mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-27 15:44:00 +08:00
(ArcFile.OverwriteNotify): new event.
preliminary support for extracted file overwrite notification.
This commit is contained in:
parent
ae559f34a6
commit
82b1fc0603
@ -49,6 +49,8 @@ namespace GameRes
|
||||
/// <summary>Archive contents.</summary>
|
||||
public ICollection<Entry> Dir { get { return m_dir; } }
|
||||
|
||||
public event EventHandler<OverwriteEventArgs> OverwriteNotify;
|
||||
|
||||
public ArcFile (ArcView arc, ArchiveFormat impl, ICollection<Entry> dir)
|
||||
{
|
||||
m_arc = arc;
|
||||
@ -147,7 +149,7 @@ namespace GameRes
|
||||
/// </summary>
|
||||
public Stream CreateFile (Entry entry)
|
||||
{
|
||||
return m_interface.CreateFile (entry);
|
||||
return m_interface.CreateFile (entry.Name);
|
||||
}
|
||||
|
||||
#region IDisposable Members
|
||||
@ -172,6 +174,12 @@ namespace GameRes
|
||||
#endregion
|
||||
}
|
||||
|
||||
public class OverwriteEventArgs : EventArgs
|
||||
{
|
||||
public string Filename { get; set; }
|
||||
public bool Overwrite { get; set; }
|
||||
}
|
||||
|
||||
public class AppendStream : System.IO.Stream
|
||||
{
|
||||
private Stream m_base;
|
||||
|
Loading…
Reference in New Issue
Block a user