Commit Graph

4348 Commits

Author SHA1 Message Date
Matt Nadareski
ffd257aff3 Fix handling of "fake" 2016-04-28 16:39:12 -07:00
Matt Nadareski
c9863f2b84 Clear vars on run from menu 2016-04-28 16:24:19 -07:00
Matt Nadareski
a2d9fd0402 I hate drag and drop 2016-04-28 16:10:22 -07:00
Matt Nadareski
4e73261987 Menu needs to have logging by default 2016-04-28 15:59:57 -07:00
Matt Nadareski
a2d3c04155 Make help more descriptive on usage 2016-04-28 15:57:38 -07:00
Matt Nadareski
3b371dbf8d Why do I need to support this? Right, because power users 2016-04-28 15:54:29 -07:00
Matt Nadareski
40f789afd7 ...some people don't learn that drag and drop is not for everything 2016-04-28 15:50:45 -07:00
Matt Nadareski
12d2e88719 Bump version 2016-04-28 15:44:43 -07:00
Matt Nadareski
eda2cfdf89 Update readme 2016-04-28 15:44:15 -07:00
Matt Nadareski
fa429aab7f Add functionality to run OfflineMerge program 2016-04-28 15:40:54 -07:00
Matt Nadareski
e2585f8103 Add fake data replacement 2016-04-28 15:21:08 -07:00
Matt Nadareski
d1b1edbe50 Add file output 2016-04-28 15:12:49 -07:00
Matt Nadareski
356c502e49 Convert comment to usable vars 2016-04-28 15:09:11 -07:00
Matt Nadareski
524b68e623 [doc] Clean up comment 2016-04-28 15:03:06 -07:00
Matt Nadareski
02a9917701 Change code to better fit the logic behind the scenes
Conversations with Obiwantje cleared up what each part needs to do, allowing me to remove unnecessary pieces and clean up the logic behind each output.
2016-04-28 15:00:55 -07:00
Matt Nadareski
ffc4e70728 Add more processing code for OfflineMerge 2016-04-28 14:30:02 -07:00
Matt Nadareski
27aea4a443 Add new project for Offline Merging
The outputs from this program help with organizing roms that are in hard drives that are disconnected from the computer. This is mainly for people with disconnected arrays, but can be used to maintain a "best missing" list at all times as well.
2016-04-28 14:08:06 -07:00
Matt Nadareski
0897f39c52 Mono doesn't like a missing DTD 2016-04-28 13:04:32 -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
8aea894aed Fix non-deduped merging in DB-based version 2016-04-28 10:40:45 -07:00
Matt Nadareski
6d67512258 Add dictionary-based Parse for future use 2016-04-28 10:37:33 -07:00
Matt Nadareski
d4141ad079 Add runtime to log 2016-04-27 22:17:19 -07:00
Matt Nadareski
ed193d1f1e Remove commented code 2016-04-27 21:53:54 -07:00
Matt Nadareski
a6536fd65e Fix some finicky XML DATs and how the name is read 2016-04-27 21:27:41 -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
0d22715fa4 Remove unnecessary switch 2016-04-27 11:54:27 -07:00
Matt Nadareski
40b7d64303 Fix standard merging; dedupe still broken 2016-04-27 11:44:14 -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
6e6a2f9391 Add new HashDataToString function for later use 2016-04-26 13:17:55 -07:00
Matt Nadareski
4e4907a785 Remove 2 DAT restriction on everything excpet AB 2016-04-26 13:17:24 -07:00
Matt Nadareski
f8ed865eaa Replace Parse with mature second iteration
This code for parsing needed to be changed because of large file handling. XmlTextReader ended up being the best solution that doesn't crash at 500 MB in. A side effect of this change is that the code for processing a given DAT is very minimal now. The entire sub-block for SL-specific DAT info doesn't need to exist anymore. Small-scale tests have given 1:1 results with previous versions but further testing is needed for large files to make sure no data is lost.
2016-04-25 01:59:09 -07:00
Matt Nadareski
994a03826f Add version 1 of XmlTextReader-based parsing
This is currently borken for reasons that I don't 100% understand. It needs to be tested further with a basic DAT to see why it doesn't seem to get every ROM.
2016-04-25 00:30:50 -07:00
Matt Nadareski
77b1512bff [doc] add notes for future work 2016-04-25 00:27:27 -07:00
Matt Nadareski
55733f1ec9 Add retrieval of XmlTextReader 2016-04-25 00:26:19 -07:00
Matt Nadareski
7301cd3ba4 Add lazy evaluation of XML status 2016-04-25 00:25:08 -07:00
Matt Nadareski
755b5abf25 No need to parse the file first; add outofmemory error 2016-04-23 01:00:31 -07:00
Matt Nadareski
fdf6047f21 Minor logging and fixes 2016-04-23 00:29:48 -07:00
Matt Nadareski
2655aa12da Separate to see where issue is coming from 2016-04-22 16:12:31 -07:00
Matt Nadareski
7f1ce9e3bc Add more catches 2016-04-22 15:59:32 -07:00