Commit Graph

80 Commits

Author SHA1 Message Date
Matt Nadareski
bc87d2a935 [DatTools] A couple more rom locations 2016-09-19 21:45:32 -07:00
Matt Nadareski
81f217b786 [DatFile] Make sure that we use DatItem objects unless specifics are needed 2016-09-19 21:04:45 -07:00
Matt Nadareski
770f9d7275 [DatItem] Add and fix 2016-09-19 20:52:55 -07:00
Matt Nadareski
44b00f9f5a [DatFile, Disk, Rom] Make sure nulls are accounted for 2016-09-19 20:51:18 -07:00
Matt Nadareski
10b74ec550 [DatFile] Fix XML output 2016-09-19 20:39:51 -07:00
Matt Nadareski
1db04406c3 [ALL] Remove Hash struct
This is a bit controversial, even for me, but for the time being, we need to tie very specific information to each type of item. That means that a Rom and a Disk, though they both have hashes, they have different hashes. I'm going to see how this plays out for the time being.
2016-09-19 20:36:12 -07:00
Matt Nadareski
b549085c34 [ALL] Convert Dat from a struct to an object
This effectively doesn't do much for the time being since there's only one "Dat type" that's being used. Realistically, this is probably the best bet since a given DAT should not be restricted to an output type as much as an ItemType is bound to its data. This also removes the experimental classes that won't be in use for forever. More work still might need to be done but it is unknown at this point.
2016-09-19 20:08:25 -07:00
Matt Nadareski
902070c542 [ALL] Overhaul to internal system
This massive change replaces the old "Rom" struct system with a new one that have different objects for each major item type. This required a lot of work and a lot of changes and has unfortunately been untested. But this is the first step in moving away from using structs. The next major step is converting Dat over to this as well.
2016-09-19 18:04:24 -07:00
Matt Nadareski
6879d5a2d5 [SimpleSort] Add slightly more code for new method 2016-09-19 10:49:25 -07:00
Matt Nadareski
22e60c26e0 [ALL] Make Parse use the Dat as a ref
All cases where this was being used, it was being assigned back to the original datdata object. This is not necessary.
2016-09-18 21:05:48 -07:00
Matt Nadareski
7f08c80341 [SimpleSort] Bring stability improvements to SimpleSort and the classes/methods it relies on 2016-09-18 12:29:33 -07:00
Matt Nadareski
4f43aecea2 [SimpleSort] Remove note 2016-09-17 23:58:18 -07:00
Matt Nadareski
92b2ba07d5 [SimpleSort] More comments, more code 2016-09-17 22:47:44 -07:00
Matt Nadareski
9abf97b88a [SimpleSort] Add note about find/bucket 2016-09-17 18:36:41 -07:00
Matt Nadareski
49027e4a50 [SimpleSort] Make sure memory stream is disposed 2016-09-17 18:25:05 -07:00
Matt Nadareski
92330940f7 [SimpleSort] Make sorting more traditional 2016-09-17 18:23:15 -07:00
Matt Nadareski
25e521d50d [SimpleSort] Add header-skipper checks to new method 2016-09-17 18:20:41 -07:00
Matt Nadareski
df3bc65cf8 [SimpleSort] Create mini regions for code blocks 2016-09-17 18:03:55 -07:00
Matt Nadareski
aabb44fb33 [SimpleSort] Start adding better rebuild code 2016-09-17 18:00:18 -07:00
Matt Nadareski
976fd408ad [SimpleSort] Remove part of comment 2016-09-17 17:31:08 -07:00
Matt Nadareski
e395ad2301 [SimpleSort] Add note 2016-09-17 17:15:08 -07:00
Matt Nadareski
feef34a839 [DATFromDir] Convert enumerations to lists 2016-09-16 21:22:32 -07:00
Matt Nadareski
ba5151c6d8 [ZipFile, ZipFileEntry] Add regions for sanity 2016-09-16 21:05:23 -07:00
Matt Nadareski
9b9c20e000 [SimpleSort] Even better temp folders?! 2016-09-16 18:02:56 -07:00
Matt Nadareski
bd4f5004f1 [ZipFile] Use File.OpenRead/OpenWrite 2016-09-16 18:02:45 -07:00
Matt Nadareski
2a6f54e8e5 [DATFromDir, SimpleSort] Only delete tempdir if it's not the default 2016-09-16 17:14:36 -07:00
Matt Nadareski
bf6d45a542 [ALL] More temp standardization, naming standardization 2016-09-16 16:35:58 -07:00
Matt Nadareski
c6c1c3de74 [DATFromDir, SimpleSort] Better temp folders 2016-09-16 16:21:11 -07:00
Matt Nadareski
566e6a8f6f [DATFromDir, SimpleSort] Make temp folders more standardized (better for parallel?) 2016-09-16 15:50:48 -07:00
Matt Nadareski
9581fa2054 [ZipFileEntry] Change default to tzip 2016-09-16 15:39:52 -07:00
Matt Nadareski
af44f4ca20 [ZipFile] Make TzipStringCompare public, tzip by default 2016-09-16 15:39:03 -07:00
Matt Nadareski
9267ecf674 [SimpleSort] Add TorrentZip flag 2016-09-16 11:55:29 -07:00
Matt Nadareski
c69dddbc26 [FileTools, SimpleSort, ZipFile/Entry] TorrentZip works! Mostly!
Writing to torrentzip works but for some reason the compressed streams are not being generated at the correct size. This is odd and seems to only affect newly added files and not ones copied from other archives. Also, found some glaring flaws in the headered output that explains why I was having issues previously. Typos D=
2016-09-16 11:37:55 -07:00
Matt Nadareski
444fc1696b [FileTools] More fiddling with Tzip 2016-09-15 21:25:58 -07:00
Matt Nadareski
6bd7162d00 [FileTools, ZipFile] Fix a couple things 2016-09-15 20:32:18 -07:00
Matt Nadareski
9659b4de0e [ZipFile, ZipFileEntry, FileTools] Move more things around 2016-09-15 16:20:00 -07:00
Matt Nadareski
c4cad201c0 [ZipFile, ZipFileEntry, FileTools] Move things around, make program compile again 2016-09-15 16:06:06 -07:00
Matt Nadareski
1803eb1ab8 [ZIpFile, ZipFileEntry] Finish porting over code from RV 2016-09-15 15:57:37 -07:00
Matt Nadareski
eb9e61d918 [ZipFileEntry] Get slightly modified version of LocalFile into the project, based on the work in RomVault at https://github.com/gjefferyes/RomVault/blob/master/ROMVault2/SupportedFiles/Zip/zipFile.cs 2016-09-15 13:32:59 -07:00
Matt Nadareski
29b1330d97 [ALL] TorrentZip stuff
Taking a cue from RomVault and GordonJ, I'm including the Zlib code as converted by DotNetZip as well as creating a couple slightly more maleable structures for writing archives.
2016-09-15 12:16:33 -07:00
Matt Nadareski
f2b71c9df2 [FileTools] Get more TZIP stuff there 2016-09-14 18:10:09 -07:00
Matt Nadareski
bbac7f0866 [DATFromDir] Rename DFDP to DFD since original no longer exists 2016-09-14 14:54:41 -07:00
Matt Nadareski
4cb13d473a [DatFromDir] Remove original implementation 2016-09-14 14:53:48 -07:00
Matt Nadareski
2cff1a48b1 [DATFromDir] Fix basic SuperDAT output 2016-09-14 12:16:34 -07:00
Matt Nadareski
909a01cf18 [DATFromDir] Fix malformatted output 2016-09-14 11:15:11 -07:00
Matt Nadareski
b5307b79c3 [DATFromDir] Force file order parity 2016-09-14 11:05:40 -07:00
Matt Nadareski
87f249bb0c [DATFromDir, SimpleSort] Add flags for blanks and date 2016-09-14 10:25:01 -07:00
Matt Nadareski
1dc45acca2 [ALL] Rewrite some archive handling
Remove managed writing, simplify archive to archive handling, add ability to set modification date on files if in source rom.
2016-09-13 16:04:24 -07:00
Matt Nadareski
431ba78b39 [DATFromDir] Add blanks flag 2016-09-13 13:04:06 -07:00
Matt Nadareski
bb53d3c3eb [ALL] Code cleanup, merge DFD and DFDP flags 2016-09-13 12:40:09 -07:00