mirror of
https://github.com/crskycode/GARbro.git
synced 2026-06-06 05:38:48 +08:00
(BmpFormat.EnableExtensions): new field.
This commit is contained in:
@@ -57,10 +57,12 @@ namespace GameRes
|
||||
private IEnumerable<IBmpExtension> m_extensions;
|
||||
#pragma warning restore 649
|
||||
|
||||
bool EnableExtensions = true;
|
||||
|
||||
public override ImageData Read (Stream file, ImageMetaData info)
|
||||
{
|
||||
var bmp_info = info as BmpMetaData;
|
||||
if (bmp_info != null)
|
||||
if (bmp_info != null && EnableExtensions)
|
||||
{
|
||||
bool can_seek = file.CanSeek;
|
||||
foreach (var ext in m_extensions)
|
||||
|
||||
Reference in New Issue
Block a user