(CBM): tweaked palette lookup.

This commit is contained in:
morkt 2018-10-18 23:06:24 +04:00
parent 9bd7f743dd
commit 10edddea79

View File

@ -80,8 +80,10 @@ namespace GameRes.Formats.KeroQ
var base_name = Path.GetFileNameWithoutExtension (filename);
yield return VFS.ChangeFileName (filename, base_name + ".pal");
if (base_name.Length > 3)
{
base_name = base_name.Substring (0, 3);
yield return VFS.ChangeFileName (filename, base_name + ".pal");
}
yield return VFS.ChangeFileName (filename, base_name + "_2.pal");
yield return VFS.ChangeFileName (filename, base_name + "_1.pal");
}