Skip to content

Commit

Permalink
Implement RageArchiveDirectoryWrapper7::DeleteFile
Browse files Browse the repository at this point in the history
  • Loading branch information
indilo53 committed Jun 30, 2019
1 parent ac9f024 commit 2762fd3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion RageLib.GTA5/ArchiveWrappers/RageArchiveWrapper7.cs
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,12 @@ public IArchiveResourceFile CreateResourceFile()
/// </summary>
public void DeleteFile(IArchiveFile file)
{
throw new NotImplementedException();
var found = this.directory.Files.Find(e => e.Name == file.Name);

if(found != null)
{
this.directory.Files.Remove(found);
}
}

public void Dispose()
Expand Down

0 comments on commit 2762fd3

Please sign in to comment.