Skip to content

修正: ImagePNXのシグネチャ(0x2F2638E1 ⇒ 0) - #207

Merged
crskycode merged 1 commit into
crskycode:masterfrom
kyororay:PullRequest_Fix-ImagePNX-signature
Jul 12, 2026
Merged

修正: ImagePNXのシグネチャ(0x2F2638E1 ⇒ 0)#207
crskycode merged 1 commit into
crskycode:masterfrom
kyororay:PullRequest_Fix-ImagePNX-signature

Conversation

@kyororay

@kyororay kyororay commented Jul 9, 2026

Copy link
Copy Markdown

ソースコード:ImagePNX.csの修正を提案します。

ImagePNXはPNG画像データを任意のbyteデータでXOR暗号化した画像フォーマットとなります。
そのため、画像データ先頭4バイトのシグネチャは可変値となるため、
PnxFormatクラスのメンバ変数:Signatureは0に設定する必要があります。

以下はPnxFormatの基底クラスであるIResourceクラスに記述されているSignatureのコメントです。
「First 4 bytes of the resource file as little-endian 32-bit integer, or zero if it could vary.」

@crskycode
crskycode merged commit 83d4c44 into crskycode:master Jul 12, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants