Updated to work with nim 0.20
- Attempt to fix deprecated this:self pragma by injecting self to methods and properties (needs more testing) - Changed import headers to use / (slash) instead of . (period) - Fixed object branch in godotapigen.nim - Fixed deprecated nimNode.ident with nimNode.strVal Fix toGodotName function Consider procCall calls as special cases, otherwise it gives problems in _init function Fix infinite recursive call in Godot 3.2
This commit is contained in:
parent
34fda99def
commit
0fecfdb3b8
23 changed files with 294 additions and 211 deletions
|
|
@ -1,6 +1,6 @@
|
|||
# Copyright 2018 Xored Software, Inc.
|
||||
|
||||
import internal.godotinternaltypes, core.godotcoretypes, macros
|
||||
import internal/godotinternaltypes, core/godotcoretypes, macros
|
||||
|
||||
type
|
||||
ColorData* {.byref.} = object
|
||||
|
|
@ -3593,7 +3593,7 @@ proc setGDNativeAPIInternal(apiStruct: pointer, initOptions: ptr GDNativeInitOpt
|
|||
# Not used
|
||||
discard
|
||||
|
||||
if not header.next.isNil:
|
||||
if not header.next.isNil and header != header.next:
|
||||
setGDNativeAPIInternal(header.next, initOptions,
|
||||
foundCoreApi, foundNativeScriptApi)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue