mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Add OfflineList internal converters
This commit is contained in:
@@ -1067,7 +1067,7 @@ namespace SabreTools.Serialization
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
#region Logiqx
|
||||
|
||||
/// <summary>
|
||||
@@ -1233,5 +1233,22 @@ namespace SabreTools.Serialization
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region OfflineList
|
||||
|
||||
/// <summary>
|
||||
/// Convert from <cref="Models.OfflineList.FileRomCRC"/> to <cref="Models.Internal.Rom"/>
|
||||
/// </summary>
|
||||
public static Models.Internal.Rom ConvertFromOfflineList(Models.OfflineList.FileRomCRC item)
|
||||
{
|
||||
var rom = new Models.Internal.Rom
|
||||
{
|
||||
[Models.Internal.Rom.ExtensionKey] = item.Extension,
|
||||
[Models.Internal.Rom.CRCKey] = item.Content,
|
||||
};
|
||||
return rom;
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user