if (tizen_appcore_initialized) {
SDL_LogError(SDL_LOG_CATEGORY_ASSERT,"Already initialized!");
- return 0;
+ return APP_ERROR_ALREADY_RUNNING;
}
tizen_appcore_initialized = 1;
if (argc < 1 || argv == NULL) {
SDL_LogError(SDL_LOG_CATEGORY_ASSERT,"APP_ERROR_INVALID_PARAMETER");
- return 0;
+ return APP_ERROR_INVALID_PARAMETER;
}
event_callback.create = _tizen_sdl_create;
aul_ret = aul_add_status_local_cb(_tizen_aul_status_changed_cb, NULL);
if (aul_ret == AUL_R_ERROR) {
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "AUL status changed callback setting is failed.");
- return 0;
+ return APP_ERROR_INVALID_CONTEXT;
}
/* add event watch for SDL_APP_TERMINATING */