Commit Graph

303 Commits

Author SHA1 Message Date
Matt Nadareski
574bff9c2e [FileTools] Fix occasion where XML file is not normally indented and spaced 2016-10-03 09:22:18 -07:00
Matt Nadareski
d05d2ebe9a [FileTools] Some old CMP dats are not well formed 2016-10-02 20:14:24 -07:00
Matt Nadareski
6aa29f8fae [ALL] Rename a few things 2016-09-30 12:15:36 -07:00
Matt Nadareski
810bbf501a [DatFile] Logiqx XML DATs can be... weird. Route them through the other reader 2016-09-30 11:41:35 -07:00
Matt Nadareski
d0010cef90 [FileTools] Accomodate more broken DATs 2016-09-29 20:05:46 -07:00
Matt Nadareski
0e1c33a89a [FileTools] Fix compatibility with older and non-compliant XML DATs 2016-09-29 17:57:27 -07:00
Matt Nadareski
765d6ce743 [ArchiveTools] Add writing to archive from stream 2016-09-29 13:01:06 -07:00
Matt Nadareski
36f9b12d06 [DatFile] Make XML parsing safer; skip malformed XML lines 2016-09-28 12:27:39 -07:00
Matt Nadareski
d96b3d4832 [DatFile, FileTools] Add checks for MD5, SFV, and SHA1 files 2016-09-28 11:30:06 -07:00
Matt Nadareski
99248c200b [Style] Take care of new output formats 2016-09-28 10:00:02 -07:00
Matt Nadareski
09cb1e98e9 [DatFile, FileTools] Add preliminary OfflineList support 2016-09-27 12:05:29 -07:00
Matt Nadareski
ec34b91942 [DatFile, FileTools] Tweak SL and SD types 2016-09-27 11:26:55 -07:00
Matt Nadareski
96d4491d82 [DatFile, FileTools] Implement custom traversal of directories 2016-09-26 17:52:20 -07:00
Matt Nadareski
219d6f7664 [DatFile, SimpleSort, FileTools] Make sure extensions are checked properly 2016-09-26 17:36:25 -07:00
Matt Nadareski
ad34192a14 [Style] Use primative string instead of object String 2016-09-26 12:19:37 -07:00
Matt Nadareski
6952be1753 [Style] Change IsUnicode; remove SentenceCase 2016-09-26 12:19:12 -07:00
Matt Nadareski
9d3c690042 [Style] Remove StripInvalidPathChars 2016-09-26 12:14:54 -07:00
Matt Nadareski
70e36de17c [Style] Remove CompareNumeric 2016-09-26 12:14:18 -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
57f6d361f7 [DATFromDir] Put retry on intial delete too 2016-09-21 23:17:30 -07:00
Matt Nadareski
284c3e088e [DATFromDir] Get proper output paths again 2016-09-21 23:07:20 -07:00
Matt Nadareski
fa4a5c6f41 [Style] Make output naming more accurate
This removes the added extension for RC, DOSCenter, and SabreDat types if the conflicting versions are not being output.
2016-09-21 13:34:55 -07:00
Matt Nadareski
7212949f56 [Style, DatFile] Add better encoding finding 2016-09-21 12:47:11 -07:00
Matt Nadareski
cadc3e941c [ALL] Cleanup
This is a purge of dead and unused code. The major thing with this is the removal of all original DATabase features. They might be resurrected in the future but , for now, it would need a full rewrite to make sense. Nobody uses it either, so it shouldn't be missed.
2016-09-20 17:39:01 -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
f059b5389c [DatTools] Move things around to make more sense 2016-09-19 11:37:18 -07:00
Matt Nadareski
ca00ef029a [DatTools] Move enumeration and get static list 2016-09-19 10:48:58 -07:00
Matt Nadareski
c9a3417b9a [DatTools] Remove each list as you go, trying to reduce memory usage further 2016-09-19 10:02:11 -07:00
Matt Nadareski
dfcad4c95e [DatTools] Cleanup 2016-09-18 22:52:59 -07:00
Matt Nadareski
2b8a739ac3 [DatTools, RomTools] Move filter to better location 2016-09-18 22:49:51 -07:00
Matt Nadareski
ef1e70d5cd [DatTools] Make sure threading is respected for populating 2016-09-18 21:26:21 -07:00
Matt Nadareski
2753542a1f [DatTools] Part 2 of using ref 2016-09-18 21:11:35 -07:00