Skip to content

Commit

Permalink
Rename cocos_android_app_init to axmol_android_app_init and othre cod…
Browse files Browse the repository at this point in the history
…e cleanup
  • Loading branch information
halx99 committed Jan 29, 2024
1 parent 74189ff commit c06bed5
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion core/2d/ActionCoroutine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ bool Coroutine::moveNext() const
//
ActionCoroutine* ActionCoroutine::create(const std::function<Coroutine()>& function)
{
auto ret = new (std::nothrow) ActionCoroutine();
auto ret = new ActionCoroutine();
if (ret && ret->initWithCoroutine(function))
{
ret->autorelease();
Expand Down
2 changes: 1 addition & 1 deletion core/base/AutoreleasePool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ PoolManager* PoolManager::getInstance()
{
s_singleInstance = new PoolManager();
// Add the first auto release pool
new AutoreleasePool("cocos2d autorelease pool");
new AutoreleasePool("axmol autorelease pool");
}
return s_singleInstance;
}
Expand Down
4 changes: 2 additions & 2 deletions core/platform/android/javaactivity-android.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ THE SOFTWARE.
#define LOG_TAG "main"
#define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG, LOG_TAG, __VA_ARGS__)

void cocos_android_app_init(JNIEnv* env) __attribute__((weak));
void axmol_android_app_init(JNIEnv* env) __attribute__((weak));

USING_NS_AX;

Expand Down Expand Up @@ -75,7 +75,7 @@ JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM* vm, void* reserved)
{
JniHelper::setJavaVM(vm);

cocos_android_app_init(JniHelper::getEnv());
axmol_android_app_init(JniHelper::getEnv());

return JNI_VERSION_1_4;
}
Expand Down
4 changes: 2 additions & 2 deletions templates/cpp-template-default/proj.android/app/jni/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ namespace
std::unique_ptr<AppDelegate> appDelegate;
}

void cocos_android_app_init(JNIEnv* env)
void axmol_android_app_init(JNIEnv* env)
{
LOGD("cocos_android_app_init");
LOGD("axmol_android_app_init");
appDelegate.reset(new AppDelegate());
}
4 changes: 2 additions & 2 deletions templates/lua-template-default/proj.android/app/jni/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ namespace
std::unique_ptr<AppDelegate> appDelegate;
}

void cocos_android_app_init(JNIEnv* env)
void axmol_android_app_init(JNIEnv* env)
{
LOGD("cocos_android_app_init");
LOGD("axmol_android_app_init");
appDelegate.reset(new AppDelegate());
}
4 changes: 2 additions & 2 deletions tests/cpp-tests/proj.android/app/jni/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ namespace
std::unique_ptr<AppDelegate> appDelegate;
}

void cocos_android_app_init(JNIEnv* env)
void axmol_android_app_init(JNIEnv* env)
{
LOGD("cocos_android_app_init");
LOGD("axmol_android_app_init");
appDelegate.reset(new AppDelegate());
}
4 changes: 2 additions & 2 deletions tests/fairygui-tests/proj.android/app/jni/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ namespace {
std::unique_ptr<AppDelegate> appDelegate;
}

void cocos_android_app_init(JNIEnv* env) {
LOGD("cocos_android_app_init");
void axmol_android_app_init(JNIEnv* env) {
LOGD("axmol_android_app_init");
appDelegate.reset(new AppDelegate());
}
4 changes: 2 additions & 2 deletions tests/live2d-tests/proj.android/app/jni/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ namespace
std::unique_ptr<AppDelegate> appDelegate;
}

void cocos_android_app_init(JNIEnv* env)
void axmol_android_app_init(JNIEnv* env)
{
LOGD("cocos_android_app_init");
LOGD("axmol_android_app_init");
appDelegate.reset(new AppDelegate());
}
4 changes: 2 additions & 2 deletions tests/lua-tests/proj.android/app/jni/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ namespace
std::unique_ptr<AppDelegate> appDelegate;
}

void cocos_android_app_init(JNIEnv* env)
void axmol_android_app_init(JNIEnv* env)
{
LOGD("cocos_android_app_init");
LOGD("axmol_android_app_init");
appDelegate.reset(new AppDelegate());
}

0 comments on commit c06bed5

Please sign in to comment.