private void finalizeDrawables(Array<DrawableData> backup, Array<FileHandle> filesToProcess) {
        for (FileHandle file : filesToProcess) {
            DrawableData data = new DrawableData(file);
            if (Utils.isTvg(file.name())) {
                data.type = DrawableType.TVG;
                data.file = file;
                data.tvgData = new TvgData();
                showTipTVG = true;
            } else if (Utils.isNinePatch(file.name())) {
                data.type = DrawableType.NINE_PATCH;
            } else {
                data.type = DrawableType.TEXTURE;
            }
            if (!checkIfNameExists(data.name)) {
                atlasData.getDrawables().add(data);
            }
        }
        
        gatherDrawables();

        dialogFactory.showDialogLoading(() -> {
            Gdx.app.postRunnable(() -> {
                if (!atlasData.produceAtlas()) {
                    showDrawableError();
                    Gdx.app.log(getClass().getName(), "Attempting to reload drawables backup...");
                    atlasData.getDrawables().clear();
                    atlasData.getDrawables().addAll(backup);
                    gatherDrawables();
                    if (atlasData.produceAtlas()) {
                        Gdx.app.log(getClass().getName(), "Successfully rolled back changes to drawables");
                    } else {
                        Gdx.app.error(getClass().getName(), "Critical failure, could not roll back changes to drawables");
                    }
                } else {
                    if (projectData.areResourcesRelative()) {
                        projectData.makeResourcesRelative();
                    }

                    projectData.setChangesSaved(false);
                }

                sortBySelectedMode();
            });
        });
    }
Adds the drawables to the project.
@param backup If there is a failure, the drawable list will be rolled
back to the provided backup.
@param filesToProcess
core/src/com/ray3k/skincomposer/dialog/DialogDrawables.java