From 1108112719e3229a6238f361da416aa0d0c7ef5b Mon Sep 17 00:00:00 2001 From: Patrick-FlameLizard Date: Sat, 26 Aug 2023 20:10:19 +0200 Subject: [PATCH] Add/Clarify README instructions in main branch --- README.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 987b9a5..adf8547 100644 --- a/README.md +++ b/README.md @@ -9,11 +9,13 @@ This repository serves as a quickstart template for GDExtension development with * preconfigured source files for C++ development of the GDExtension (`src/`) ## Usage -To use this template, click the green "Use this template" button at the top of the repository page. +To use this template, log in to github and click the green "Use this template" button at the top of the repository page. This will let you create a copy of this repository with a clean git history. Make sure you clone the correct branch as these are configured for development of their respective Godot development branches and differ from each other. Refer to the docs to see what changed between the versions. For getting started after cloning your own copy to your local machine, you should -* change the name of the compiled library file inside the `SConstruct` file by modifying the `libname` string. -* change the name of the to be loaded library name inside the `.gdextension` file. This should be the same name as in your `SConstruct` file. -* change the `entry_symbol` string inside your `.gdextension` file to be configured for your GDExtension name. This should be the same as the `GDExtensionBool GDE_EXPORT` external C function. As the name suggests, this sets the entry function for your GDExtension to be loaded by the Godot editors C API. +* change the name of your library + * change the name of the compiled library file inside the `SConstruct` file by modifying the `libname` string. + * change the pathnames of the to be loaded library name inside the `demo/bin/example.gdextension` file. By replacing `libgdexample` to the name specified in your `SConstruct` file. + * change the name of the `demo/bin/example.gdextension` file +* change the `entry_symbol` string inside your `demo/bin/your-extension.gdextension` file to be configured for your GDExtension name. This should be the same as the `GDExtensionBool GDE_EXPORT` external C function. As the name suggests, this sets the entry function for your GDExtension to be loaded by the Godot editors C API. * register the classes you want Godot to interact with inside the `register_types.cpp` file in the initialization method (here `initialize_gdextension_types`) in the syntax `ClassDB::register_class();`. \ No newline at end of file