package app.revanced.cli.patcher import app.revanced.cli.command.PatchList import app.revanced.patcher.PatcherResult import app.revanced.utils.patcher.addPatchesFiltered import app.revanced.utils.patcher.applyPatchesVerbose import app.revanced.utils.patcher.mergeFiles internal object Patcher { internal fun start( patcher: app.revanced.patcher.Patcher, allPatches: PatchList ): PatcherResult { // merge files like necessary integrations patcher.mergeFiles() // add patches, but filter incompatible or excluded patches patcher.addPatchesFiltered(allPatches) // apply patches patcher.applyPatchesVerbose() return patcher.save() } }