Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/source-generator-read-models' in…
Browse files Browse the repository at this point in the history
…to source-generator-read-models
  • Loading branch information
halgari committed Jun 24, 2024
2 parents b6fba4d + 78c2b31 commit 5959e03
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ internal async Task<DiskStateTree> FileTreeToDiskImpl(FileTree fileTree, Loadout
hash = await outputStream.HashingCopyAsync(Stream.Null, CancellationToken.None);
}

var gamePath = loadout!.InstallationInstance.LocationsRegister.ToGamePath(entry.Key);
var gamePath = loadout.InstallationInstance.LocationsRegister.ToGamePath(entry.Key);
resultingItems[gamePath] = new DiskStateEntry
{
Hash = hash!.Value,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public partial class GeneratedFile : IModelDefinition
public partial struct ReadOnly
{
/// <summary>
/// The set instance of the generator that is used to generate the contents of this file.
/// The instance of the generator that is used to generate the contents of this file.
/// </summary>
public IFileGenerator GeneratorInstance => GeneratedFile.Generator.GetInstance(this);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ public partial class File : IModelDefinition
/// <summary>
/// The file's metadata
/// </summary>
public static readonly BackReferenceAttribute<Metadata> Metadatas = new(Metadata.File);
public static readonly BackReferenceAttribute<Metadata> Metadata = new(Files.Metadata.File);

}
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ public partial class SMAPIModDatabaseMarker : IModelDefinition
private const string Namespace = "NexusMods.Games.StardewValley.Models.SMAPIModDatabaseMarker";


public static readonly BooleanAttribute SMAPIModDatabase = new(Namespace, "SMAPIModDatabase");
public static readonly MarkerAttribute SMAPIModDatabase = new(Namespace, nameof(SMAPIModDatabase));
}

0 comments on commit 5959e03

Please sign in to comment.