mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-24 03:44:13 +08:00
(Pb3Reader.Unpack): throw InvalidEncryptionScheme on unknown type id.
This commit is contained in:
parent
6099177363
commit
6613f11461
@ -113,11 +113,15 @@ namespace GameRes.Formats.Purple
|
||||
{
|
||||
switch (m_info.Type)
|
||||
{
|
||||
default: throw new InvalidEncryptionScheme();
|
||||
case 1: UnpackV1(); break;
|
||||
case 5: UnpackV5(); break;
|
||||
case 8:
|
||||
case 6: UnpackV6(); break;
|
||||
default: throw new NotSupportedException(string.Format ("PB3 v{0} images not supported", m_info.Type));
|
||||
case 2:
|
||||
case 3:
|
||||
case 4:
|
||||
case 7: throw new NotSupportedException(string.Format ("PB3 v{0} images not supported", m_info.Type));
|
||||
// V3 is pain in the ass to implement, machine code is full of unrolled loops resulting in a
|
||||
// thousands lines of spaghetti code.
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user