Advertisement
Brandan

Untitled

Apr 10th, 2014
366
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.91 KB | None | 0 0
  1.         Structure MixArchive
  2.             Implements IComparable ' Fix Array.Sort
  3.  
  4.             Public FileName As String ' The name
  5.             Public Folder As String ' The folder the file is in
  6.             Public fileSize As UInt32 ' File size is how many bytes the file is
  7.             Public fileAddress As UInt32 ' File Address is the exact position of the files binary
  8.             Public FileNameCRC As UInt32 ' FileNameCRC is an anti cheat method (a terrible idea by EA)
  9.             Public FilePath As String ' For File added during runtime
  10.             Public binary() As Byte
  11.             Public CRC32 As String ' Unique to MIX2
  12.  
  13.             Public Function CompareTo(ByVal obj As Object) As Integer Implements System.IComparable.CompareTo
  14.                 Return Me.FileNameCRC.CompareTo(CType(obj, MixArchive).FileNameCRC)
  15.             End Function
  16.         End Structure
  17.  Private FilesLoaded As New ArrayList
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement