mirror of
https://github.com/dborth/snes9xgx.git
synced 2025-01-24 09:01:13 +01:00
This commit is contained in:
parent
ccf1bebfa4
commit
39102d8169
@ -85,9 +85,7 @@ FLIP16 (u16 b)
|
|||||||
int
|
int
|
||||||
IsZipFile (char *buffer)
|
IsZipFile (char *buffer)
|
||||||
{
|
{
|
||||||
unsigned int *check;
|
unsigned int *check = (unsigned int *) buffer;
|
||||||
|
|
||||||
check = (unsigned int *) buffer;
|
|
||||||
|
|
||||||
if (check[0] == 0x504b0304)
|
if (check[0] == 0x504b0304)
|
||||||
return 1;
|
return 1;
|
||||||
@ -277,9 +275,6 @@ static int szMethod = 0;
|
|||||||
int
|
int
|
||||||
Is7ZipFile (char *buffer)
|
Is7ZipFile (char *buffer)
|
||||||
{
|
{
|
||||||
unsigned int *check;
|
|
||||||
check = (unsigned int *) buffer;
|
|
||||||
|
|
||||||
// 7z signature
|
// 7z signature
|
||||||
static Byte Signature[6] = {'7', 'z', 0xBC, 0xAF, 0x27, 0x1C};
|
static Byte Signature[6] = {'7', 'z', 0xBC, 0xAF, 0x27, 0x1C};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user