diff options
Diffstat (limited to 'wii/filesystem.cpp')
-rw-r--r-- | wii/filesystem.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/wii/filesystem.cpp b/wii/filesystem.cpp index 014b693..ef2612d 100644 --- a/wii/filesystem.cpp +++ b/wii/filesystem.cpp @@ -139,3 +139,12 @@ bool WiiDirectory::addChild(WiiFSObject *obj) { return true; } +bool WiiDirectory::removeChild(WiiFSObject *obj) { + if (obj->parent != this) + return false; + + obj->unlinkFromParent(); + delete obj; + + return true; +} |