diff options
author | Alexis211 <alexis211@gmail.com> | 2009-10-23 21:06:23 +0200 |
---|---|---|
committer | Alexis211 <alexis211@gmail.com> | 2009-10-23 21:06:23 +0200 |
commit | 5dd48c50c0cf7793a5dafa6be769c8a3f8b9ab60 (patch) | |
tree | 75ee8e14bf7684394a6a663c90b5c26dc5246702 /Source/Library/Userland/Binding | |
parent | 66630e4154b7c1c47d6223fe5a8607cd269446a0 (diff) | |
download | Melon-5dd48c50c0cf7793a5dafa6be769c8a3f8b9ab60.tar.gz Melon-5dd48c50c0cf7793a5dafa6be769c8a3f8b9ab60.zip |
Added some screenshots (\o/) and implemented mkdir in userland.
Diffstat (limited to 'Source/Library/Userland/Binding')
-rw-r--r-- | Source/Library/Userland/Binding/FSNode.class.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/Library/Userland/Binding/FSNode.class.h b/Source/Library/Userland/Binding/FSNode.class.h index 1fdc7ef..6a860ea 100644 --- a/Source/Library/Userland/Binding/FSNode.class.h +++ b/Source/Library/Userland/Binding/FSNode.class.h @@ -61,6 +61,11 @@ inline FSNode find(String name, FSNode cwd = FSNode(0)) { return FSNode(RessourceCaller::sCall(FNIF_OBJTYPE, FNIF_SFIND, (u32int)&name, cwd.resId())); } +inline FSNode mkdir(String name, FSNode cwd = FSNode(0)) { + if (!cwd.valid()) cwd = rootNode(); + return FSNode(RessourceCaller::sCall(FNIF_OBJTYPE, FNIF_SMKDIR, (u32int)&name, cwd.resId())); +} + } #endif |