Skip to content

Commit

Permalink
Potential fix for 17.0 betas
Browse files Browse the repository at this point in the history
  • Loading branch information
alfiecg24 committed Apr 6, 2024
1 parent cfff937 commit 16ae842
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions TrollInstallerX/Models/Exploit.swift
Original file line number Diff line number Diff line change
Expand Up @@ -67,22 +67,27 @@ struct KernelExploit {
let initialise: (@convention(c) () -> Bool)
let deinitialise: (@convention(c) () -> Bool)

let supports17Betas: Bool

init(name: String, type: ExploitType, supported: [ExploitVersion],
initialise: (@convention(c) () -> Bool),
deinitialise: (@convention(c) () -> Bool)
deinitialise: (@convention(c) () -> Bool),
supports17Betas: Bool = false
) {
self.name = name
self.type = type
self.supported = supported
self.initialise = initialise
self.deinitialise = deinitialise
self.supports17Betas = supports17Betas

}

func supports(_ device: Device) -> Bool {
for versions in self.supported {
if device.version >= versions.minimumVersion
&& device.version <= versions.maximumVersion {
if (device.version >= versions.minimumVersion
&& device.version <= versions.maximumVersion)
|| (device.isOnSupported17Beta && self.supports17Betas) {
return true
}
}
Expand Down

0 comments on commit 16ae842

Please sign in to comment.