diff options
author | Alexis211 <alexis211@gmail.com> | 2009-11-29 17:06:47 +0100 |
---|---|---|
committer | Alexis211 <alexis211@gmail.com> | 2009-11-29 17:06:47 +0100 |
commit | 32ffa508b6ee9c9b36e3a054d218ee90caea4c8b (patch) | |
tree | 4136164e7fb52005d57782c9ae70da89eca85807 /Source/Kernel/Core/kmain.wtf.cpp | |
parent | 2be9def10e048b3245bb14e9fb57324c11c527d6 (diff) | |
download | Melon-32ffa508b6ee9c9b36e3a054d218ee90caea4c8b.tar.gz Melon-32ffa508b6ee9c9b36e3a054d218ee90caea4c8b.zip |
make qemu-hdd now works great
Diffstat (limited to 'Source/Kernel/Core/kmain.wtf.cpp')
-rw-r--r-- | Source/Kernel/Core/kmain.wtf.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Source/Kernel/Core/kmain.wtf.cpp b/Source/Kernel/Core/kmain.wtf.cpp index 3eee14b..ad11eaf 100644 --- a/Source/Kernel/Core/kmain.wtf.cpp +++ b/Source/Kernel/Core/kmain.wtf.cpp @@ -203,7 +203,14 @@ void kmain(multiboot_info_t* mbd, u32int magic) { VFS::mount(mount[i], kvt, mbd); } - //FATFS::mount(Part::partitions[0], (DirectoryNode*)VFS::createDirectory("/Mount")); + { + TextFile mounts("/System/Configuration/Mount", FM_READ); + while (mounts.valid() && !mounts.eof()) { + String m = mounts.readLine(); + if (!m.empty() && m[0] != WChar("#")) VFS::mount(m, kvt, mbd); + } + } + //*************************************** LOAD SYSTEM STUFF |