Skip to content

Commit

Permalink
Version 4.1.2
Browse files Browse the repository at this point in the history
- Fixed a bug that caused the SIP status to not be read.
  • Loading branch information
ITzTravelInTime committed Mar 3, 2022
1 parent 9a0877a commit 049e06e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
"repositoryURL": "https://github.com/ITzTravelInTime/TINUIORegistry",
"state": {
"branch": null,
"revision": "59055fda3379bb43e3a71c5aad3211e03e866df5",
"version": "0.0.1"
"revision": "fb0200474b3e8b962cef6a0438420a32e62df944",
"version": "0.0.2"
}
}
]
Expand Down
12 changes: 11 additions & 1 deletion Sources/TINURecovery/SIP.swift
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,18 @@ open class SIP: SimulatableDetectable{
return
}
*/
/*
guard let num = NVRAM.getData(forKey: "csr-active-config") else{
Printer.print(" [SIP] Can't get SIP staus, due to a problem while converting the nvram output to a valid integer")
return
}
ret = num.withUnsafeBytes({(rawPtr: UnsafeRawBufferPointer) in
return rawPtr.load(as: SIPStatus.self)
})*/


guard let num: SIPStatus = NVRAM.getInteger(forKey: "csr-active-config") else{
guard let num: SIPStatus = NVRAM.getIntegerData(forKey: "csr-active-config") else{
Printer.print(" [SIP] Can't get SIP staus, due to a problem while converting the nvram output to a valid integer")
return
}
Expand Down

0 comments on commit 049e06e

Please sign in to comment.