mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +08:00
(PngFormat.ReadMetaData): don't check stream against Signature.
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
//! \date Sat Jul 05 00:09:15 2014
|
//! \date Sat Jul 05 00:09:15 2014
|
||||||
//! \brief PNG image implementation.
|
//! \brief PNG image implementation.
|
||||||
//
|
//
|
||||||
// Copyright (C) 2014 by morkt
|
// Copyright (C) 2014-2015 by morkt
|
||||||
//
|
//
|
||||||
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
// of this software and associated documentation files (the "Software"), to
|
// of this software and associated documentation files (the "Software"), to
|
||||||
@@ -120,8 +120,7 @@ namespace GameRes
|
|||||||
var file = new ArcView.Reader (stream);
|
var file = new ArcView.Reader (stream);
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if (file.ReadUInt32() != Signature)
|
file.ReadUInt32();
|
||||||
return null;
|
|
||||||
if (file.ReadUInt32() != 0x0a1a0a0d)
|
if (file.ReadUInt32() != 0x0a1a0a0d)
|
||||||
return null;
|
return null;
|
||||||
uint chunk_size = Binary.BigEndian (file.ReadUInt32());
|
uint chunk_size = Binary.BigEndian (file.ReadUInt32());
|
||||||
|
|||||||
Reference in New Issue
Block a user