mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Replacement: Validate ZIMs are 8888.
This commit is contained in:
parent
7afd02e7e0
commit
cedf196d8f
1 changed files with 4 additions and 1 deletions
|
@ -456,7 +456,10 @@ bool TextureReplacer::PopulateLevel(ReplacedTextureLevel &level) {
|
|||
fseek(fp, 4, SEEK_SET);
|
||||
fread(&level.w, 1, 4, fp);
|
||||
fread(&level.h, 1, 4, fp);
|
||||
good = true;
|
||||
int flags;
|
||||
if (fread(&flags, 1, 4, fp) == 4) {
|
||||
good = (flags & ZIM_FORMAT_MASK) == ZIM_RGBA8888;
|
||||
}
|
||||
} else if (imageType == ReplacedImageType::PNG) {
|
||||
png_image png = {};
|
||||
png.version = PNG_IMAGE_VERSION;
|
||||
|
|
Loading…
Add table
Reference in a new issue