Closed Gianmarco72 closed 2 years ago
I've implemented a fix according to this article:
var token: NSObjectProtocol!
public func applicationDidFinishLaunching(_ aNotification: Notification) {
debug(.lifetime)
token = ProcessInfo.processInfo.beginActivity(options: [ .userInitiated ],
reason: "Running VirtualC64")
}
public func applicationWillTerminate(_ aNotification: Notification) {
debug(.lifetime)
ProcessInfo.processInfo.endActivity(token)
}
v4.5b1 is online.
When I play using my Speedlink Competition PRO USB, my iMac starts the screensaver after time I set in Sys Pref on macOS. Same thing with other joypad USB (Gravis GamePro). I think it also happens with a Bluetooth gamepad but I haven't tried it yet.
Virtual C64 v4.4 macOS Monterey (12.0.1)