mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-06-03 12:27:21 +12:00
Implement reading from RomFS
This commit is contained in:
parent
272cdefca1
commit
df4cd0642d
10 changed files with 157 additions and 33 deletions
|
@ -84,6 +84,7 @@ class Kernel {
|
|||
MAKE_LOG_FUNCTION(logSVC, svcLogger)
|
||||
MAKE_LOG_FUNCTION(logDebugString, debugStringLogger)
|
||||
MAKE_LOG_FUNCTION(logError, errorLogger)
|
||||
MAKE_LOG_FUNCTION(logFileIO, fileIOLogger)
|
||||
|
||||
// SVC implementations
|
||||
void arbitrateAddress();
|
||||
|
@ -110,6 +111,7 @@ class Kernel {
|
|||
|
||||
// File operations
|
||||
void handleFileOperation(u32 messagePointer, Handle file);
|
||||
void closeFile(u32 messagePointer, Handle file);
|
||||
void readFile(u32 messagePointer, Handle file);
|
||||
|
||||
public:
|
||||
|
|
|
@ -93,15 +93,6 @@ struct Session {
|
|||
Session(Handle portHandle) : portHandle(portHandle) {}
|
||||
};
|
||||
|
||||
struct FileSession {
|
||||
ArchiveBase* archive = nullptr;
|
||||
FSPath path;
|
||||
|
||||
FileSession(ArchiveBase* archive, const FSPath& filePath) : archive(archive) {
|
||||
path = filePath;
|
||||
}
|
||||
};
|
||||
|
||||
enum class ThreadStatus {
|
||||
Running, // Currently running
|
||||
Ready, // Ready to run
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue