You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Add String::replace_char(s) methods for performance and convenience
This commit is contained in:
@@ -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";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user