mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-23 13:45:34 +08:00
(NOA): force cp932 encoding for older archives.
This commit is contained in:
parent
956a2c3839
commit
e0c6bff0b9
@ -93,7 +93,9 @@ namespace GameRes.Formats.Entis
|
||||
uint id = file.View.ReadUInt32 (8);
|
||||
if (0x02000400 != id)
|
||||
return null;
|
||||
var reader = new IndexReader (file, NoaEncoding.Get<Encoding>());
|
||||
bool old_format = file.View.AsciiEqual (0x10, "EMSAC-Binary Archive");
|
||||
Encoding enc = old_format ? Encodings.cp932 : NoaEncoding.Get<Encoding>();
|
||||
var reader = new IndexReader (file, enc);
|
||||
if (!reader.ParseRoot() || 0 == reader.Dir.Count)
|
||||
return null;
|
||||
if (reader.HasEncrypted)
|
||||
|
Loading…
Reference in New Issue
Block a user