Commit Graph

62 Commits

Author SHA1 Message Date
Matt Nadareski
219d6f7664 [DatFile, SimpleSort, FileTools] Make sure extensions are checked properly 2016-09-26 17:36:25 -07:00
Matt Nadareski
8a39d398a4 [Logger] Updating logging to allow for removal of prefix 2016-09-23 15:09:00 -07:00
Matt Nadareski
a3f8f441c5 [FileTools] Remoe unused methods, using 2016-09-22 23:32:43 -07:00
Matt Nadareski
2d903e9dc8 [FileTools] Remove legacy skipper information from Headerer and replace with new system 2016-09-22 21:32:06 -07:00
Matt Nadareski
eb33a84580 [ALL] More rearranging 2016-09-22 21:04:41 -07:00
Matt Nadareski
2a55511c3e [FileTools, ArchiveTools] Separate archive-specific methods to their own class again 2016-09-22 21:00:18 -07:00
Matt Nadareski
b776240c11 [Headerer, FileTools] Wrap Headerer into FileTools 2016-09-22 20:42:34 -07:00
Matt Nadareski
a8417bdfcc [DatFile] Reorganize and make more things object-based 2016-09-22 17:52:58 -07:00
Matt Nadareski
ae9bfb9cd3 [DatFile, FileTools] Move GetXmlTextReader to a better location 2016-09-22 17:14:23 -07:00
Matt Nadareski
8a9722f8b2 [FileTools] Add more stream-based methods; reorganize 2016-09-22 16:16:48 -07:00
Matt Nadareski
863e936d07 [ALL] Get rid of rest of non-library usings 2016-09-22 15:59:03 -07:00
Matt Nadareski
74fbe60686 [ALL] Stop using "using" for everything except databases 2016-09-22 15:36:02 -07:00
Matt Nadareski
9c57b1f68d [FileTools] Make sure this isn't null first 2016-09-22 14:46:11 -07:00
Matt Nadareski
062d43b3c2 [FileTools] Manual dispose of file stream (thanks edc!) 2016-09-22 14:45:28 -07:00
Matt Nadareski
b7ac716d64 [DATFromDir] Try to delete the copied file in more places 2016-09-22 11:17:10 -07:00
Matt Nadareski
cfeccbb43d [DATFromDir] Move file delete outside so it tries to catch everything 2016-09-22 10:49:37 -07:00
Matt Nadareski
bcab3b72d0 [FileTools] Set the access for the file to be as deletable as possible 2016-09-22 10:07:49 -07:00
Matt Nadareski
656ac774ab [DATFromDir] Add async delete 2016-09-22 09:42:45 -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
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
7f08c80341 [SimpleSort] Bring stability improvements to SimpleSort and the classes/methods it relies on 2016-09-18 12:29:33 -07:00
Matt Nadareski
8e1a174800 [FileTools] Make multi-file versions of each of the write archive methods 2016-09-17 23:24:44 -07:00
Matt Nadareski
0a2a85c156 [FileTools] Add another stream-based method and convert file-based version 2016-09-17 18:15:53 -07:00
Matt Nadareski
b39a81f3d3 [FileTools] Preserve file datetime easier... 2016-09-16 17:23:48 -07:00
Matt Nadareski
fc27f7c268 [FileTools] Maintain datestamp on extract 2016-09-16 17:09:26 -07:00
Matt Nadareski
bf6d45a542 [ALL] More temp standardization, naming standardization 2016-09-16 16:35:58 -07:00
Matt Nadareski
4959c67bbb [FileTools] Yet more things to make TZIP work
Only thing that it doesn't do is compress to the right size. Still compresses smaller than RV TZIP.
2016-09-16 15:51:37 -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
3e4664eb9e [FileTools] Create first version of WriteTorrentZip 2016-09-15 16:58:45 -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
5f79f4205c [FileTools] Rearrange code 2016-09-14 18:12:05 -07:00
Matt Nadareski
f2b71c9df2 [FileTools] Get more TZIP stuff there 2016-09-14 18:10:09 -07:00
Matt Nadareski
8eb7953a70 [FileTools] Fix TZIP out 2016-09-14 17:07:00 -07:00
Matt Nadareski
87f249bb0c [DATFromDir, SimpleSort] Add flags for blanks and date 2016-09-14 10:25:01 -07:00
Matt Nadareski
e6d901f9b9 [FIleTools] Fix SuperDAT write out 2016-09-14 10:06:31 -07:00
Matt Nadareski
efa5815127 [FIleTools] More work with WriteTorrentZip 2016-09-13 23:35:48 -07:00
Matt Nadareski
33e0b0019e [FileTools] Add "write torrentzip" method, untested 2016-09-13 23:23:29 -07:00
Matt Nadareski
2f977bda44 [FileTools] Add prelim 7z handling 2016-09-13 22:45:58 -07:00
Matt Nadareski
7fc6344997 [Enums, Flags, Structs, FileTools] Add more archive stuff 2016-09-13 22:12:19 -07:00
Matt Nadareski
7550b38024 [FileTools] Get Zip/TZip work done up to this point committed 2016-09-13 21:36:45 -07:00
Matt Nadareski
7a08f8444b [SimpleSort, FileTools] Add undocumented TZIP WIP 2016-09-13 17:05:54 -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
bb53d3c3eb [ALL] Code cleanup, merge DFD and DFDP flags 2016-09-13 12:40:09 -07:00
Matt Nadareski
9574765b3c [FileTools] Use last write time instead of creation time 2016-09-13 11:31:49 -07:00