Ensure csv column counts are consistent

This commit is contained in:
Alex Barney 2020-05-12 19:02:48 -07:00
parent cb8b088487
commit 8d5e24d061
3 changed files with 3 additions and 2 deletions

View file

@ -392,6 +392,7 @@ namespace LibHacBuild.CodeGen
using (var csv = new CsvReader(new StreamReader(GetResource(name)), CultureInfo.InvariantCulture))
{
csv.Configuration.AllowComments = true;
csv.Configuration.DetectColumnCountChanges = true;
if (typeof(T) == typeof(ResultInfo))
{

View file

@ -2,7 +2,7 @@ Module,DescriptionStart,DescriptionEnd,Name,Summary
2,0,999,HandledByAllProcess,
2,1,,PathNotFound,Specified path does not exist
2,2,,PathAlreadyExists,Specified path already exists
2,7,,TargetLocked,Resource already in use (file already opened, savedata filesystem already mounted)
2,7,,TargetLocked,"Resource already in use (file already opened, savedata filesystem already mounted)"
2,8,,DirectoryNotEmpty,Specified directory is not empty when trying to delete it
2,13,,DirectoryStatusChanged,

1 Module,DescriptionStart,DescriptionEnd,Name,Summary Module DescriptionStart DescriptionEnd Name Summary
2 2,0,999,HandledByAllProcess, 2 0 999 HandledByAllProcess
3 2,1,,PathNotFound,Specified path does not exist 2 1 PathNotFound Specified path does not exist
4 2,2,,PathAlreadyExists,Specified path already exists 2 2 PathAlreadyExists Specified path already exists
5 2,7,,TargetLocked,Resource already in use (file already opened, savedata filesystem already mounted) 2 7 TargetLocked Resource already in use (file already opened, savedata filesystem already mounted)
6 2,8,,DirectoryNotEmpty,Specified directory is not empty when trying to delete it 2 8 DirectoryNotEmpty Specified directory is not empty when trying to delete it
7 2,13,,DirectoryStatusChanged, 2 13 DirectoryStatusChanged
8 2,30,45,InsufficientFreeSpace, 2 30 45 InsufficientFreeSpace

View file

@ -23,7 +23,7 @@ namespace LibHac.Fs
public static Result.Base PathNotFound => new Result.Base(ModuleFs, 1);
/// <summary>Specified path already exists<br/>Error code: 2002-0002; Inner value: 0x402</summary>
public static Result.Base PathAlreadyExists => new Result.Base(ModuleFs, 2);
/// <summary>Resource already in use (file already opened<br/>Error code: 2002-0007; Inner value: 0xe02</summary>
/// <summary>Resource already in use (file already opened, savedata filesystem already mounted)<br/>Error code: 2002-0007; Inner value: 0xe02</summary>
public static Result.Base TargetLocked => new Result.Base(ModuleFs, 7);
/// <summary>Specified directory is not empty when trying to delete it<br/>Error code: 2002-0008; Inner value: 0x1002</summary>
public static Result.Base DirectoryNotEmpty => new Result.Base(ModuleFs, 8);