This commit is contained in:
Denis Pauk 2024-09-15 23:18:37 +03:00
parent e277afd397
commit 712180ae07

View file

@ -2932,7 +2932,19 @@ Mod_LoadModel_MDA_Text(const char *mod_name, char *curr_buff,
pheader = (dmdx_t *)extradata; pheader = (dmdx_t *)extradata;
for (i=0; i < pheader->num_skins; i++) 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); char *skin;
skin = (char *)pheader + pheader->ofs_skins + i * MAX_SKINNAME;
if (!strchr(skin, '/') && !strchr(skin, '\\'))
{
char skin_path[MAX_QPATH * 2] = {0};
strncpy(skin_path, base_model, sizeof(skin_path));
strcpy(strrchr(skin_path, '/') + 1, skin);
strncpy(skin, skin_path, MAX_SKINNAME);
printf("%s|%s:%s\n", mod_name, skin_path, skin);
}
} }
} }