where my skin?
This commit is contained in:
parent
718202f84e
commit
e277afd397
|
@ -2866,6 +2866,11 @@ Mod_LoadModel_MDA_Text(const char *mod_name, char *curr_buff,
|
|||
{
|
||||
char base_model[MAX_QPATH * 2] = {0};
|
||||
|
||||
if (!strcmp(mod_name, "models/pal/pal.mda"))
|
||||
{
|
||||
printf(">\n%s\n<\n", curr_buff);
|
||||
}
|
||||
|
||||
while (curr_buff)
|
||||
{
|
||||
const char *token;
|
||||
|
@ -2919,6 +2924,18 @@ Mod_LoadModel_MDA_Text(const char *mod_name, char *curr_buff,
|
|||
skins, numskins,
|
||||
read_file, type);
|
||||
|
||||
if (extradata && *type == mod_alias)
|
||||
{
|
||||
dmdx_t *pheader;
|
||||
int i;
|
||||
|
||||
pheader = (dmdx_t *)extradata;
|
||||
for (i=0; i < pheader->num_skins; i++)
|
||||
{
|
||||
printf("%s|%s:%s\n", mod_name, base_model, (char *)pheader + pheader->ofs_skins + i*MAX_SKINNAME);
|
||||
}
|
||||
}
|
||||
|
||||
free(base);
|
||||
return extradata;
|
||||
}
|
||||
|
|
|
@ -1105,6 +1105,7 @@ FS_LoadDAT(const char *packPath)
|
|||
files[i].size = LittleLong(info[i].filelen);
|
||||
files[i].compressed_size = LittleLong(info[i].compressed_size);
|
||||
files[i].format = files[i].compressed_size ? PAK_MODE_DAT : PAK_MODE_Q2;
|
||||
printf("file:%s\n", files[i].name);
|
||||
}
|
||||
free(info);
|
||||
|
||||
|
|
Loading…
Reference in New Issue