Commit Graph

23 Commits

Author SHA1 Message Date
Matt Nadareski
1800ac6750 Logging overhaul!
This change brings about a few changes:
1) A new LogLevel called "User" that is used for non-verbose, non-error output
2) Only User and Error are output to console now, not all of them
3) All programs have log to file enabled by default and all flags for enabling logging have been removed
4) Some former Verbose statements have been converted over to User because of the shift in usage.
2016-05-10 15:41:33 -07:00
Matt Nadareski
fa519036ad Remove all traces of the outdated DB merge/import 2016-04-28 12:43:56 -07:00
Matt Nadareski
13ba806a59 Wrong dict name used 2016-04-28 12:01:54 -07:00
Matt Nadareski
2ac01545e1 Output should be deuped according to the user spec 2016-04-28 11:32:19 -07:00
Matt Nadareski
ae2b8fd44d Add more code for dictionary based merging 2016-04-28 11:31:35 -07:00
Matt Nadareski
a202dc3dbb More changes to enable Dictionary merging 2016-04-28 11:06:27 -07:00
Matt Nadareski
9672a5962d Add dictionary-based file output 2016-04-28 10:57:32 -07:00
Matt Nadareski
820097a2ec Rename since this is a permanent method now 2016-04-27 20:57:05 -07:00
Matt Nadareski
4458fd2ce0 Minor output name change 2016-04-27 20:44:17 -07:00
Matt Nadareski
d8864084d1 Commit to using the DB approach for merging 2016-04-27 20:37:28 -07:00
Matt Nadareski
ba5581af63 Fix AB output from new database 2016-04-27 18:29:29 -07:00
Matt Nadareski
18369e89df More code changes to accustom diff and AB 2016-04-27 16:57:03 -07:00
Matt Nadareski
bfdb031438 Comment out code in preparation for eventual removal
The next step is to include the "source DAT name" in the dupe field instead of just "false". It will still be changed to "true" on merging, however. This will allow for multi-dat AB output since each unique source can have the non-dupe roms outputted. This will require a change in WriteToDat2 as well to enable "AB" mode, or at least a field called source that is default empty. If it's not empty, it tries to write out ONLY things that match that source. Maybe merge it in to the "diff" mechanic. Actually, if it's a flag, it will just output every variant: All in A, All in B, All in both, All not in both. Pretty easy.
2016-04-27 16:11:29 -07:00
Matt Nadareski
e450eebfd7 Stage 2 changes for using in-mem database
This change makes it mostly functional, having a way to both parse and merge in one step and output from the database. The issue is that the output from Parse2 doesn't match Parse OR Parse + Merge. Duplicates don't seem to be added in the first case and there are a differing number of roms in the second.
2016-04-27 01:10:24 -07:00
Matt Nadareski
bce1cc5839 Add stage 1 changes for better merging
The new merging process is both parse and merge in one step using an in-memory database. The next steps are to get the data in this database and write it out properly.
2016-04-27 00:53:15 -07:00
Matt Nadareski
4e4907a785 Remove 2 DAT restriction on everything excpet AB 2016-04-26 13:17:24 -07:00
Matt Nadareski
fdf6047f21 Minor logging and fixes 2016-04-23 00:29:48 -07:00
Matt Nadareski
8c8eba97fe Need sorting here, or else it fails. 2016-04-22 15:27:57 -07:00
Matt Nadareski
9123452d17 Enable AB mode
This mode outputs all necessary differences between two DATs, especially if combined with Diff mode.
2016-04-22 15:09:07 -07:00
Matt Nadareski
bb75c6ee3a Remove logic to get a clean start. Keep flags 2016-04-22 14:30:16 -07:00
Matt Nadareski
2d5bf0145b Add "AB" mode
Basically, this will output the information that's in each DAT but not in the merged and also the data that's only in every DAT. This needs testing, but it's a good start.
2016-04-22 13:51:37 -07:00
Matt Nadareski
3185aa3fa6 noDate should be bare 2016-04-21 14:38:11 -07:00
Matt Nadareski
0390144419 Merge MergeDAT, part 6 2016-04-21 14:12:01 -07:00