mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
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
|
|
@ -112,7 +112,7 @@ TEST_CASE("[ProjectSettings] localize_path") {
|
|||
TestProjectSettingsInternalsAccessor::resource_path() = DirAccess::create(DirAccess::ACCESS_FILESYSTEM)->get_current_dir();
|
||||
String root_path = ProjectSettings::get_singleton()->get_resource_path();
|
||||
#ifdef WINDOWS_ENABLED
|
||||
String root_path_win = ProjectSettings::get_singleton()->get_resource_path().replace("/", "\\");
|
||||
String root_path_win = ProjectSettings::get_singleton()->get_resource_path().replace_char('/', '\\');
|
||||
#endif
|
||||
|
||||
CHECK_EQ(ProjectSettings::get_singleton()->localize_path("filename"), "res://filename");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue