浏览代码

[GDNative] rename nativearvr extension to arvr

Karroffel 7 年之前
父节点
当前提交
79285b084d

+ 2 - 2
modules/gdnative/SCsub

@@ -12,7 +12,7 @@ gdn_env.add_source_files(env.modules_sources, "nativescript/*.cpp")
 
 
 gdn_env.Append(CPPPATH=['#modules/gdnative/include/'])
 gdn_env.Append(CPPPATH=['#modules/gdnative/include/'])
 
 
-SConscript("nativearvr/SCsub")
+SConscript("arvr/SCsub")
 SConscript("pluginscript/SCsub")
 SConscript("pluginscript/SCsub")
 
 
 def _spaced(e):
 def _spaced(e):
@@ -25,7 +25,7 @@ def _build_gdnative_api_struct_header(api):
         '#define GODOT_GDNATIVE_API_STRUCT_H',
         '#define GODOT_GDNATIVE_API_STRUCT_H',
         '',
         '',
         '#include <gdnative/gdnative.h>',
         '#include <gdnative/gdnative.h>',
-        '#include <nativearvr/godot_nativearvr.h>',
+        '#include <arvr/godot_arvr.h>',
         '#include <nativescript/godot_nativescript.h>',
         '#include <nativescript/godot_nativescript.h>',
         '#include <pluginscript/godot_pluginscript.h>',
         '#include <pluginscript/godot_pluginscript.h>',
         '',
         '',

+ 0 - 0
modules/gdnative/nativearvr/SCsub → modules/gdnative/arvr/SCsub


+ 0 - 0
modules/gdnative/nativearvr/arvr_interface_gdnative.cpp → modules/gdnative/arvr/arvr_interface_gdnative.cpp


+ 0 - 0
modules/gdnative/nativearvr/arvr_interface_gdnative.h → modules/gdnative/arvr/arvr_interface_gdnative.h


+ 0 - 0
modules/gdnative/nativearvr/config.py → modules/gdnative/arvr/config.py


+ 2 - 2
modules/gdnative/nativearvr/register_types.cpp → modules/gdnative/arvr/register_types.cpp

@@ -31,9 +31,9 @@
 #include "register_types.h"
 #include "register_types.h"
 #include "arvr_interface_gdnative.h"
 #include "arvr_interface_gdnative.h"
 
 
-void register_nativearvr_types() {
+void register_arvr_types() {
 	ClassDB::register_class<ARVRInterfaceGDNative>();
 	ClassDB::register_class<ARVRInterfaceGDNative>();
 }
 }
 
 
-void unregister_nativearvr_types() {
+void unregister_arvr_types() {
 }
 }

+ 2 - 2
modules/gdnative/nativearvr/register_types.h → modules/gdnative/arvr/register_types.h

@@ -28,5 +28,5 @@
 /* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.                */
 /* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.                */
 /*************************************************************************/
 /*************************************************************************/
 
 
-void register_nativearvr_types();
-void unregister_nativearvr_types();
+void register_arvr_types();
+void unregister_arvr_types();

+ 1 - 1
modules/gdnative/include/nativearvr/godot_nativearvr.h → modules/gdnative/include/arvr/godot_arvr.h

@@ -1,5 +1,5 @@
 /*************************************************************************/
 /*************************************************************************/
-/*  godot_nativearvr.h                                                   */
+/*  godot_arvr.h                                                         */
 /*************************************************************************/
 /*************************************************************************/
 /*                       This file is part of:                           */
 /*                       This file is part of:                           */
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */

+ 3 - 3
modules/gdnative/register_types.cpp

@@ -35,7 +35,7 @@
 #include "io/resource_loader.h"
 #include "io/resource_loader.h"
 #include "io/resource_saver.h"
 #include "io/resource_saver.h"
 
 
-#include "nativearvr/register_types.h"
+#include "arvr/register_types.h"
 #include "nativescript/register_types.h"
 #include "nativescript/register_types.h"
 #include "pluginscript/register_types.h"
 #include "pluginscript/register_types.h"
 
 
@@ -157,7 +157,7 @@ void register_gdnative_types() {
 
 
 	GDNativeCallRegistry::singleton->register_native_call_type("standard_varcall", cb_standard_varcall);
 	GDNativeCallRegistry::singleton->register_native_call_type("standard_varcall", cb_standard_varcall);
 
 
-	register_nativearvr_types();
+	register_arvr_types();
 	register_nativescript_types();
 	register_nativescript_types();
 	register_pluginscript_types();
 	register_pluginscript_types();
 
 
@@ -214,7 +214,7 @@ void unregister_gdnative_types() {
 
 
 	unregister_pluginscript_types();
 	unregister_pluginscript_types();
 	unregister_nativescript_types();
 	unregister_nativescript_types();
-	unregister_nativearvr_types();
+	unregister_arvr_types();
 
 
 	memdelete(GDNativeCallRegistry::singleton);
 	memdelete(GDNativeCallRegistry::singleton);