You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Use new XDG folders to dehardcode paths
This commit is contained in:
@@ -128,7 +128,7 @@ void ScriptCreateDialog::_template_changed(int p_template) {
|
||||
}
|
||||
String ext = ScriptServer::get_language(language_menu->get_selected())->get_extension();
|
||||
String name = template_list[p_template - 1] + "." + ext;
|
||||
script_template = EditorSettings::get_singleton()->get_settings_dir() + "/script_templates/" + name;
|
||||
script_template = EditorSettings::get_singleton()->get_script_templates_dir().plus_file(name);
|
||||
}
|
||||
|
||||
void ScriptCreateDialog::ok_pressed() {
|
||||
|
||||
Reference in New Issue
Block a user