From c396b86c2210545364dd16a966e49993d7276134 Mon Sep 17 00:00:00 2001 From: morkt Date: Mon, 19 Oct 2015 09:02:53 +0400 Subject: [PATCH] (StreamRegion): added leave_open argument to constructor. --- ArcFormats/ArcCommon.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ArcFormats/ArcCommon.cs b/ArcFormats/ArcCommon.cs index 0798abf1..12a0f818 100644 --- a/ArcFormats/ArcCommon.cs +++ b/ArcFormats/ArcCommon.cs @@ -212,7 +212,8 @@ namespace GameRes.Formats m_should_dispose = !leave_open; } - public StreamRegion (Stream main, long offset) : this (main, offset, main.Length-offset) + public StreamRegion (Stream main, long offset, bool leave_open = false) + : this (main, offset, main.Length-offset, leave_open) { }