فهرست منبع

Remove meaningless parameter from bindings

Pedro J. Estébanez 5 سال پیش
والد
کامیت
a69e88e467
3فایلهای تغییر یافته به همراه3 افزوده شده و 6 حذف شده
  1. 2 2
      core/bind/core_bind.cpp
  2. 1 1
      core/bind/core_bind.h
  3. 0 3
      doc/classes/Directory.xml

+ 2 - 2
core/bind/core_bind.cpp

@@ -2344,10 +2344,10 @@ Error _Directory::change_dir(String p_dir) {
 	ERR_FAIL_COND_V_MSG(!d, ERR_UNCONFIGURED, "Directory must be opened before use.");
 	ERR_FAIL_COND_V_MSG(!d, ERR_UNCONFIGURED, "Directory must be opened before use.");
 	return d->change_dir(p_dir);
 	return d->change_dir(p_dir);
 }
 }
-String _Directory::get_current_dir(bool p_include_drive) {
+String _Directory::get_current_dir() {
 
 
 	ERR_FAIL_COND_V_MSG(!d, "", "Directory must be opened before use.");
 	ERR_FAIL_COND_V_MSG(!d, "", "Directory must be opened before use.");
-	return d->get_current_dir(p_include_drive);
+	return d->get_current_dir();
 }
 }
 Error _Directory::make_dir(String p_dir) {
 Error _Directory::make_dir(String p_dir) {
 
 

+ 1 - 1
core/bind/core_bind.h

@@ -572,7 +572,7 @@ public:
 	int get_current_drive();
 	int get_current_drive();
 
 
 	Error change_dir(String p_dir); // Can be relative or absolute, return false on success.
 	Error change_dir(String p_dir); // Can be relative or absolute, return false on success.
-	String get_current_dir(bool p_include_drive = true); // Return current dir location.
+	String get_current_dir(); // Return current dir location.
 
 
 	Error make_dir(String p_dir);
 	Error make_dir(String p_dir);
 	Error make_dir_recursive(String p_dir);
 	Error make_dir_recursive(String p_dir);

+ 0 - 3
doc/classes/Directory.xml

@@ -77,11 +77,8 @@
 		<method name="get_current_dir">
 		<method name="get_current_dir">
 			<return type="String">
 			<return type="String">
 			</return>
 			</return>
-			<argument index="0" name="include_drive" type="bool" default="true">
-			</argument>
 			<description>
 			<description>
 				Returns the absolute path to the currently opened directory (e.g. [code]res://folder[/code] or [code]C:\tmp\folder[/code]).
 				Returns the absolute path to the currently opened directory (e.g. [code]res://folder[/code] or [code]C:\tmp\folder[/code]).
-				On Windows, if [code]include_drive[/code] is [code]false[/code], the leading drive specificator is omitted from the returned value (e.g. [code]\tmp\folder[/code]).
 			</description>
 			</description>
 		</method>
 		</method>
 		<method name="get_current_drive">
 		<method name="get_current_drive">