mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[RombaSharp] Implement dir2dat option
This commit is contained in:
@@ -1,8 +1,6 @@
|
|||||||
using System;
|
using SabreTools.Helper;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.IO;
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace SabreTools
|
namespace SabreTools
|
||||||
{
|
{
|
||||||
@@ -44,7 +42,18 @@ namespace SabreTools
|
|||||||
/// <param name="inputs"></param>
|
/// <param name="inputs"></param>
|
||||||
private static void InitDir2Dat(List<string> inputs)
|
private static void InitDir2Dat(List<string> inputs)
|
||||||
{
|
{
|
||||||
_logger.User("This feature is not yet implemented: dir2dat");
|
// Create a simple Dat output
|
||||||
|
Dat datdata = new Dat()
|
||||||
|
{
|
||||||
|
FileName = Path.GetFileName(inputs[0]) + " Dir2Dat",
|
||||||
|
Name = Path.GetFileName(inputs[0]) + " Dir2Dat",
|
||||||
|
Description = Path.GetFileName(inputs[0]) + " Dir2Dat",
|
||||||
|
OutputFormat = OutputFormat.Xml,
|
||||||
|
Files = new Dictionary<string, List<Rom>>(),
|
||||||
|
};
|
||||||
|
|
||||||
|
DATFromDir dfd = new DATFromDir(inputs, datdata, false, false, true, false, true, "__temp__", _logger);
|
||||||
|
dfd.Start();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user