mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-07-13 04:18:08 +00:00
CSMBFileReader -Implemented FromFile method
This commit is contained in:
@@ -8,12 +8,16 @@ namespace PckStudio.IO.CSMB
|
||||
{
|
||||
internal class CSMBFileReader : IDataFormatReader<CSMBFile>, IDataFormatReader
|
||||
{
|
||||
private CSMBFileReader()
|
||||
{ }
|
||||
|
||||
public CSMBFile FromFile(string filename)
|
||||
{
|
||||
throw new System.NotImplementedException();
|
||||
if (File.Exists(filename))
|
||||
{
|
||||
using (var fs = File.OpenRead(filename))
|
||||
{
|
||||
return FromStream(fs);
|
||||
}
|
||||
}
|
||||
throw new FileNotFoundException(filename);
|
||||
}
|
||||
|
||||
public CSMBFile FromStream(Stream stream)
|
||||
|
||||
Reference in New Issue
Block a user