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

Replace append_utfx with direct String::utfx

This commit is contained in:
Kiro
2025-03-30 19:56:38 +02:00
parent ba3482926d
commit 23129a66ed
30 changed files with 49 additions and 123 deletions

View File

@@ -1127,9 +1127,8 @@ String OS_Unix::get_executable_path() const {
WARN_PRINT("Couldn't get executable path from sysctl");
return OS::get_executable_path();
}
String b;
b.append_utf8(buf);
return b;
return String::utf8(buf);
#elif defined(__APPLE__)
char temp_path[1];
uint32_t buff_size = 1;