Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions cocos/platform/CCDataManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,13 @@ void DataManager::onShaderLoaderEnd(){
JniHelper::callStaticVoidMethod(DataManagerClassName, "onShaderLoaderEnd");
#endif
}
void DataManager::setOptimise(const char* thing, const char* value){
if (nullptr == thing || nullptr == value){
return;
}
#if CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID
JniHelper::callStaticVoidMethod(DataManagerClassName, "setOptimise", thing, value);
#endif
}

NS_CC_END
1 change: 1 addition & 0 deletions cocos/platform/CCDataManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ class CC_DLL DataManager
static void onSceneLoaderEnd();
static void onShaderLoaderBegin();
static void onShaderLoaderEnd();
static void setOptimise(const char* thing, const char* value);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please use const std::string& instead

};

// end of platform group
Expand Down