You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Rename version defines to GODOT_VERSION_* to match GDExtension godot-cpp
This commit is contained in:
@@ -62,10 +62,10 @@ static DownloadsAvailability _get_downloads_availability() {
|
||||
// (which always have a number following their status, e.g. "alpha1").
|
||||
// Therefore, don't display download-related features when using a development version
|
||||
// (whose builds aren't numbered).
|
||||
if (String(VERSION_STATUS) == String("dev") ||
|
||||
String(VERSION_STATUS) == String("alpha") ||
|
||||
String(VERSION_STATUS) == String("beta") ||
|
||||
String(VERSION_STATUS) == String("rc")) {
|
||||
if (String(GODOT_VERSION_STATUS) == String("dev") ||
|
||||
String(GODOT_VERSION_STATUS) == String("alpha") ||
|
||||
String(GODOT_VERSION_STATUS) == String("beta") ||
|
||||
String(GODOT_VERSION_STATUS) == String("rc")) {
|
||||
return DOWNLOADS_NOT_AVAILABLE_FOR_DEV_BUILDS;
|
||||
}
|
||||
|
||||
@@ -98,7 +98,7 @@ void ExportTemplateManager::_update_template_status() {
|
||||
da->list_dir_end();
|
||||
|
||||
// Update the state of the current version.
|
||||
String current_version = VERSION_FULL_CONFIG;
|
||||
String current_version = GODOT_VERSION_FULL_CONFIG;
|
||||
current_value->set_text(current_version);
|
||||
|
||||
if (templates.has(current_version)) {
|
||||
@@ -266,7 +266,7 @@ void ExportTemplateManager::_refresh_mirrors() {
|
||||
}
|
||||
is_refreshing_mirrors = true;
|
||||
|
||||
String current_version = VERSION_FULL_CONFIG;
|
||||
String current_version = GODOT_VERSION_FULL_CONFIG;
|
||||
const String mirrors_metadata_url = "https://godotengine.org/mirrorlist/" + current_version + ".json";
|
||||
request_mirrors->request(mirrors_metadata_url);
|
||||
}
|
||||
@@ -775,7 +775,7 @@ String ExportTemplateManager::get_android_source_zip(const Ref<EditorExportPrese
|
||||
}
|
||||
}
|
||||
|
||||
const String templates_dir = EditorPaths::get_singleton()->get_export_templates_dir().path_join(VERSION_FULL_CONFIG);
|
||||
const String templates_dir = EditorPaths::get_singleton()->get_export_templates_dir().path_join(GODOT_VERSION_FULL_CONFIG);
|
||||
return templates_dir.path_join("android_source.zip");
|
||||
}
|
||||
|
||||
@@ -787,7 +787,7 @@ String ExportTemplateManager::get_android_template_identifier(const Ref<EditorEx
|
||||
return android_source_zip + String(" [") + FileAccess::get_md5(android_source_zip) + String("]");
|
||||
}
|
||||
}
|
||||
return VERSION_FULL_CONFIG;
|
||||
return GODOT_VERSION_FULL_CONFIG;
|
||||
}
|
||||
|
||||
bool ExportTemplateManager::is_android_template_installed(const Ref<EditorExportPreset> &p_preset) {
|
||||
@@ -1010,14 +1010,14 @@ ExportTemplateManager::ExportTemplateManager() {
|
||||
current_open_button->set_text(TTR("Open Folder"));
|
||||
current_open_button->set_tooltip_text(TTR("Open the folder containing installed templates for the current version."));
|
||||
current_installed_hb->add_child(current_open_button);
|
||||
current_open_button->connect(SceneStringName(pressed), callable_mp(this, &ExportTemplateManager::_open_template_folder).bind(VERSION_FULL_CONFIG));
|
||||
current_open_button->connect(SceneStringName(pressed), callable_mp(this, &ExportTemplateManager::_open_template_folder).bind(GODOT_VERSION_FULL_CONFIG));
|
||||
#endif
|
||||
|
||||
current_uninstall_button = memnew(Button);
|
||||
current_uninstall_button->set_text(TTR("Uninstall"));
|
||||
current_uninstall_button->set_tooltip_text(TTR("Uninstall templates for the current version."));
|
||||
current_installed_hb->add_child(current_uninstall_button);
|
||||
current_uninstall_button->connect(SceneStringName(pressed), callable_mp(this, &ExportTemplateManager::_uninstall_template).bind(VERSION_FULL_CONFIG));
|
||||
current_uninstall_button->connect(SceneStringName(pressed), callable_mp(this, &ExportTemplateManager::_uninstall_template).bind(GODOT_VERSION_FULL_CONFIG));
|
||||
|
||||
main_vb->add_child(memnew(HSeparator));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user