Found out why these helpers were this way

This commit is contained in:
Matt Nadareski
2026-04-18 12:45:58 -04:00
parent 9a59f7c540
commit fe58061a2d
6 changed files with 47 additions and 28 deletions

View File

@@ -274,7 +274,7 @@ namespace SabreTools.Metadata.DatFiles
/// <summary>
/// Get all machines and their indicies
/// </summary>
public Machine[] GetMachinesDB()
public IDictionary<long, Machine> GetMachinesDB()
=> ItemsDB.GetMachines();
/// <summary>
@@ -283,6 +283,12 @@ namespace SabreTools.Metadata.DatFiles
public KeyValuePair<long, Source?> GetSourceDB(long sourceIndex)
=> ItemsDB.GetSource(sourceIndex);
/// <summary>
/// Get all sources and their indicies
/// </summary>
public IDictionary<long, Source> GetSourcesDB()
=> ItemsDB.GetSources();
/// <summary>
/// Remove a key from the file dictionary if it exists
/// </summary>