Implement reading from RomFS

This commit is contained in:
wheremyfoodat 2022-10-09 18:28:45 +03:00
parent 272cdefca1
commit df4cd0642d
10 changed files with 157 additions and 33 deletions

View file

@ -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:

View file

@ -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