1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-08 12:40:44 +00:00

Improve documentation for OS.read_string_from_stdin()

This makes it clearer that calls to this method are blocking.

The unused method parameter was also removed.
This commit is contained in:
Hugo Locurcio
2022-12-29 21:06:11 +01:00
parent a754930918
commit 86b8176864
10 changed files with 19 additions and 26 deletions

View File

@@ -149,13 +149,9 @@ Vector<String> OS_Unix::get_video_adapter_driver_info() const {
return Vector<String>();
}
String OS_Unix::get_stdin_string(bool p_block) {
if (p_block) {
char buff[1024];
return String::utf8(fgets(buff, 1024, stdin));
}
return String();
String OS_Unix::get_stdin_string() {
char buff[1024];
return String::utf8(fgets(buff, 1024, stdin));
}
Error OS_Unix::get_entropy(uint8_t *r_buffer, int p_bytes) {