mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 16:33:30 +00:00
Dead code tells no tales
This commit is contained in:
parent
37da8155a4
commit
7ad14e7a3e
215 changed files with 153 additions and 56138 deletions
|
@ -194,21 +194,9 @@ Error DirAccessUnix::make_dir(String p_dir) {
|
|||
|
||||
p_dir = fix_path(p_dir);
|
||||
|
||||
#if 1
|
||||
|
||||
bool success = (mkdir(p_dir.utf8().get_data(), S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH) == 0);
|
||||
int err = errno;
|
||||
|
||||
#else
|
||||
char real_current_dir_name[2048];
|
||||
getcwd(real_current_dir_name, 2048);
|
||||
chdir(current_dir.utf8().get_data()); //ascii since this may be unicode or wathever the host os wants
|
||||
|
||||
bool success = (mkdir(p_dir.utf8().get_data(), S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH) == 0);
|
||||
int err = errno;
|
||||
|
||||
chdir(real_current_dir_name);
|
||||
#endif
|
||||
if (success) {
|
||||
return OK;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue