Commit Graph

760 Commits

Author SHA1 Message Date
Matt Nadareski
08437314df [DatFile] Try forcing BOM? 2016-09-21 10:11:15 -07:00
Matt Nadareski
3c67cfe37f [DatFile] Add check for Write Dat as well 2016-09-20 23:43:54 -07:00
Matt Nadareski
ca0e93e1ec [DatFIle] Put check back in 2016-09-20 23:42:49 -07:00
Matt Nadareski
340580708a [DatFile] Force BOM off with UTF8 writing
Input DATs are straight UTF-8 the majority of the time so we should output the same
2016-09-20 23:42:22 -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
656474de7d [DatFIle] Add one more check 2016-09-20 15:32:23 -07:00
Matt Nadareski
943e455cff [DatFile] Add extra precautions for stuff I can't test 2016-09-20 15:28:55 -07:00
Matt Nadareski
9d25ad94b6 [DatFile] Add more security and comments 2016-09-20 14:41:45 -07:00
Matt Nadareski
5c34427c81 [DatFile] Add safeguard for issues I haven't been able to locally verify 2016-09-20 14:01:32 -07:00
Matt Nadareski
7c2f085c77 [DatFile] Add "forcepacking" as flag in CMP too 2016-09-20 12:33:52 -07:00
Matt Nadareski
d625404dea [SabreTools.Helper] Move some things around 2016-09-20 10:19:38 -07:00
Matt Nadareski
df2a06c2e2 [SimpleSort] Fix hash copying 2016-09-19 22:53:33 -07:00
Matt Nadareski
de5e63a695 [DatItem] Fix child classes equatiblity 2016-09-19 22:28:17 -07:00
Matt Nadareski
9a7be539fb [DatFile] Add temporary fix with logging statement 2016-09-19 22:01:16 -07:00
Matt Nadareski
cea31f6c7b [Generate/Import] Remove original implementations 2016-09-19 21:45:51 -07:00
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
f059b5389c [DatTools] Move things around to make more sense 2016-09-19 11:37:18 -07:00
Matt Nadareski
6879d5a2d5 [SimpleSort] Add slightly more code for new method 2016-09-19 10:49:25 -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
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
ffbd416174 [DatTools, RomTools] Fix convert, fix sort 2016-09-18 13:03:51 -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
8e1a174800 [FileTools] Make multi-file versions of each of the write archive methods 2016-09-17 23:24:44 -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
0a2a85c156 [FileTools] Add another stream-based method and convert file-based version 2016-09-17 18:15:53 -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
0b52d2502e [Skippers] Add stream-based versions of check and transform; convert current versions to use this internally 2016-09-17 17:30:25 -07:00
Matt Nadareski
e395ad2301 [SimpleSort] Add note 2016-09-17 17:15:08 -07:00
Matt Nadareski
d0526db863 [DatTools] Strip out non-roms/disk unless specified 2016-09-17 15:24:37 -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