mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Setup/BLP
* fix using replacement patch files as images
This commit is contained in:
@@ -57,10 +57,10 @@
|
|||||||
|
|
||||||
// predict replacement patch files
|
// predict replacement patch files
|
||||||
// ref: http://www.zezula.net/en/mpq/patchfiles.html
|
// ref: http://www.zezula.net/en/mpq/patchfiles.html
|
||||||
if (substr($data, 0x0, 0x4) == "PTCH")
|
if (substr($data, 0x0, 4) == "PTCH")
|
||||||
{
|
{
|
||||||
// strip patch header
|
// strip patch header
|
||||||
if (substr($data, 0x40, 0x43) == "COPY")
|
if (substr($data, 0x40, 4) == "COPY")
|
||||||
$data = substr($data, 0x44);
|
$data = substr($data, 0x44);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user