summaryrefslogtreecommitdiffstats
path: root/core/core_bind.h
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2022-09-13 18:37:11 +0200
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2022-09-13 18:37:11 +0200
commit8b5bb7eeeaf666dc7bb390a16599c6674d34a8ed (patch)
treeb54125263c31ee4e72ee8bdf858c23419b6f9bc3 /core/core_bind.h
parentf6b36f54e50cff518b4085cf665405ad1b5f6d44 (diff)
downloadredot-engine-8b5bb7eeeaf666dc7bb390a16599c6674d34a8ed.tar.gz
[OS] Expose get_stdin_string to Scripting.
Exposed as read_string_from_stdin so it's clear it's not retrieving a property. The method is kept with the block parameter, but a note is added to the docs specifying that is not implemented on any platform (should we just remove it?).
Diffstat (limited to 'core/core_bind.h')
-rw-r--r--core/core_bind.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/core_bind.h b/core/core_bind.h
index cd382d2915..c0fbdcae86 100644
--- a/core/core_bind.h
+++ b/core/core_bind.h
@@ -175,6 +175,7 @@ public:
Vector<String> get_system_fonts() const;
String get_system_font_path(const String &p_font_name, bool p_bold = false, bool p_italic = false) const;
String get_executable_path() const;
+ String read_string_from_stdin(bool p_block = true);
int execute(const String &p_path, const Vector<String> &p_arguments, Array r_output = Array(), bool p_read_stderr = false, bool p_open_console = false);
int create_process(const String &p_path, const Vector<String> &p_arguments, bool p_open_console = false);
int create_instance(const Vector<String> &p_arguments);