mirror of
https://github.com/sampletext32/ParkanPlayground.git
synced 2025-10-13 23:10:23 +03:00
improvements
This commit is contained in:
@@ -9,6 +9,11 @@ public static class NResParser
|
||||
{
|
||||
using FileStream nResFs = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read);
|
||||
|
||||
return ReadFile(nResFs);
|
||||
}
|
||||
|
||||
public static NResParseResult ReadFile(Stream nResFs)
|
||||
{
|
||||
if (nResFs.Length < 16)
|
||||
{
|
||||
return new NResParseResult(null, "Файл не может быть NRes, менее 16 байт");
|
||||
|
Reference in New Issue
Block a user