get_list()['models']; foreach ($modelList as $modelName) { if (file_exists('../model/'.$modelName.'/textures.cache')) { $textures = $texturesNew = array(); foreach ($modelTextures->get_list($modelName)['textures'] as $v) $textures[] = json_encode($v, JSON_UNESCAPED_SLASHES); foreach ($modelTextures->get_textures($modelName) as $v) $texturesNew[] = json_encode($v, JSON_UNESCAPED_SLASHES); if ($textures == NULL) continue; elseif (empty(array_diff($texturesNew, $textures))) { echo '
'.$modelName.' / textures.cache / No Update.
'; } else { foreach (array_values(array_unique(array_merge($textures, $texturesNew))) as $v) $texturesMerge[] = json_decode($v, 1); file_put_contents('../model/'.$modelName.'/textures.cache', json_encode($texturesMerge, JSON_UNESCAPED_SLASHES)); echo ''.$modelName.' / textures.cache / Updated.
'; } } elseif (is_array($modelName)) continue; elseif ($modelTextures->get_list($modelName)) echo ''.$modelName.' / textures.cache / Created.
'; }