You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm really digging RARCPacker's clean file structure documentation (of RarcHeader, Node, FileEntry), and I'd like to merge the two together to only use one copy of the File Format for RARC (the RARCPacker one).
The only functionality I use from the original Kazari.RARC is loading an archive from file, decompressing it (if compressed), and then iterating through the File Nodes and File Entries. If this functionality could be added to the RARCPacker class (and then that renamed) that'd be great.
Proposal:
RARCPacker.cs -> Source\FileFormats\RArc.cs
class RARCPacker -> class RARC
struct RarcHeader -> Header (since its already in the Rarc class you'd use it via Rarc.Header)
Expose a single method for Compressing a Directory and returning an RARC class. The rest of the fields can be marked as private - perhaps:
public static RARC CreatePackedArchive(string folder), inside the RARC class. Then usage would be:
RARC newArc = RARC.CreatePackedArchive(folder);
Issues:
Several references to existing RARC stuff across the project. Most will be removed when the RevisedArcLoading branch is merged into Master but until then it'll have to fit with the existing stuff.
Thanks!
The text was updated successfully, but these errors were encountered:
I'm really digging RARCPacker's clean file structure documentation (of RarcHeader, Node, FileEntry), and I'd like to merge the two together to only use one copy of the File Format for RARC (the RARCPacker one).
The only functionality I use from the original Kazari.RARC is loading an archive from file, decompressing it (if compressed), and then iterating through the File Nodes and File Entries. If this functionality could be added to the RARCPacker class (and then that renamed) that'd be great.
Proposal:
RARCPacker.cs -> Source\FileFormats\RArc.cs
class RARCPacker -> class RARC
struct RarcHeader -> Header (since its already in the Rarc class you'd use it via Rarc.Header)
Expose a single method for Compressing a Directory and returning an RARC class. The rest of the fields can be marked as private - perhaps:
public static RARC CreatePackedArchive(string folder), inside the RARC class. Then usage would be:
RARC newArc = RARC.CreatePackedArchive(folder);
Issues:
Several references to existing RARC stuff across the project. Most will be removed when the RevisedArcLoading branch is merged into Master but until then it'll have to fit with the existing stuff.
Thanks!
The text was updated successfully, but these errors were encountered: