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");

View file

@ -1,6 +1,6 @@
using System;
namespace LibHac;
namespace LibHac.Common;
internal partial class ResultNameResolver
{

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
{

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>