Standardized some arguments labels throughout the Playdate bindings target.

This commit is contained in:
2026-07-26 00:25:43 +02:00
parent 2b046005d1
commit 41558399e3
3 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -150,7 +150,7 @@ extension JSON {
}
/// Opens and decodes the JSON file at `path`.
public static func decodeFile(at path: String) throws(PlaydateError) -> Value {
public static func decodeFile(path: String) throws(PlaydateError) -> Value {
let file = try File.Handle(path: path, mode: [.read, .readData])
return try decode(file: file)
}
@@ -15,9 +15,9 @@ extension Sound {
}
/// Creates a sequence and loads the MIDI file at `path`.
public convenience init(midiFilePath: String) throws(PlaydateError) {
public convenience init(path: String) throws(PlaydateError) {
self.init()
try loadMIDIFile(path: midiFilePath)
try loadMIDIFile(path: path)
}
deinit {