mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-07-25 00:04:49 +02:00
Io: Cleanup access bits for files.
Also, we default a lot of these members, so don't need to reset.
This commit is contained in:
@@ -742,11 +742,6 @@ PSPFileInfo DirectoryFileSystem::GetFileInfo(std::string filename) {
|
||||
File::FileDetails details;
|
||||
if (!File::GetFileDetails(fullName, &details)) {
|
||||
ERROR_LOG(FILESYS, "DirectoryFileSystem::GetFileInfo: GetFileDetails failed: %s", fullName.c_str());
|
||||
x.size = 0;
|
||||
x.access = 0;
|
||||
memset(&x.atime, 0, sizeof(x.atime));
|
||||
memset(&x.ctime, 0, sizeof(x.ctime));
|
||||
memset(&x.mtime, 0, sizeof(x.mtime));
|
||||
} else {
|
||||
x.size = details.size;
|
||||
x.access = details.access;
|
||||
@@ -1094,6 +1089,7 @@ PSPFileInfo VFSFileSystem::GetFileInfo(std::string filename) {
|
||||
if (x.exists) {
|
||||
x.size = fo.size;
|
||||
x.type = fo.isDirectory ? FILETYPE_DIRECTORY : FILETYPE_NORMAL;
|
||||
x.access = fo.isWritable ? 0666 : 0444;
|
||||
}
|
||||
} else {
|
||||
x.exists = false;
|
||||
|
||||
Reference in New Issue
Block a user