mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-21 21:05:50 +12:00
Filesystem stuff
This commit is contained in:
parent
5992a58351
commit
272cdefca1
13 changed files with 222 additions and 32 deletions
18
src/core/kernel/file_operations.cpp
Normal file
18
src/core/kernel/file_operations.cpp
Normal file
|
@ -0,0 +1,18 @@
|
|||
#include "kernel.hpp"
|
||||
|
||||
namespace FileOps {
|
||||
enum : u32 {
|
||||
Read = 0x080200C2
|
||||
};
|
||||
}
|
||||
|
||||
void Kernel::handleFileOperation(u32 messagePointer, Handle file) {
|
||||
const u32 cmd = mem.read32(messagePointer);
|
||||
switch (cmd) {
|
||||
default: Helpers::panic("Unknown file operation: %08X", cmd);
|
||||
}
|
||||
}
|
||||
|
||||
void Kernel::readFile(u32 messagePointer, Handle file) {
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue