From 5dd48c50c0cf7793a5dafa6be769c8a3f8b9ab60 Mon Sep 17 00:00:00 2001 From: Alexis211 Date: Fri, 23 Oct 2009 21:06:23 +0200 Subject: Added some screenshots (\o/) and implemented mkdir in userland. --- Source/Library/Userland/Binding/FSNode.class.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Source/Library/Userland') 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 -- cgit v1.2.3