Ramesh Ravone пре 7 година
родитељ
комит
10bb24cfbc

+ 3 - 3
binding_generator.py

@@ -66,7 +66,7 @@ def generate_class_header(used_classes, c):
     source.append("")
     source.append("")
     
-    source.append("#include <godot/gdnative.h>")
+    source.append("#include <gdnative/gdnative.h>")
     source.append("#include <stdint.h>")
     source.append("")
     
@@ -460,7 +460,7 @@ def generate_icall_header(icalls):
     
     source.append("")
     
-    source.append("#include <godot/gdnative.h>")
+    source.append("#include <gdnative/gdnative.h>")
     source.append("#include <stdint.h>")
     source.append("")
     
@@ -510,7 +510,7 @@ def generate_icall_implementation(icalls):
     
     source.append("")
     
-    source.append("#include <godot/gdnative.h>")
+    source.append("#include <gdnative/gdnative.h>")
     source.append("#include <stdint.h>")
     source.append("")
     

+ 1 - 1
include/core/Array.hpp

@@ -1,7 +1,7 @@
 #ifndef ARRAY_H
 #define ARRAY_H
 
-#include <godot/array.h>
+#include <gdnative/array.h>
 
 #include "String.hpp"
 

+ 1 - 1
include/core/Color.hpp

@@ -1,7 +1,7 @@
 #ifndef COLOR_H
 #define COLOR_H
 
-#include <godot/color.h>
+#include <gdnative/color.h>
 
 #include <cmath>
 

+ 1 - 1
include/core/Dictionary.hpp

@@ -5,7 +5,7 @@
 
 #include "Array.hpp"
 
-#include <godot/dictionary.h>
+#include <gdnative/dictionary.h>
 
 namespace godot {
 

+ 2 - 2
include/core/Godot.hpp

@@ -4,8 +4,8 @@
 #include <cstdlib>
 #include <cstring>
 
-#include <godot/gdnative.h>
-#include <godot_nativescript.h>
+#include <gdnative/gdnative.h>
+#include <nativescript/godot_nativescript.h>
 
 
 #include <CoreTypes.hpp>

+ 1 - 1
include/core/NodePath.hpp

@@ -3,7 +3,7 @@
 
 #include "String.hpp"
 
-#include <godot/node_path.h>
+#include <gdnative/node_path.h>
 
 namespace godot {
 

+ 1 - 1
include/core/PoolArrays.hpp

@@ -8,7 +8,7 @@
 #include "Vector2.hpp"
 #include "Vector3.hpp"
 
-#include <godot/pool_arrays.h>
+#include <gdnative/pool_arrays.h>
 
 namespace godot {
 

+ 1 - 1
include/core/RID.hpp

@@ -1,7 +1,7 @@
 #ifndef RID_H
 #define RID_H
 
-#include <godot/rid.h>
+#include <gdnative/rid.h>
 
 namespace godot {
 

+ 1 - 1
include/core/String.hpp

@@ -1,7 +1,7 @@
 #ifndef STRING_H
 #define STRING_H
 
-#include <godot/string.h>
+#include <gdnative/string.h>
 
 namespace godot {
 

+ 2 - 2
include/core/Variant.hpp

@@ -1,7 +1,7 @@
 #ifndef VARIANT_H
 #define VARIANT_H
 
-#include <godot/variant.h>
+#include <gdnative/variant.h>
 
 #include "Defs.hpp"
 
@@ -259,7 +259,7 @@ public:
 
 	bool hash_compare(const Variant& b) const;
 
-	bool booleanize(bool &valid) const;
+	bool booleanize() const;
 
 	~Variant();
 

+ 1 - 1
include/core/Vector2.hpp

@@ -1,7 +1,7 @@
 #ifndef VECTOR2_H
 #define VECTOR2_H
 
-#include <godot/vector2.h>
+#include <gdnative/vector2.h>
 
 #include "Defs.hpp"
 

+ 1 - 1
src/core/Color.cpp

@@ -1,6 +1,6 @@
 #include "Color.hpp"
 
-#include <godot/color.h>
+#include <gdnative/color.h>
 
 #include <cmath>
 

+ 1 - 1
src/core/GodotGlobal.cpp

@@ -2,7 +2,7 @@
 
 #include "String.hpp"
 
-#include <godot/gdnative.h>
+#include <gdnative/gdnative.h>
 
 namespace godot {
 

+ 1 - 1
src/core/NodePath.cpp

@@ -2,7 +2,7 @@
 
 #include "String.hpp"
 
-#include <godot/node_path.h>
+#include <gdnative/node_path.h>
 
 namespace godot {
 

+ 1 - 1
src/core/PoolArrays.cpp

@@ -7,7 +7,7 @@
 #include "Vector2.hpp"
 #include "Vector3.hpp"
 
-#include <godot/pool_arrays.h>
+#include <gdnative/pool_arrays.h>
 
 namespace godot {
 

+ 1 - 1
src/core/RID.cpp

@@ -1,6 +1,6 @@
 #include "RID.hpp"
 
-#include <godot/rid.h>
+#include <gdnative/rid.h>
 
 namespace godot {
 

+ 1 - 1
src/core/String.cpp

@@ -2,7 +2,7 @@
 
 #include "NodePath.hpp"
 
-#include <godot/string.h>
+#include <gdnative/string.h>
 
 #include <string.h>
 

+ 4 - 6
src/core/Variant.cpp

@@ -1,6 +1,6 @@
 #include "Variant.hpp"
 
-#include <godot/variant.h>
+#include <gdnative/variant.h>
 
 #include "Defs.hpp"
 
@@ -199,9 +199,7 @@ Variant &Variant::operator =(const Variant& v)
 
 Variant::operator bool() const
 {
-	bool valid = false;
-	bool result = booleanize(valid);
-	return valid && result;
+	return booleanize();
 }
 Variant::operator signed int() const
 {
@@ -423,9 +421,9 @@ bool Variant::hash_compare(const Variant& b) const
 	return godot_variant_hash_compare(&_godot_variant, &b._godot_variant);
 }
 
-bool Variant::booleanize(bool &valid) const
+bool Variant::booleanize() const
 {
-	return godot_variant_booleanize(&_godot_variant, &valid);
+	return godot_variant_booleanize(&_godot_variant);
 }
 
 Variant::~Variant()

+ 1 - 1
src/core/Vector2.cpp

@@ -2,7 +2,7 @@
 
 #include <cmath>
 
-#include <godot/vector2.h>
+#include <gdnative/vector2.h>
 
 #include "String.hpp"