mirror of
https://github.com/godotengine/godot.git
synced 2025-10-24 10:23:28 +00:00
Fix x11 exported executables not getting the +x flag
This commit is contained in:
parent
8be9e8b484
commit
b48704c620
6 changed files with 38 additions and 0 deletions
|
|
@ -236,6 +236,15 @@ uint64_t FileAccessUnix::_get_modified_time(const String &p_file) {
|
|||
};
|
||||
}
|
||||
|
||||
Error FileAccessUnix::_chmod(const String &p_path, int p_mod) {
|
||||
int err = chmod(p_path.utf8().get_data(), p_mod);
|
||||
if (!err) {
|
||||
return OK;
|
||||
}
|
||||
|
||||
return FAILED;
|
||||
}
|
||||
|
||||
FileAccess *FileAccessUnix::create_libc() {
|
||||
|
||||
return memnew(FileAccessUnix);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue