forked from cocos2d/cocos2d-x
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge commit '1528ea01d2749b4ef65e97f79cffa6135fe13c4d' into scgamex-v3
submodule: cocos-console (kept at scgame_v3) * commit '1528ea01d2749b4ef65e97f79cffa6135fe13c4d': setPercent after initialization (cocos2d#19718) Update CHANGELOG [js-tests/cpp-tests] iOS: add fonts to Info.plist (cocos2d#19708) update release note and change log (cocos2d#19711) fix get environment (cocos2d#19690) rename Java_org_cocos2dx_lib_Cocos2dxLuaJavaBridge.* to Cocos2dxLuaJavaBridge.* (cocos2d#19694) fix twice copy lua scripts error (cocos2d#19687) (cocos2d#19691) protect empty string (cocos2d#19680) modify engine version (cocos2d#19677) fix Sprite update_blend_func (cocos2d#19649) [ci skip][AUTO]: updating luabinding & jsbinding & cocos_file.json automatically (cocos2d#19648) add clang-tidy support (cocos2d#19643) [ci skip][AUTO]: updating luabinding & jsbinding & cocos_file.json automatically (cocos2d#19644) add optimization for OPPO. (cocos2d#19631) Optimize cases where loop variable is unecessarily copied in a range-for loop. (cocos2d#19637) # Conflicts: # cocos/physics/CCPhysicsJoint.cpp # cocos/platform/android/javaactivity-android.cpp # cocos/scripting/js-bindings/manual/js_manual_conversions.cpp # cocos/scripting/lua-bindings/manual/physics3d/lua_cocos2dx_physics3d_manual.cpp # cocos/scripting/lua-bindings/manual/platform/android/jni/Cocos2dxLuaJavaBridge.cpp # cocos/scripting/lua-bindings/manual/platform/android/jni/Cocos2dxLuaJavaBridge.h # cocos/scripting/lua-bindings/proj.android/Android.mk # cocos/scripting/lua-bindings/proj.android/CMakeLists.txt # extensions/Particle3D/PU/CCPURibbonTrailRender.cpp # extensions/Particle3D/PU/CCPUScriptCompiler.cpp # templates/js-template-default/frameworks/runtime-src/proj.android/app/get_environment.sh # templates/js-template-default/frameworks/runtime-src/proj.android/app/proguard-rules.pro # templates/lua-template-default/CMakeLists.txt # templates/lua-template-default/frameworks/runtime-src/proj.android/app/get_environment.sh # templates/lua-template-default/frameworks/runtime-src/proj.android/app/proguard-rules.pro # tests/js-tests/project/proj.android/app/get_environment.sh # tests/js-tests/project/proj.android/app/proguard-rules.pro # tests/js-tests/project/proj.ios/Info.plist # tests/lua-empty-test/project/proj.android/app/build.gradle # tests/lua-empty-test/project/proj.android/app/get_environment.sh # tests/lua-empty-test/project/proj.android/app/proguard-rules.pro # tests/lua-empty-test/project/proj.android/gradle/wrapper/gradle-wrapper.properties # tests/lua-game-controller-test/project/proj.android/app/proguard-rules.pro # tests/lua-tests/project/Classes/lua_test_bindings.cpp # tests/lua-tests/project/proj.android/app/proguard-rules.pro # tests/lua-tests/project/proj.ios_mac/ios/Info.plist # tools/cocos2d-console
- Loading branch information
Showing
43 changed files
with
367 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
Checks: > | ||
-*, | ||
performance-faster-string-find, | ||
performance-for-range-copy, | ||
WarningsAsErrors: '*' | ||
HeaderFilterRegex: '/(?!external)/.*' | ||
AnalyzeTemporaryDtors: false | ||
FormatStyle: none |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -185,3 +185,4 @@ temp/ | |
|
||
# external libs zip | ||
*.zip | ||
**/simulator/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
/**************************************************************************** | ||
Copyright (c) 2010-2012 cocos2d-x.org | ||
Copyright (c) 2013-2016 Chukong Technologies Inc. | ||
Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd. | ||
Copyright (c) 2019 Xiamen Yaji Software Co., Ltd. | ||
http://www.cocos2d-x.org | ||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. | ||
****************************************************************************/ | ||
|
||
#include "platform/CCDataManager.h" | ||
|
||
#if CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID | ||
# include "platform/android/jni/JniHelper.h" | ||
# define DataManagerClassName "org/cocos2dx/lib/Cocos2dxDataManager" | ||
#endif | ||
|
||
NS_CC_BEGIN | ||
|
||
void DataManager::setProcessID(int pid){ | ||
#if CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID | ||
JniHelper::callStaticVoidMethod(DataManagerClassName, "setProcessID", pid); | ||
#endif | ||
} | ||
void DataManager::setFrameSize(int width, int height){ | ||
#if CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID | ||
JniHelper::callStaticVoidMethod(DataManagerClassName, "setFrameSize", width, height); | ||
#endif | ||
} | ||
void DataManager::onSceneLoaderBegin(){ | ||
#if CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID | ||
JniHelper::callStaticVoidMethod(DataManagerClassName, "onSceneLoaderBegin"); | ||
#endif | ||
} | ||
void DataManager::onSceneLoaderEnd(){ | ||
#if CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID | ||
JniHelper::callStaticVoidMethod(DataManagerClassName, "onSceneLoaderEnd"); | ||
#endif | ||
} | ||
void DataManager::onShaderLoaderBegin(){ | ||
#if CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID | ||
JniHelper::callStaticVoidMethod(DataManagerClassName, "onShaderLoaderBegin"); | ||
#endif | ||
} | ||
void DataManager::onShaderLoaderEnd(){ | ||
#if CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID | ||
JniHelper::callStaticVoidMethod(DataManagerClassName, "onShaderLoaderEnd"); | ||
#endif | ||
} | ||
|
||
NS_CC_END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
/**************************************************************************** | ||
Copyright (c) 2010-2012 cocos2d-x.org | ||
Copyright (c) 2013-2016 Chukong Technologies Inc. | ||
Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd. | ||
Copyright (c) 2019 Xiamen Yaji Software Co., Ltd. | ||
http://www.cocos2d-x.org | ||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. | ||
****************************************************************************/ | ||
|
||
#ifndef __CC_DataManager_H__ | ||
#define __CC_DataManager_H__ | ||
|
||
#include "platform/CCPlatformMacros.h" | ||
#include "base/ccTypes.h" | ||
|
||
NS_CC_BEGIN | ||
|
||
/** | ||
* @addtogroup platform | ||
* @{ | ||
*/ | ||
|
||
class CC_DLL DataManager | ||
{ | ||
public: | ||
static void setProcessID(int pid); | ||
static void setFrameSize(int width, int height); | ||
static void onSceneLoaderBegin(); | ||
static void onSceneLoaderEnd(); | ||
static void onShaderLoaderBegin(); | ||
static void onShaderLoaderEnd(); | ||
}; | ||
|
||
// end of platform group | ||
/** @} */ | ||
|
||
NS_CC_END | ||
|
||
#endif // __CC_DataManager_H__ |
Oops, something went wrong.