mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-03 07:30:56 +00:00
WII: Add support for WiiFilesystemNode::createDirectory()
This commit is contained in:
parent
89d07e7084
commit
1994249ef2
@ -221,7 +221,15 @@ Common::WriteStream *WiiFilesystemNode::createWriteStream() {
|
||||
}
|
||||
|
||||
bool WiiFilesystemNode::createDirectory() {
|
||||
warning("WiiFilesystemNode::createDirectory(): Not supported");
|
||||
if(!_exists) {
|
||||
if (mkdir(_path.c_str(), 0755) == 0) {
|
||||
_exists = true;
|
||||
_isDirectory = true;
|
||||
_isReadable = true;
|
||||
_isWritable = true;
|
||||
}
|
||||
}
|
||||
|
||||
return _exists && _isDirectory;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user