mirror of
https://github.com/starr-dusT/yuzu-mainline
synced 2024-03-05 21:12:25 -08:00
service: nfc: Fix amiibo formatting
This commit is contained in:
parent
8fb9f78e83
commit
0d4aa9125e
@ -874,17 +874,19 @@ Result NfcDevice::RestoreAmiibo() {
|
||||
}
|
||||
|
||||
Result NfcDevice::Format() {
|
||||
auto result1 = DeleteApplicationArea();
|
||||
auto result2 = DeleteRegisterInfo();
|
||||
Result result = ResultSuccess;
|
||||
|
||||
if (result1.IsError()) {
|
||||
return result1;
|
||||
if (device_state == DeviceState::TagFound) {
|
||||
result = Mount(NFP::ModelType::Amiibo, NFP::MountTarget::All);
|
||||
}
|
||||
|
||||
if (result2.IsError()) {
|
||||
return result2;
|
||||
if (result.IsError()) {
|
||||
return result;
|
||||
}
|
||||
|
||||
DeleteApplicationArea();
|
||||
DeleteRegisterInfo();
|
||||
|
||||
return Flush();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user