mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[RombaSharp] Add export to RombaSharp
This commit is contained in:
@@ -75,6 +75,7 @@ namespace SabreTools
|
||||
dbstats = false,
|
||||
diffdat = false,
|
||||
dir2dat = false,
|
||||
export = false,
|
||||
fixdat = false,
|
||||
lookup = false,
|
||||
memstats = false,
|
||||
@@ -117,6 +118,9 @@ namespace SabreTools
|
||||
case "dir2dat":
|
||||
dir2dat = true;
|
||||
break;
|
||||
case "export":
|
||||
export = true;
|
||||
break;
|
||||
case "fixdat":
|
||||
fixdat = true;
|
||||
break;
|
||||
@@ -176,8 +180,8 @@ namespace SabreTools
|
||||
}
|
||||
|
||||
// If more than one switch is enabled, show the help screen
|
||||
if (!(archive ^ build ^ dbstats ^ diffdat ^ dir2dat ^ fixdat ^ lookup ^ memstats ^ miss ^
|
||||
progress ^ purgeBackup ^ purgeDelete ^ refreshDats ^ shutdown))
|
||||
if (!(archive ^ build ^ dbstats ^ diffdat ^ dir2dat ^ export ^ fixdat ^ lookup ^ memstats ^
|
||||
miss ^ progress ^ purgeBackup ^ purgeDelete ^ refreshDats ^ shutdown))
|
||||
{
|
||||
_logger.Error("Only one feature switch is allowed at a time");
|
||||
Build.Help();
|
||||
@@ -226,6 +230,12 @@ namespace SabreTools
|
||||
InitDir2Dat(inputs);
|
||||
}
|
||||
|
||||
// Export the database to file
|
||||
else if (export)
|
||||
{
|
||||
ExportDatabase();
|
||||
}
|
||||
|
||||
// For each specified DAT file it creates a fix DAT
|
||||
else if (fixdat)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user