Add String::replace_char(s) methods for performance and convenience

This commit is contained in:
A Thousand Ships 2024-05-28 12:15:00 +02:00
parent c374ce211c
commit 889410dcda
No known key found for this signature in database
GPG key ID: DEFC5A5B1306947D
67 changed files with 297 additions and 137 deletions

View file

@ -4425,7 +4425,7 @@ int Main::start() {
String local_game_path;
if (!game_path.is_empty() && !project_manager) {
local_game_path = game_path.replace("\\", "/");
local_game_path = game_path.replace_char('\\', '/');
if (!local_game_path.begins_with("res://")) {
bool absolute =