[Scummvm-git-logs] scummvm master -> 196b33bb7f6b04d42c36bf459b675233b34604ec
sev-
sev at scummvm.org
Mon Aug 26 11:38:52 CEST 2019
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
196b33bb7f PSP: Implement AbstractFSNode::createDirectory()
Commit: 196b33bb7f6b04d42c36bf459b675233b34604ec
https://github.com/scummvm/scummvm/commit/196b33bb7f6b04d42c36bf459b675233b34604ec
Author: Cameron Cawley (ccawley2011 at gmail.com)
Date: 2019-08-26T11:38:47+02:00
Commit Message:
PSP: Implement AbstractFSNode::createDirectory()
Changed paths:
backends/fs/psp/psp-fs.cpp
diff --git a/backends/fs/psp/psp-fs.cpp b/backends/fs/psp/psp-fs.cpp
index e79d07d..34727a6 100644
--- a/backends/fs/psp/psp-fs.cpp
+++ b/backends/fs/psp/psp-fs.cpp
@@ -240,7 +240,21 @@ Common::WriteStream *PSPFilesystemNode::createWriteStream() {
}
bool PSPFilesystemNode::createDirectory() {
- warning("PSPFilesystemNode::createDirectory(): Not supported");
+ DEBUG_ENTER_FUNC();
+
+ if (PowerMan.beginCriticalSection() == PowerManager::Blocked)
+ PSP_DEBUG_PRINT_FUNC("Suspended\n"); // Make sure to block in case of suspend
+
+ PSP_DEBUG_PRINT_FUNC("path [%s]\n", _path.c_str());
+
+ if (sceIoMkdir(_path.c_str(), 0777) == 0) {
+ struct stat st;
+ _isValid = (0 == stat(_path.c_str(), &st));
+ _isDirectory = S_ISDIR(st.st_mode);
+ }
+
+ PowerMan.endCriticalSection();
+
return _isValid && _isDirectory;
}
More information about the Scummvm-git-logs
mailing list