From f33d5534ecff9fd32227c67a0d5fe4a0e9ee8c22 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Fri, 2 Sep 2016 13:05:20 -0700 Subject: [PATCH] [RombaSharp] Add more code, comments --- RombaSharp/RombaSharp.cs | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/RombaSharp/RombaSharp.cs b/RombaSharp/RombaSharp.cs index 61680f24..c6673197 100644 --- a/RombaSharp/RombaSharp.cs +++ b/RombaSharp/RombaSharp.cs @@ -51,6 +51,24 @@ namespace SabreTools public static void Main(string[] args) { + /* Commands to implement + + archive Adds ROM files from the specified directories to the ROM archive + -only-needed=false only archive ROM files actually referenced by DAT files from the DAT index + build For each specified DAT file it creates the torrentzip files + dbstats Prints db stats + diffdat Creates a DAT file with those entries that are in -new DAT + dir2dat Creates a DAT file for the specified input directory and saves it to -out filename + fixdat For each specified DAT file it creates a fix DAT + lookup For each specified hash it looks up any available information + memstats Prints memory stats + miss For each specified DAT file it creates a miss file and a have file + progress Shows progress of the currently running command + purge-backup Moves DAT index entries for orphaned DATs + purge-delete Deletes DAT index entries for orphaned DATs + refresh-dats Refreshes the DAT index fro mthe files in the DAT master directory tree + shutdown Gracefully shuts down server + */ } /// @@ -411,7 +429,8 @@ namespace SabreTools squery = "INSERT INTO data (id, key, value) VALUES (\"" + id + "\", \"crc\", \"" + rom.HashData.CRC + "\")," + " (\"" + id + "\", \"md5\", \"" + rom.HashData.MD5 + "\")," + " (\"" + id + "\", \"sha1\", \"" + rom.HashData.SHA1 + "\")," - + " (\"" + id + "\", \"dat\", \"" + key + "\")"; + + " (\"" + id + "\", \"dat\", \"" + key + "\")," + + " (\"" + id + "\", \"exists\", \"false\")"; using (SqliteCommand sslc = new SqliteCommand(squery, dbc)) { sslc.ExecuteNonQuery();