feat: modules moved and engine moved to submodule
This commit is contained in:
parent
dfb5e645cd
commit
c33d2130cc
5136 changed files with 225275 additions and 64485 deletions
|
|
@ -199,6 +199,14 @@ void OS::set_stderr_enabled(bool p_enabled) {
|
|||
_stderr_enabled = p_enabled;
|
||||
}
|
||||
|
||||
String OS::multibyte_to_string(const String &p_encoding, const PackedByteArray &p_array) const {
|
||||
return String();
|
||||
}
|
||||
|
||||
PackedByteArray OS::string_to_multibyte(const String &p_encoding, const String &p_string) const {
|
||||
return PackedByteArray();
|
||||
}
|
||||
|
||||
int OS::get_exit_code() const {
|
||||
return _exit_code;
|
||||
}
|
||||
|
|
@ -214,7 +222,7 @@ String OS::get_locale() const {
|
|||
// Non-virtual helper to extract the 2 or 3-letter language code from
|
||||
// `get_locale()` in a way that's consistent for all platforms.
|
||||
String OS::get_locale_language() const {
|
||||
return get_locale().left(3).replace("_", "");
|
||||
return get_locale().left(3).remove_char('_');
|
||||
}
|
||||
|
||||
// Embedded PCK offset.
|
||||
|
|
@ -246,7 +254,7 @@ String OS::get_safe_dir_name(const String &p_dir_name, bool p_allow_paths) const
|
|||
if (p_allow_paths) {
|
||||
// Dir separators are allowed, but disallow ".." to avoid going up the filesystem
|
||||
invalid_chars.push_back("..");
|
||||
safe_dir_name = safe_dir_name.replace("\\", "/").strip_edges();
|
||||
safe_dir_name = safe_dir_name.replace_char('\\', '/').replace("//", "/").strip_edges();
|
||||
} else {
|
||||
invalid_chars.push_back("/");
|
||||
invalid_chars.push_back("\\");
|
||||
|
|
@ -274,7 +282,7 @@ String OS::get_safe_dir_name(const String &p_dir_name, bool p_allow_paths) const
|
|||
// Get properly capitalized engine name for system paths
|
||||
String OS::get_godot_dir_name() const {
|
||||
// Default to lowercase, so only override when different case is needed
|
||||
return String(VERSION_SHORT_NAME).to_lower();
|
||||
return String(GODOT_VERSION_SHORT_NAME).to_lower();
|
||||
}
|
||||
|
||||
// OS equivalent of XDG_DATA_HOME
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue