mirror of
https://github.com/godotengine/godot-git-plugin.git
synced 2026-01-06 02:09:44 +03:00
Register as tool class
This commit is contained in:
@@ -18,6 +18,6 @@ extern "C" void GDN_EXPORT godot_gdnative_terminate(godot_gdnative_terminate_opt
|
||||
extern "C" void GDN_EXPORT godot_nativescript_init(void *handle) {
|
||||
|
||||
godot::Godot::nativescript_init(handle);
|
||||
godot::Godot::print("nativescript_init is done!");
|
||||
godot::register_class<godot::GitAPI>();
|
||||
|
||||
godot::register_tool_class<godot::GitAPI>();
|
||||
}
|
||||
|
||||
@@ -37,7 +37,6 @@ String GitAPI::get_project_name() {
|
||||
|
||||
String GitAPI::get_vcs_name() {
|
||||
|
||||
WARN_PRINT("VCS Name is return as Git");
|
||||
return "Git";
|
||||
}
|
||||
|
||||
|
||||
@@ -18,7 +18,6 @@ class GitAPI : public EditorVCSInterface {
|
||||
|
||||
public:
|
||||
static void _register_methods();
|
||||
|
||||
bool initialize(const String project_root_path);
|
||||
Control *get_commit_dock_panel_container();
|
||||
Control *get_initialization_settings_panel_container();
|
||||
|
||||
Reference in New Issue
Block a user