using System.IO;
using System.Xml.Serialization;

namespace QCRPG.TSL.NFC.NVM;

public class NVMData
{
	public static NVMDataDefinition LoadFromFile(string filename)
	{
		XmlSerializer xmlSerializer = new XmlSerializer(typeof(NVMDataDefinition));
		FileStream fileStream = File.OpenRead(filename);
		NVMDataDefinition result = (NVMDataDefinition)xmlSerializer.Deserialize(fileStream);
		fileStream.Close();
		return result;
	}
}
