Explorar o código

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 %!s(int64=7) %!d(string=hai) anos
pai
achega
2ff103e117
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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
 
-    def can_build(platform):
+    def can_build(env, platform):
         return True
 
     def configure(env):