Add String::replace_char(s) methods for performance and convenience
This commit is contained in:
@ -3062,7 +3062,7 @@ void RenderingDeviceDriverMetal::command_bind_push_constants(CommandBufferID p_c
|
||||
|
||||
String RenderingDeviceDriverMetal::_pipeline_get_cache_path() const {
|
||||
String path = OS::get_singleton()->get_user_data_dir() + "/metal/pipelines";
|
||||
path += "." + context_device.name.validate_filename().replace(" ", "_").to_lower();
|
||||
path += "." + context_device.name.validate_filename().replace_char(' ', '_').to_lower();
|
||||
if (Engine::get_singleton()->is_editor_hint()) {
|
||||
path += ".editor";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user