@@ -44,7 +44,7 @@ Add ```yasio\xxsocket.cpp``` ```yasio\yasio.cpp``` ```yasio\ibstream.cpp``` ```y
4444### JSB integration
4545#### cocos2d-x jsb integration:
46461 . Copy the folder ``` yasio ``` to cocos2d-x engine's folder ``` external ``` , ``` yasio ``` as sub directory of ``` external ```
47- 2 . Add obstream.cpp, ibstream.cpp, xxsocket.cpp, yasio.cpp, impl/yasio_jsb.cpp with your native project
47+ 2 . Add obstream.cpp, ibstream.cpp, xxsocket.cpp, yasio.cpp, impl/yasio_jsb.cpp to your native project
48483 . Add register code to your AppDelegate.cpp: ``` sc->addRegisterCallback(jsb_register_yasio); ``` , please include ``` yasio_jsb.h ``` firstly.
4949##### For Android:
5050Add yasio to your application Android.mk files, such as:
@@ -54,7 +54,7 @@ $(call import-module, external/yasio/build/android-jsb)
5454```
5555#### CocosCreator jsb2.0 integration:
56561 . Copy the folder ``` yasio ``` to cocos2d-x engine's folder ``` external/sources ``` , ``` yasio ``` as sub directory of ``` external/sources ```
57- 2 . Add obstream.cpp, ibstream.cpp, xxsocket.cpp, yasio.cpp, impl/yasio_jsb20.cpp with your native project
57+ 2 . Add obstream.cpp, ibstream.cpp, xxsocket.cpp, yasio.cpp, impl/yasio_jsb20.cpp to your native project
58583 . Add register code to your jsb_module_register.cpp: ``` se->addRegisterCallback(jsb_register_yasio); ``` , please include ``` yasio_jsb20.h ``` firstly.
5959##### For Andorid:
6060Add follow 5 lines to cocos/Android.mk file:
0 commit comments