Browse Source

Merge pull request #49 from trollworkout/patch-1

Update creating_android_modules.rst
Rémi Verschelde 9 years ago
parent
commit
2f9c7f7be7
1 changed files with 11 additions and 3 deletions
  1. 11 3
      reference/creating_android_modules.rst

+ 11 - 3
reference/creating_android_modules.rst

@@ -93,8 +93,8 @@ template follows:
 
 .. code:: java
 
-    // namespace is wrong, will eventually change
-    package com.android.godot;
+    // package com.android.godot; // for 1.1
+    package org.godotengine.godot; // for 2.0
 
     public class MySingleton extends Godot.SingletonBase {
 
@@ -307,7 +307,15 @@ Using the module
 ~~~~~~~~~~~~~~~~
 
 To use the module from GDScript, first enable the singleton by adding
-the following line to engine.cfg:
+the following line to engine.cfg (Godot Engine 2.0 and greater):
+
+::
+
+    [android]
+
+    modules="org/godotengine/godot/MySingleton"
+
+For Godot Engine 1.1 is 
 
 ::