diff options
| author | Amlal <amlal.elmahrouss@icloud.com> | 2025-01-20 17:53:45 +0100 |
|---|---|---|
| committer | Amlal <amlal.elmahrouss@icloud.com> | 2025-01-20 17:53:45 +0100 |
| commit | ca6831144b352e9d8fb7a514cfe717426ad6fa7b (patch) | |
| tree | 9044da1485b791676f470aceacf473fc3826bf76 /dev/Kernel/src/FS | |
| parent | 6f95c0b5815a4bd3362c1e8fe2241df25318d6fa (diff) | |
ADD: SwapDisk format, you use a custom data structure to work with virtual memory now.
Signed-off-by: Amlal <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/Kernel/src/FS')
| -rw-r--r-- | dev/Kernel/src/FS/NeFS.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/dev/Kernel/src/FS/NeFS.cc b/dev/Kernel/src/FS/NeFS.cc index 0ef83615..213fb8c7 100644 --- a/dev/Kernel/src/FS/NeFS.cc +++ b/dev/Kernel/src/FS/NeFS.cc @@ -138,11 +138,11 @@ _Output BOOL NeFileSystemParser::CreateFork(_Input NFS_FORK_STRUCT& the_fork) the_fork.PreviousSibling = lbaOfPreviousFork; the_fork.NextSibling = (the_fork.DataOffset - the_fork.DataSize - sizeof(NFS_FORK_STRUCT)); - NFS_FORK_STRUCT* fork = new NFS_FORK_STRUCT; + NFS_FORK_STRUCT* fork = new NFS_FORK_STRUCT; - MUST_PASS(fork); // ????? + MUST_PASS(fork); // ????? - rt_copy_memory(&the_fork, fork, sizeof(NFS_FORK_STRUCT)); + rt_copy_memory(&the_fork, fork, sizeof(NFS_FORK_STRUCT)); drv.fPacket.fPacketLba = lba; drv.fPacket.fPacketSize = sizeof(NFS_FORK_STRUCT); @@ -150,10 +150,10 @@ _Output BOOL NeFileSystemParser::CreateFork(_Input NFS_FORK_STRUCT& the_fork) kcout << "Writing fork...\r"; - drv.fOutput(&drv.fPacket); + drv.fOutput(&drv.fPacket); - delete fork; - fork = nullptr; + delete fork; + fork = nullptr; /// log what we have now. kcout << "Wrote fork data at: " << hex_number(the_fork.DataOffset) |
