mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-06-09 12:31:40 +12:00
FS: Stub TWL_SOUND
This commit is contained in:
parent
b436fdca64
commit
055dbc7fb6
6 changed files with 79 additions and 3 deletions
40
src/core/fs/archive_twl_sound.cpp
Normal file
40
src/core/fs/archive_twl_sound.cpp
Normal file
|
@ -0,0 +1,40 @@
|
|||
#include <algorithm>
|
||||
#include <memory>
|
||||
|
||||
#include "fs/archive_twl_sound.hpp"
|
||||
|
||||
namespace fs = std::filesystem;
|
||||
|
||||
HorizonResult TWLSoundArchive::createFile(const FSPath& path, u64 size) {
|
||||
Helpers::panic("[TWL_SOUND] CreateFile not yet supported");
|
||||
return Result::Success;
|
||||
}
|
||||
|
||||
HorizonResult TWLSoundArchive::deleteFile(const FSPath& path) {
|
||||
Helpers::panic("[TWL_SOUND] Unimplemented DeleteFile");
|
||||
return Result::Success;
|
||||
}
|
||||
|
||||
HorizonResult TWLSoundArchive::createDirectory(const FSPath& path) {
|
||||
Helpers::panic("[TWL_SOUND] CreateDirectory not yet supported");
|
||||
return Result::Success;
|
||||
}
|
||||
|
||||
FileDescriptor TWLSoundArchive::openFile(const FSPath& path, const FilePerms& perms) {
|
||||
Helpers::panic("[TWL_SOUND] OpenFile not yet supported");
|
||||
return FileError;
|
||||
}
|
||||
|
||||
Rust::Result<ArchiveBase*, HorizonResult> TWLSoundArchive::openArchive(const FSPath& path) {
|
||||
if (path.type != PathType::Empty) {
|
||||
Helpers::panic("Unimplemented path type for TWLSoundArchive::OpenArchive");
|
||||
}
|
||||
|
||||
Helpers::warn("Unimplemented: TWL_SOUND archive");
|
||||
return Err(Result::FailurePlaceholder);
|
||||
}
|
||||
|
||||
Rust::Result<DirectorySession, HorizonResult> TWLSoundArchive::openDirectory(const FSPath& path) {
|
||||
Helpers::panic("[TWL_SOUND] OpenDirectory not yet supported");
|
||||
return Err(Result::FailurePlaceholder);
|
||||
}
|
|
@ -101,6 +101,7 @@ ArchiveBase* FSService::getArchiveFromID(u32 id, const FSPath& archivePath) {
|
|||
case ArchiveID::SavedataAndNcch: return &ncch; // This can only access NCCH outside of FSPXI
|
||||
|
||||
case ArchiveID::TwlPhoto: return &twlPhoto;
|
||||
case ArchiveID::TwlSound: return &twlSound;
|
||||
|
||||
default:
|
||||
Helpers::panic("Unknown archive. ID: %d\n", id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue