Updated to handle UMX archives with empty type specifier.
parent
5959e6cb69
commit
31a0f9155c
|
@ -48,8 +48,7 @@ void * unpackUmx( const void * in, long * size )
|
||||||
if (classname && !strcmp(pkg.oclassname(i), "Music"))
|
if (classname && !strcmp(pkg.oclassname(i), "Music"))
|
||||||
{
|
{
|
||||||
char * type = pkg.otype(i);
|
char * type = pkg.otype(i);
|
||||||
if (!type) continue;
|
if (!type || !strcasecmp(type, "it") || !strcasecmp(type, "s3m") || !strcasecmp(type, "xm"))
|
||||||
if (!strcasecmp(type, "it") || !strcasecmp(type, "s3m") || !strcasecmp(type, "xm"))
|
|
||||||
{
|
{
|
||||||
*size = pkg.object_size(i);
|
*size = pkg.object_size(i);
|
||||||
void * ret = malloc( *size );
|
void * ret = malloc( *size );
|
||||||
|
|
Loading…
Reference in New Issue