mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Fix pathing issues and overhaul SingleGame
This commit is contained in:
@@ -126,11 +126,12 @@ Options:
|
||||
case "SingleGame":
|
||||
Console.WriteLine(@"SingleGame - Process DATs for use in server environments
|
||||
-----------------------------------------
|
||||
Usage: SingleGame.exe <filename> [-r=rootdir|-n]
|
||||
Usage: SingleGame.exe <file|folder> [-r=rootdir|-n]
|
||||
|
||||
Options:
|
||||
-r=rootdir Set the directory name for path size
|
||||
-n Disable single-game mode
|
||||
-z Disable forceunzipping
|
||||
");
|
||||
break;
|
||||
case "DATFromDir":
|
||||
|
||||
@@ -25,6 +25,12 @@ namespace SabreTools.Helper
|
||||
/// <returns>Tru if the DAT was written correctly, false otherwise</returns>
|
||||
public static bool WriteToDat(string name, string description, string version, string date, string category, string author, bool forceunzip, bool old, string outDir, List<RomData> roms, Logger logger)
|
||||
{
|
||||
// If it's empty, use the current folder
|
||||
if (outDir.Trim() == "")
|
||||
{
|
||||
outDir = Environment.CurrentDirectory;
|
||||
}
|
||||
|
||||
// Double check the outdir for the end delim
|
||||
if (!outDir.EndsWith(Path.DirectorySeparatorChar.ToString()))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user