mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-02 15:16:46 +00:00
WII: Add support for WiiFilesystemNode::createDirectory()
This commit is contained in:
parent
89d07e7084
commit
1994249ef2
@ -165,7 +165,7 @@ bool WiiFilesystemNode::getChildren(AbstractFSList &list, ListMode mode, bool hi
|
||||
|
||||
Common::String newPath(_path);
|
||||
if (newPath.lastChar() != '/')
|
||||
newPath += '/';
|
||||
newPath += '/';
|
||||
newPath += pent->d_name;
|
||||
|
||||
bool isDir = ( pent->d_type == DT_DIR );
|
||||
@ -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