Removed unnecessary assignments
This commit is contained in:
committed by
Rémi Verschelde
parent
4b277c2c20
commit
a22e746bc3
@@ -781,7 +781,9 @@ Error EditorExportPlatformIOS::export_project(const Ref<EditorExportPreset> &p_p
|
||||
int ret = unzGoToFirstFile(src_pkg_zip);
|
||||
Vector<uint8_t> project_file_data;
|
||||
while (ret == UNZ_OK) {
|
||||
#if defined(OSX_ENABLED) || defined(X11_ENABLED)
|
||||
bool is_execute = false;
|
||||
#endif
|
||||
|
||||
//get filename
|
||||
unz_file_info info;
|
||||
@@ -812,7 +814,9 @@ Error EditorExportPlatformIOS::export_project(const Ref<EditorExportPreset> &p_p
|
||||
continue; //ignore!
|
||||
}
|
||||
found_library = true;
|
||||
#if defined(OSX_ENABLED) || defined(X11_ENABLED)
|
||||
is_execute = true;
|
||||
#endif
|
||||
file = "godot_ios.a";
|
||||
}
|
||||
if (file == project_file) {
|
||||
@@ -855,7 +859,7 @@ Error EditorExportPlatformIOS::export_project(const Ref<EditorExportPreset> &p_p
|
||||
f->close();
|
||||
memdelete(f);
|
||||
|
||||
#ifdef OSX_ENABLED
|
||||
#if defined(OSX_ENABLED) || defined(X11_ENABLED)
|
||||
if (is_execute) {
|
||||
// we need execute rights on this file
|
||||
chmod(file.utf8().get_data(), 0755);
|
||||
|
||||
Reference in New Issue
Block a user