Vampire Survivors Support - v3.0.0
    Preparing search index...

    Function findPackageRoot

    • Finds the folder a loader package was packed in, by locating one of the loader's detection files.

      Parameters

      • files: string[]

        Files contained in the archive.

      • detectionFiles: string[]

        Paths of the loader's detection files, relative to the game folder.

      Returns string | undefined

      The prefix to strip from the archive's paths (empty or ending with a separator), or undefined if the archive isn't the package.