aboutsummaryrefslogtreecommitdiff
path: root/core/bind/core_bind.cpp
diff options
context:
space:
mode:
authortmt2016-01-28 15:58:39 +0100
committertmt2016-01-28 23:20:18 +0100
commit2447c3171ffae5d8ecf34883475907c8b20c2f9c (patch)
treebcb678fc20819c461bfbbe9c50c8b49db905bb0a /core/bind/core_bind.cpp
parent0c7e7e2c2880565ef3b2d7455e89aee9373b7b8f (diff)
downloadgodot-2447c3171ffae5d8ecf34883475907c8b20c2f9c.tar.gz
godot-2447c3171ffae5d8ecf34883475907c8b20c2f9c.tar.zst
godot-2447c3171ffae5d8ecf34883475907c8b20c2f9c.zip
File: Added delimiter to get_csv_line
Diffstat (limited to 'core/bind/core_bind.cpp')
-rw-r--r--core/bind/core_bind.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/bind/core_bind.cpp b/core/bind/core_bind.cpp
index 94d9e22a1..674ca7278 100644
--- a/core/bind/core_bind.cpp
+++ b/core/bind/core_bind.cpp
@@ -1313,9 +1313,9 @@ String _File::get_line() const{
}
-Vector<String> _File::get_csv_line() const {
+Vector<String> _File::get_csv_line(String delim) const {
ERR_FAIL_COND_V(!f,Vector<String>());
- return f->get_csv_line();
+ return f->get_csv_line(delim);
}
/**< use this for files WRITTEN in _big_ endian machines (ie, amiga/mac)
@@ -1498,7 +1498,7 @@ void _File::_bind_methods() {
ObjectTypeDB::bind_method(_MD("set_endian_swap","enable"),&_File::set_endian_swap);
ObjectTypeDB::bind_method(_MD("get_error:Error"),&_File::get_error);
ObjectTypeDB::bind_method(_MD("get_var"),&_File::get_var);
- ObjectTypeDB::bind_method(_MD("get_csv_line"),&_File::get_csv_line);
+ ObjectTypeDB::bind_method(_MD("get_csv_line","delim"),&_File::get_csv_line,DEFVAL(","));
ObjectTypeDB::bind_method(_MD("store_8","value"),&_File::store_8);
ObjectTypeDB::bind_method(_MD("store_16","value"),&_File::store_16);