mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-21 04:49:14 +12:00
FS: Stub TWL_SOUND
This commit is contained in:
parent
b436fdca64
commit
055dbc7fb6
6 changed files with 79 additions and 3 deletions
30
include/fs/archive_twl_sound.hpp
Normal file
30
include/fs/archive_twl_sound.hpp
Normal file
|
@ -0,0 +1,30 @@
|
|||
#pragma once
|
||||
#include "archive_base.hpp"
|
||||
#include "result/result.hpp"
|
||||
|
||||
using Result::HorizonResult;
|
||||
|
||||
class TWLSoundArchive : public ArchiveBase {
|
||||
public:
|
||||
TWLSoundArchive(Memory& mem) : ArchiveBase(mem) {}
|
||||
std::string name() override { return "TWL_SOUND"; }
|
||||
|
||||
u64 getFreeBytes() override {
|
||||
Helpers::warn("Unimplemented GetFreeBytes for TWLSound archive");
|
||||
return 32_MB;
|
||||
}
|
||||
|
||||
HorizonResult createDirectory(const FSPath& path) override;
|
||||
HorizonResult createFile(const FSPath& path, u64 size) override;
|
||||
HorizonResult deleteFile(const FSPath& path) override;
|
||||
|
||||
Rust::Result<ArchiveBase*, HorizonResult> openArchive(const FSPath& path) override;
|
||||
Rust::Result<DirectorySession, HorizonResult> openDirectory(const FSPath& path) override;
|
||||
|
||||
FileDescriptor openFile(const FSPath& path, const FilePerms& perms) override;
|
||||
|
||||
std::optional<u32> readFile(FileSession* file, u64 offset, u32 size, u32 dataPointer) override {
|
||||
Helpers::panic("Unimplemented ReadFile for TWL_SOUND archive");
|
||||
return {};
|
||||
};
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue