[AltServer] Supports processName in EnableUnsignedCodeExecutionRequest

Process names will be used as a fallback if the processID cannot be determined, such as when enabling JIT for another app from within AltStore.
This commit is contained in:
Riley Testut
2021-09-02 16:03:21 -05:00
parent 3edd8d5ebe
commit e4b0b153e5
2 changed files with 22 additions and 6 deletions

View File

@@ -445,12 +445,14 @@ public struct EnableUnsignedCodeExecutionRequest: ServerMessageProtocol
public var identifier = "EnableUnsignedCodeExecutionRequest"
public var udid: String
public var processID: Int
public var processID: Int?
public var processName: String?
public init(udid: String, processID: Int)
public init(udid: String, processID: Int? = nil, processName: String? = nil)
{
self.udid = udid
self.processID = processID
self.processName = processName
}
}