Move ResultNameResolver

This commit is contained in:
Alex Barney 2021-12-18 22:59:47 -07:00
parent 8e5f400048
commit f73d206901
4 changed files with 8 additions and 9 deletions

View file

@ -39,7 +39,7 @@ public static class ResultCodeGen
byte[] archive = BuildArchive(modules);
byte[] compressedArchive = Build.DeflateBytes(archive);
string archiveStr = PrintArchive(compressedArchive);
WriteOutput("LibHac/ResultNameResolver.Generated.cs", archiveStr);
WriteOutput("LibHac/Common/ResultNameResolver.Generated.cs", archiveStr);
string enumStr = PrintEnum(modules);
WriteOutput("../.nuke/temp/result_enums.txt", enumStr);
@ -382,7 +382,7 @@ public static class ResultCodeGen
sb.AppendLine("using System;");
sb.AppendLine();
sb.AppendLine("namespace LibHac;");
sb.AppendLine("namespace LibHac.Common;");
sb.AppendLine();
sb.AppendLine("internal partial class ResultNameResolver");
@ -710,4 +710,4 @@ public sealed class ResultMap : ClassMap<ResultInfo>
return flags;
});
}
}
}

View file

@ -1,6 +1,6 @@
using System;
namespace LibHac;
namespace LibHac.Common;
internal partial class ResultNameResolver
{
@ -11,4 +11,4 @@ internal partial class ResultNameResolver
// The script can be run with the "codegen" option to run only the
// code generation portion of the build.
};
}
}

View file

@ -4,10 +4,9 @@ using System.IO;
using System.IO.Compression;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using LibHac.Common;
using LibHac.Util;
namespace LibHac;
namespace LibHac.Common;
internal partial class ResultNameResolver : Result.IResultNameResolver
{
@ -96,4 +95,4 @@ internal partial class ResultNameResolver : Result.IResultNameResolver
}
#pragma warning restore 649
}
}
}

View file

@ -36,7 +36,7 @@
</PropertyGroup>
<ItemGroup>
<Compile Condition="Exists('ResultNameResolver.Generated.cs')" Remove="ResultNameResolver.Archive.cs" />
<Compile Condition="Exists('Common\ResultNameResolver.Generated.cs')" Remove="Common\ResultNameResolver.Archive.cs" />
<Compile Condition="Exists('Common\Keys\DefaultKeySet.Generated.cs')" Remove="Common\Keys\DefaultKeySet.Empty.cs" />
</ItemGroup>