AppInstaller // Fix the credit of isAppBundleTranslocated().
This commit is contained in:
parent
310ec10cf6
commit
182c584fe5
|
@ -1,19 +1,14 @@
|
||||||
// (c) 2011 and onwards The OpenVanilla Project (MIT License).
|
// (c) 2011 and onwards Lukhnos Liu and MJHsieh.
|
||||||
// All possible vChewing-specific modifications are of:
|
// Swiftified by Rob Mayoff.
|
||||||
// (c) 2021 and onwards The vChewing Project (MIT-NTL License).
|
|
||||||
// ====================
|
// ====================
|
||||||
// This code is released under the MIT license (SPDX-License-Identifier: MIT)
|
// This code is released under the MIT license (SPDX-License-Identifier: MIT)
|
||||||
// ... with NTL restriction stating that:
|
|
||||||
// No trademark license is granted to use the trade names, trademarks, service
|
|
||||||
// marks, or product names of Contributor, except as required to fulfill notice
|
|
||||||
// requirements defined in MIT License.
|
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
|
||||||
public enum Reloc {
|
public enum Reloc {
|
||||||
// Determines if an app is translocated by Gatekeeper to a randomized path.
|
// Determines if an app is translocated by Gatekeeper to a randomized path.
|
||||||
// See https://weblog.rogueamoeba.com/2016/06/29/sierra-and-gatekeeper-path-randomization/
|
// See https://weblog.rogueamoeba.com/2016/06/29/sierra-and-gatekeeper-path-randomization/
|
||||||
// Originally written by Zonble Yang in Objective-C (MIT License).
|
// Originally written by MJHsieh and Lukhnos Liu in Objective-C (MIT License).
|
||||||
// Swiftified by: Rob Mayoff. Ref: https://forums.swift.org/t/58719/5
|
// Swiftified by: Rob Mayoff. Ref: https://forums.swift.org/t/58719/5
|
||||||
public static func isAppBundleTranslocated(atPath bundlePath: String) -> Bool {
|
public static func isAppBundleTranslocated(atPath bundlePath: String) -> Bool {
|
||||||
var entryCount = getfsstat(nil, 0, 0)
|
var entryCount = getfsstat(nil, 0, 0)
|
||||||
|
|
Loading…
Reference in New Issue