mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-15 01:33:25 +01:00
[AltJIT] Adds AltJIT CLI tool to enable JIT on devices running iOS 17+
Commands: altjit enable [app/pid] --udid [udid] * Enables JIT for given app/process altjit mount --udid [udid] * Mounts personalized developer disk
This commit is contained in:
35
Shared/Types/AppProcess.swift
Normal file
35
Shared/Types/AppProcess.swift
Normal file
@@ -0,0 +1,35 @@
|
||||
//
|
||||
// AppProcess.swift
|
||||
// AltStore
|
||||
//
|
||||
// Created by Riley Testut on 9/6/23.
|
||||
// Copyright © 2023 Riley Testut. All rights reserved.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
|
||||
enum AppProcess: CustomStringConvertible
|
||||
{
|
||||
case name(String)
|
||||
case pid(Int)
|
||||
|
||||
var description: String {
|
||||
switch self
|
||||
{
|
||||
case .name(let name): return name
|
||||
case .pid(let pid): return "Process \(pid)"
|
||||
}
|
||||
}
|
||||
|
||||
init(_ value: String)
|
||||
{
|
||||
if let pid = Int(value)
|
||||
{
|
||||
self = .pid(pid)
|
||||
}
|
||||
else
|
||||
{
|
||||
self = .name(value)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user