diff options
| author | Amlal <amlalelmahrouss@icloud.com> | 2024-04-28 15:13:03 +0000 |
|---|---|---|
| committer | Amlal <amlalelmahrouss@icloud.com> | 2024-04-28 15:13:03 +0000 |
| commit | 14f10cc0b35155ddb19ec9069ebb884246e61dcf (patch) | |
| tree | a988617d1c511cf04eb2c2392829a37d82a59e2e /Private/Source/AppMain.cxx | |
| parent | db0681412191dcceb5aa99cf31fb8339d6bc4adb (diff) | |
| parent | 346558208d39a036effe3a4ec232fa5df5a3c8e7 (diff) | |
Merged in MHR-18 (pull request #8)
MHR-18: A lot of fixes and improvements, mostly related to disk I/O and kernel stability.
Diffstat (limited to 'Private/Source/AppMain.cxx')
| -rw-r--r-- | Private/Source/AppMain.cxx | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Private/Source/AppMain.cxx b/Private/Source/AppMain.cxx index 87705393..8fa74459 100644 --- a/Private/Source/AppMain.cxx +++ b/Private/Source/AppMain.cxx @@ -20,12 +20,18 @@ EXTERN_C NewOS::Void AppMain(NewOS::Void) { ///! Mounts a NewFS block. NewOS::NewFilesystemManager* newFS = new NewOS::NewFilesystemManager(); - NewOS::ke_protect_ke_heap(newFS); NewOS::FilesystemManagerInterface::Mount(newFS); + if (newFS->GetImpl()) { + auto catalog = newFS->GetImpl()->GetCatalog("/Boot"); + if (catalog) { + NewOS::kcout << "Catalog-Path-Name: " << catalog->Name << NewOS::endl; + delete catalog; + } + } + while (NewOS::ProcessScheduler::Shared().Leak().Run() > 0); - ///! we're done, unmount. delete newFS; } |
