Add String::replace_char(s) methods for performance and convenience
This commit is contained in:
parent
c374ce211c
commit
889410dcda
67 changed files with 297 additions and 137 deletions
|
|
@ -6839,7 +6839,7 @@ Error RenderingDevice::initialize(RenderingContextDriver *p_context, DisplayServ
|
|||
// Only the instance that is not a local device and is also the singleton is allowed to manage a pipeline cache.
|
||||
pipeline_cache_file_path = vformat("user://vulkan/pipelines.%s.%s",
|
||||
OS::get_singleton()->get_current_rendering_method(),
|
||||
device.name.validate_filename().replace(" ", "_").to_lower());
|
||||
device.name.validate_filename().replace_char(' ', '_').to_lower());
|
||||
if (Engine::get_singleton()->is_editor_hint()) {
|
||||
pipeline_cache_file_path += ".editor";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue