mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Make metadata conversion internal
This commit is contained in:
@@ -16,7 +16,7 @@ namespace SabreTools.DatFiles
|
|||||||
/// <param name="indexId">Index ID for the DAT</param>
|
/// <param name="indexId">Index ID for the DAT</param>
|
||||||
/// <param name="keep">True if full pathnames are to be kept, false otherwise</param>
|
/// <param name="keep">True if full pathnames are to be kept, false otherwise</param>
|
||||||
/// <param name="statsOnly">True to only add item statistics while parsing, false otherwise</param>
|
/// <param name="statsOnly">True to only add item statistics while parsing, false otherwise</param>
|
||||||
public void ConvertFromMetadata(Models.Metadata.MetadataFile? item, string filename, int indexId, bool keep, bool statsOnly)
|
internal void ConvertFromMetadata(Models.Metadata.MetadataFile? item, string filename, int indexId, bool keep, bool statsOnly)
|
||||||
{
|
{
|
||||||
// If the metadata file is invalid, we can't do anything
|
// If the metadata file is invalid, we can't do anything
|
||||||
if (item == null || item.Count == 0)
|
if (item == null || item.Count == 0)
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ namespace SabreTools.DatFiles
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Convert metadata information
|
/// Convert metadata information
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Models.Metadata.MetadataFile? ConvertToMetadata(bool ignoreblanks = false)
|
internal Models.Metadata.MetadataFile? ConvertToMetadata(bool ignoreblanks = false)
|
||||||
{
|
{
|
||||||
// If we don't have items, we can't do anything
|
// If we don't have items, we can't do anything
|
||||||
if (Items.Count == 0)
|
if (Items.Count == 0)
|
||||||
@@ -37,7 +37,7 @@ namespace SabreTools.DatFiles
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Convert metadata information
|
/// Convert metadata information
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Models.Metadata.MetadataFile? ConvertToMetadataDB(bool ignoreblanks = false)
|
internal Models.Metadata.MetadataFile? ConvertToMetadataDB(bool ignoreblanks = false)
|
||||||
{
|
{
|
||||||
// If we don't have items, we can't do anything
|
// If we don't have items, we can't do anything
|
||||||
if (ItemsDB.GetItems().Count == 0)
|
if (ItemsDB.GetItems().Count == 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user