diff options
-rw-r--r-- | core/variant_call.cpp | 2 | ||||
-rw-r--r-- | tools/editor/editor_import_export.cpp | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/core/variant_call.cpp b/core/variant_call.cpp index b28035e8b0..75b1fb78c6 100644 --- a/core/variant_call.cpp +++ b/core/variant_call.cpp @@ -263,6 +263,7 @@ static void _call_##m_type##_##m_method(Variant& r_ret,Variant& p_self,const Var VCALL_LOCALMEM1R(String,ord_at); //VCALL_LOCALMEM2R(String,erase); VCALL_LOCALMEM0R(String,hash); + VCALL_LOCALMEM0R(String,md5_text); VCALL_LOCALMEM0R(String,empty); VCALL_LOCALMEM0R(String,is_abs_path); VCALL_LOCALMEM0R(String,is_rel_path); @@ -1166,6 +1167,7 @@ _VariantCall::addfunc(Variant::m_vtype,Variant::m_ret,_SCS(#m_method),VCALL(m_cl ADDFUNC1(STRING,STRING,String,ord_at,INT,"at",varray()); // ADDFUNC2(STRING,String,erase,INT,INT,varray()); ADDFUNC0(STRING,INT,String,hash,varray()); + ADDFUNC0(STRING,STRING,String,md5_text,varray()); ADDFUNC0(STRING,BOOL,String,empty,varray()); ADDFUNC0(STRING,BOOL,String,is_abs_path,varray()); ADDFUNC0(STRING,BOOL,String,is_rel_path,varray()); diff --git a/tools/editor/editor_import_export.cpp b/tools/editor/editor_import_export.cpp index 649db5fc45..8f9195110b 100644 --- a/tools/editor/editor_import_export.cpp +++ b/tools/editor/editor_import_export.cpp @@ -1032,7 +1032,7 @@ Error EditorExportPlatformPC::export_project(const String& p_path, bool p_debug, if (!dst) { EditorNode::add_io_error("Can't copy executable file to:\n "+p_path); - return ERR_FILE_CANT_READ; + return ERR_FILE_CANT_WRITE; } uint8_t buff[32768]; @@ -1061,7 +1061,7 @@ Error EditorExportPlatformPC::export_project(const String& p_path, bool p_debug, if (!dst) { EditorNode::add_io_error("Can't write data pack to:\n "+p_path); - return ERR_FILE_CANT_READ; + return ERR_FILE_CANT_WRITE; } } |