Browse Source

Update config example function signature

The previous example caused godot to display the following warning:

`Warning: module 'module' uses a deprecated 'can_build' signature in its config.py file, it should be 'can_build(env, platform)'.`
Ralph Minderhoud 7 years ago
parent
commit
2ff103e117
1 changed files with 1 additions and 1 deletions
  1. 1 1
      development/cpp/custom_modules_in_cpp.rst

+ 1 - 1
development/cpp/custom_modules_in_cpp.rst

@@ -199,7 +199,7 @@ python script that must be named ``config.py``:
 
 
     # config.py
     # config.py
 
 
-    def can_build(platform):
+    def can_build(env, platform):
         return True
         return True
 
 
     def configure(env):
     def configure(env):