Commit Graph
7 Commits
Author SHA1 Message Date
Stuart Carnie e159d013c7 feat: Add async / await compatible completion handler
See https://developer.apple.com/documentation/swift/calling_objective-c_apis_asynchronously
2021-10-23 08:24:13 +11:00
Stuart Carnie 34934fbf87 feat: General improvements to OpenEmuKit
NOTE:

Replaced `dispatch_async` to `CFRunLoopPerformBlock`, as it was always
dispatching to the main queue. `dispatch_async` is not reentrant,
meaning that a nested call to dispatch and wait would block forever.
`CFRunLoopPerformBlock` allows this behaviour, to enable the synchronous
calls such as `captureOutputImage` and `captureSourceImage`
2021-06-18 09:40:45 +10:00
Stuart Carnie 009ad88a85 fix: Improve OpenEmuXPCHelperApp, as host does not need to subclass
Like OEXPCGameCoreManager, OpenEmuXPCHelperApp determines the service
name of the broker by interrogating it's Info.plist
2021-05-15 10:19:30 +10:00
Daniele Cattaneo b4d2307bc2 Add an optional method in OEGameCoreOwner for notifying when a game core terminates. 2020-10-25 00:08:04 +02:00
Stuart Carnie bf71f646a3 Amend API to allow dispatch queue to be provided
This allows clients to use a queue other than main to perform the
callbacks, allowing for synchronization primitives, such as semaphores
2020-08-28 11:18:44 -07:00
Stuart Carnie 3ca6a6357b feat: Improvements to API
Introduced `OEGameStartupInfo` to capture startup parameters for
loading a core and ROM.

A future iteration of this API will provide a generic container.
2020-08-23 08:31:13 -07:00
Stuart Carnie dd57da92d9 Initial commit 2020-08-14 18:29:34 -07:00