mirror of
https://github.com/whoeevee/EeveeSpotifyReborn.git
synced 2026-01-09 00:23:20 +01:00
30 lines
674 B
Swift
Executable File
30 lines
674 B
Swift
Executable File
import Foundation
|
|
import libroot
|
|
|
|
class BundleHelper {
|
|
|
|
private let bundleName = "EeveeSpotify"
|
|
|
|
private let bundle: Bundle
|
|
static let shared = BundleHelper()
|
|
|
|
private init() {
|
|
self.bundle = Bundle(
|
|
path: Bundle.main.path(
|
|
forResource: bundleName,
|
|
ofType: "bundle"
|
|
)
|
|
?? jbRootPath("/Library/Application Support/\(bundleName).bundle")
|
|
)!
|
|
}
|
|
|
|
func premiumBlankData() throws -> Data {
|
|
return try Data(
|
|
contentsOf: self.bundle.url(
|
|
forResource: "premiumblank",
|
|
withExtension: "bnk"
|
|
)!
|
|
)
|
|
}
|
|
}
|