mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-07 14:45:41 +12:00
cleanup
This commit is contained in:
parent
90fbbc6e40
commit
0cd81c9ed6
1 changed files with 4 additions and 12 deletions
|
@ -118,14 +118,10 @@ ArchiveBase* FSService::getArchiveFromID(u32 id, const FSPath& archivePath) {
|
|||
case ArchiveID::ExtSaveData: {
|
||||
const ExtSaveDataInfo info = *reinterpret_cast<const ExtSaveDataInfo*>(&archivePath.binary[0]);
|
||||
switch(info.media_type) {
|
||||
case MediaType::NAND: {
|
||||
case MediaType::NAND:
|
||||
return getNANDExtArchiveFromID(info.save_id, false);
|
||||
break;
|
||||
}
|
||||
case MediaType::SD: {
|
||||
case MediaType::SD:
|
||||
return getExtArchiveFromID(info.save_id, false);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
Helpers::panic("Unknown archive media type. ID: %d\n", info.media_type);
|
||||
return nullptr;
|
||||
|
@ -135,14 +131,10 @@ ArchiveBase* FSService::getArchiveFromID(u32 id, const FSPath& archivePath) {
|
|||
case ArchiveID::SharedExtSaveData: {
|
||||
const ExtSaveDataInfo info = *reinterpret_cast<const ExtSaveDataInfo*>(&archivePath.binary[0]);
|
||||
switch(info.media_type) {
|
||||
case MediaType::NAND: {
|
||||
case MediaType::NAND:
|
||||
return getNANDExtArchiveFromID(info.save_id, true);
|
||||
break;
|
||||
}
|
||||
case MediaType::SD: {
|
||||
case MediaType::SD:
|
||||
return getExtArchiveFromID(info.save_id, true);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
Helpers::panic("Unknown archive media type. ID: %d\n", info.media_type);
|
||||
return nullptr;
|
||||
|
|
Loading…
Add table
Reference in a new issue