/* * Function: setFSCreateCon * Purpose: set security context used for creating a new file system object * Parameters: * context: security_context_t representing the new context of a file system object, * set to NULL to return to the default policy behavior * Returns: true on success, false on error * Exception: none */ static jboolean setFSCreateCon(JNIEnv *env, jobject, jstring contextStr) { if (isSELinuxDisabled) { return false; } UniquePtr<ScopedUtfChars> context; const char* context_c_str = NULL; if (contextStr != NULL) { context.reset(new ScopedUtfChars(env, contextStr)); context_c_str = context->c_str(); if (context_c_str == NULL) { return false; } } int ret = setfscreatecon(const_cast<char *>(context_c_str)); ALOGV("setFSCreateCon(%s) => %d", context_c_str, ret); return (ret == 0) ? true : false; }
aerofgt_register_state_globals(); save_item(NAME(m_spikes91_lookup)); } VIDEO_START_MEMBER(aerofgt_state,karatblz) { m_bg1_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(aerofgt_state::karatblz_bg1_tile_info),this),TILEMAP_SCAN_ROWS, 8,8,64,64); m_bg2_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(aerofgt_state::karatblz_bg2_tile_info),this),TILEMAP_SCAN_ROWS,8,8,64,64); m_bg2_tilemap->set_transparent_pen(15); m_spritepalettebank = 0; m_sprite_gfx = 2; aerofgt_register_state_globals(); } VIDEO_START_MEMBER(aerofgt_state,spinlbrk) { m_bg1_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(aerofgt_state::spinlbrk_bg1_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 64, 64); m_bg2_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(aerofgt_state::karatblz_bg2_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 64, 64); m_bg2_tilemap->set_transparent_pen(15); m_spritepalettebank = 0; m_sprite_gfx = 2; /* sprite maps are hardcoded in this game */