add image format support for CSystem when there is Resources subdirectory And update database

This commit is contained in:
ichiNose
2025-04-19 11:47:58 +08:00
parent 76932deea3
commit f225e57b22
8 changed files with 624 additions and 4 deletions

View File

@@ -319,10 +319,17 @@ namespace GameRes.Formats.Cyberworks
}
else if (scheme != null && ('a' == type || 'd' == type) && input.Length > 21)
{
int id = input.ReadByte();
if (id == scheme.Value2)
if (!scheme.UseDataDecoder)
{
return new AImageReader (input, scheme, type);
int id = input.ReadByte();
if (id == scheme.Value2)
{
return new AImageReader(input, scheme, type);
}
}
else
{
return new DataImageDecoder(input,type);
}
}
input.Position = 0;
@@ -377,6 +384,7 @@ namespace GameRes.Formats.Cyberworks
public byte Value3;
public byte[] HeaderOrder;
public bool Flipped;
public bool UseDataDecoder;
public AImageScheme ()
{