Skip to content

Commit

Permalink
Ensure csv column counts are consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
Thealexbarney committed May 13, 2020
1 parent cb8b088 commit 8d5e24d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions build/CodeGen/ResultCodegen.cs
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,7 @@ private static T[] ReadCsv<T>(string name)
using (var csv = new CsvReader(new StreamReader(GetResource(name)), CultureInfo.InvariantCulture))
{
csv.Configuration.AllowComments = true;
csv.Configuration.DetectColumnCountChanges = true;

if (typeof(T) == typeof(ResultInfo))
{
Expand Down
2 changes: 1 addition & 1 deletion build/CodeGen/results.csv
Original file line number Diff line number Diff line change
Expand Up @@ -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,

Expand Down
2 changes: 1 addition & 1 deletion src/LibHac/Fs/ResultFs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public static class ResultFs
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);
Expand Down

0 comments on commit 8d5e24d

Please sign in to comment.