Skip to content
This repository was archived by the owner on Jul 5, 2024. It is now read-only.

Commit fbf6199

Browse files
author
midyro
committed
Fix date format and amiibo id
1 parent 9816f02 commit fbf6199

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Emiibo mac/Helpers/AmiiboHelper.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,12 @@ class AmiiboHelper {
4747

4848
func generateJson(amiibo: Amiibo, randomUuid: Bool = true, name: String?){
4949
let dateFormatter = DateFormatter()
50-
dateFormatter.dateFormat = "yyyy-MMM-dd"
50+
dateFormatter.dateFormat = "yyyy-MM-dd"
5151
let date = Date()
5252

5353
let tags: Tag = Tag(randomUuid:randomUuid, uuid: UUID().uuidString)
54-
let model: Mode = Mode(amiiboId: amiibo.tail)
54+
let amiiboId = amiibo.head + amiibo.tail
55+
let model: Mode = Mode(amiiboId: amiiboId)
5556
let register: Register = Register(name: name ?? amiibo.name, firstWriteDate: dateFormatter.string(from: date), miiCharInfo: "mii-charinfo.bin")
5657
let common: Common = Common(lastWriteDate: dateFormatter.string(from: date), writeCounter: 0, version: 0)
5758
let path = FileManager.default.homeDirectoryForCurrentUser.appendingPathComponent("Desktop", isDirectory: true).appendingPathComponent("emiibo", isDirectory: true).appendingPathComponent(name ?? amiibo.name, isDirectory: true)

0 commit comments

Comments
 (0)