mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-27 07:34:00 +08:00
(Ai6Win): check for invalid chars to reduce false positives.
This commit is contained in:
parent
dffa9e1e0f
commit
86ae93a83b
@ -69,7 +69,7 @@ namespace GameRes.Formats.Silky
|
||||
for (int j = 0; j < name_length; ++j)
|
||||
{
|
||||
name_buffer[j] -= key--;
|
||||
if (name_buffer[j] < 0x20)
|
||||
if (VFS.InvalidFileNameChars.Contains ((char)name_buffer[j])) // XXX
|
||||
return null;
|
||||
}
|
||||
var name = Encodings.cp932.GetString (name_buffer, 0, name_length);
|
||||
|
Loading…
Reference in New Issue
Block a user