aboutsummaryrefslogtreecommitdiff
path: root/modules (follow)
Commit message (Collapse)AuthorAgeFilesLines
* few bugs fixed thanks to explicit bool constructor and clang.Juan Linietsky2017-08-051-1/+1
| | | | explicit bool constructor has thus now been removed, as it served it's mission!
* [GDNative] fixed double variant callKarroffel2017-08-061-1/+0
| | | | This bug got discovered thanks to clang!
* renamed node path, closes #5691Juan Linietsky2017-08-051-1/+1
|
* Dont call nativescript callbacks if lib is not initializedRuslan Mustakov2017-08-043-10/+17
|
* Merge pull request #10072 from karroffel/gdnative-header-include-pathsThomas Herzog2017-08-041-1/+2
|\ | | | | [GDNative] fixed a bug with ambiguous include paths
| * [GDNative] fixed a bug with ambiguous include pathsKarroffel2017-08-041-1/+2
| | | | | | | | | | fixes #10071. The problem is that the json.h file includes the local variant.h instead of the "absolute" core/variant.h
* | Merge pull request #10060 from endragor/nativescript-frameThomas Herzog2017-08-033-44/+32
|\ \ | |/ |/| Forward frame call to GDNative libraries
| * Forward frame call to GDNative librariesRuslan Mustakov2017-08-033-44/+32
| |
* | [GDNative/NativeScript] fix -rdynamic and removed _init callKarroffel2017-08-022-13/+6
| | | | | | | | | | | | | | | | | | | | The _init call was buggy anyway and in the end shouldn't be a thing that's called via ClassDB, it should be something that's language specific, so we leave this out for the bindings. In the commit 66a7763 the SCsub file for GDNative was changed to use a cloned environment, that bricked -rdynamic which needs to be passed down to the linker, which didn't happen with the new env.
* | [GDNative] better header include pathsKarroffel2017-08-0239-113/+137
|/ | | | | The old include paths caused some problems on some compilers, for example including "string.h" was ambiguous.
* Merge pull request #9964 from supagu/audio_fixRémi Verschelde2017-07-301-1/+1
|\ | | | | Fixed AudioStreamPlaybackOGGVorbis::_mix_internal getting stuck in in…
| * Fixed AudioStreamPlaybackOGGVorbis::_mix_internal getting stuck in infinite ↵Fabian Mathews2017-07-291-1/+1
| | | | | | | | loop causing audio to freeze
* | [NativeScript] fix signals from base class not being accessibleKarroffel2017-07-301-3/+7
| | | | | | | | https://github.com/GodotNativeTools/cpp_bindings/issues/26
* | Pass GDNativeLibrary pointer to library initRuslan Mustakov2017-07-282-0/+4
|/
* Merge pull request #9932 from djrm/vs_fixesRémi Verschelde2017-07-281-0/+10
|\ | | | | Do not allow multiple data connections to the same data input slot, f…
| * Do not allow multiple data connections to the same data input slot, fixes ↵Daniel J. Ramirez2017-07-271-0/+10
| | | | | | | | #6357.Improved curve rendering when nodes are close.
* | [NativeScript] fixed optional _init callKarroffel2017-07-271-18/+6
| | | | | | | | | | | | | | | | | | In 3c53b35 a call to an "_init" function was introduced, that however was only executed in the `_new` function, also it *required* that such a function exists. With this patch the "_init" function will be optionally called on every instance creation.
* | [NativeScript] fix mutex double lockKarroffel2017-07-271-1/+1
| | | | | | | | | | | | In 3c53b35 a bug got introduced where a mutex gets locked twice instead of locked and then unlocked. This path fixes that.
* | added an optional parameter to OS symbol lookupKarroffel2017-07-272-3/+6
| | | | | | | | | | | | | | | | When looking up a symbol from a library, previously an error was shown when the symbol did not exist. That caused confusion when the lookup was completely optional. This adds a new parameter to that method so that those errors can be handled manually if needed.
* | [NativeScript] call _init on instance creationKarroffel2017-07-272-3/+45
| | | | | | | | | | This also adds basic locking for the set of owners to avoid threading problems
* | Merge pull request #9882 from endragor/nativescript-refcountThomas Herzog2017-07-262-0/+25
|\ \ | | | | | | Forward refcount changes to NativeScriptInstance
| * | Forward refcount changes to NativeScriptInstanceRuslan Mustakov2017-07-262-0/+25
| | | | | | | | | | | | | | | | | | This also changes Reference::unreference() to always invoke refcount_decremented. Previously it was not invoked until the count reached zero due to short-circuit evalution of boolean expressions.
* | | Merge pull request #9883 from bojidar-bg/8217-fixup-get_node-shortcutRémi Verschelde2017-07-261-1/+2
|\ \ \ | |_|/ |/| | Fix $a/b being parsed as division
| * | Fix $a/b being parsed as divisionBojidar Marinov2017-07-261-1/+2
| |/
* | Merge pull request #9867 from endragor/nativescript-threadingThomas Herzog2017-07-263-38/+211
|\ \ | | | | | | Support multithreading for NativeScriptLanguage
| * | Support multithreading for NativeScriptLanguageRuslan Mustakov2017-07-263-38/+211
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | Godot may call property setters from non-main thread when an object is loaded in the edtior. This means NativeScriptLanguage could be accessed from different threads, but it was not designed for thread-safety. Besides, previous behaviour made it so that godot_nativescript_init and godot_gdnative_init could be invoked from non-main thread, while godot_gdnative_thread is always invoked on the main thread. This may not be expected by the binding library. This commit defers native library initialization to the main thread and adds godot_nativescript_thread_enter and godot_nativescript_thread_exit callbacks to make a binding library aware of foreign threads.
* | Merge pull request #9720 from endragor/stack-bottomThomas Herzog2017-07-262-0/+9
|\ \ | |/ |/| Add a way to retrieve stack bottom of the main thread
| * Add a way to retrieve stack bottom of the main threadRuslan Mustakov2017-07-252-0/+9
| | | | | | | | | | | | | | | | | | I'm working on Nim bindings and Nim GC needs to know the stack boundaries to check whether certain pointers are located on the stack or in the heap. This commit adds godot_get_stack_bottom procedure to gdnative module which returns pointer to the stack bottom of the main thread. Later on this may be improved to return stack bottom of the current thread.
* | Fix typo in NativeScript property gettersheepandshepherd2017-07-251-1/+1
| |
* | Merge pull request #9731 from Xrayez/gdscript-completionRémi Verschelde2017-07-252-3/+3
|\ \ | | | | | | Update GDScript completion names for Pool*Arrays
| * | Update GDScript completion names for Pool*ArraysAndrii Doroshenko (Xrayez)2017-07-252-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Notice: GDScript tokenizer used the old PoolFloatArray name. Renamed PoolFloatArray to PoolRealArray. Moved "project_settings.h" down one line to comply with the clang-format rules. Fixes #9638 Closed pull request #9714 because I messed up with commits, sorry!
* | | fix a regression (GDScript) from e00630bKarroffel2017-07-252-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | This removes `not` from the variable safe list of keywords. Before that this was a valid expression: self.!(some_arg) The other fix is just a forgotten boolean negation.
* | | Merge pull request #9844 from karroffel/nativescript-double-init-fixThomas Herzog2017-07-252-2/+10
|\ \ \ | |/ / |/| | [NativeScript] fix double initialization in editor
| * | [NativeScript] fix double initialization in editorKarroffel2017-07-252-2/+10
| | |
* | | Merge pull request #8217 from bojidar-bg/gdscript-fix-keyword-callRémi Verschelde2017-07-253-141/+263
|\ \ \ | |/ / |/| | Make GDScript allow some keywords as identifiers
| * | Make GDScript allow some keywords as identifiersBojidar Marinov2017-07-233-141/+263
| | | | | | | | | | | | | | | Fixes #8085 Added some comments around the use of is_token_literal, as discussed.
* | | [NativeScript] bound `new` to ClassDBKarroffel2017-07-251-0/+2
| | |
* | | [GDNative] basic OS detectionKarroffel2017-07-241-2/+11
| | |
* | | GDNative register_propertyRamesh Ravone2017-07-241-0/+1
| | |
* | | Merge pull request #9814 from karroffel/nativescript-doublefreeThomas Herzog2017-07-242-3/+3
|\ \ \ | | | | | | | | [NativeScript] forgot to uncomment userdata return
| * | | [NativeScript] forgot to uncomment userdata returnKarroffel2017-07-242-3/+3
| | | |
* | | | Merge pull request #9809 from karroffel/nativescript-doublefreeThomas Herzog2017-07-241-35/+1
|\| | | | | | | | | | | [NativeScript] fix double free but on exit
| * | | [NativeScript] fix double free but on exitKarroffel2017-07-241-35/+1
| | |/ | |/|
* | | Merge pull request #9764 from Noshyaar/pr-fix2Rémi Verschelde2017-07-242-7/+7
|\ \ \ | |/ / |/| | Add object type hint for docs
| * | Add object type hint for docsPoommetee Ketson2017-07-232-9/+9
| | |
* | | [GDNative] new GDNative APIKarroffel2017-07-2450-2005/+2542
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds GDNative as a separate class type. It can be used to interface with native libraries by using "native calls", which can be registered by modules (and in future other GDNative libraries?). It also reworks the currently called "GDNativeScript" into a "NativeScript" that just makes use of the new GDNative instead of it being the component that implements that functionality.
* | | Merge pull request #9765 from Noshyaar/pr-clangRémi Verschelde2017-07-237-7/+7
|\ \ \ | | | | | | | | Clang-formatting *.cpp and *.h (some files excluded)
| * | | Clang-formatting *.cpp and *.h (some files excluded)Poommetee Ketson2017-07-229-9/+9
| |/ /
* | | Merge pull request #9758 from vnen/fix-vs-returnRémi Verschelde2017-07-231-3/+3
|\ \ \ | | | | | | | | VS: Fix return value for user-defined functions
| * | | VS: Fix return value for user-defined functionsGeorge Marques2017-07-221-3/+3
| |/ /