summaryrefslogtreecommitdiff
path: root/wii/filesystem.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--wii/filesystem.cpp9
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;
+}