Adopted the standard withCString for C strings throughout the library.
This commit is contained in:
@@ -25,7 +25,7 @@ extension Sound {
|
||||
}
|
||||
|
||||
public func loadMIDIFile(path: String) throws(PlaydateError) {
|
||||
let loaded = path.withPlaydateCString {
|
||||
let loaded = path.withCString {
|
||||
Sequence.api.pointee.loadMIDIFile.unsafelyUnwrapped(pointer, $0) != 0
|
||||
}
|
||||
if !loaded {
|
||||
|
||||
Reference in New Issue
Block a user