2014-09-23 01:03:56 +00:00
|
|
|
/* RetroArch - A frontend for libretro.
|
|
|
|
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
|
2016-01-10 03:06:50 +00:00
|
|
|
* Copyright (C) 2011-2016 - Daniel De Matteis
|
2015-01-07 16:46:50 +00:00
|
|
|
* Copyright (C) 2012-2015 - Michael Lelli
|
2014-09-23 01:03:56 +00:00
|
|
|
*
|
|
|
|
* RetroArch is free software: you can redistribute it and/or modify it under the terms
|
|
|
|
* of the GNU General Public License as published by the Free Software Found-
|
|
|
|
* ation, either version 3 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
|
|
|
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
|
|
* PURPOSE. See the GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along with RetroArch.
|
|
|
|
* If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <ctype.h>
|
|
|
|
#include <errno.h>
|
2015-06-29 22:38:10 +00:00
|
|
|
|
|
|
|
#include <retro_inline.h>
|
|
|
|
#include <boolean.h>
|
2016-03-20 13:53:54 +00:00
|
|
|
#include <lists/string_list.h>
|
2015-06-29 22:38:10 +00:00
|
|
|
|
2016-03-22 01:56:06 +00:00
|
|
|
#include "dynamic.h"
|
2015-06-29 22:38:10 +00:00
|
|
|
#include "libretro.h"
|
2015-12-24 20:17:44 +00:00
|
|
|
#include "libretro_version_1.h"
|
2014-09-23 01:03:56 +00:00
|
|
|
#include "general.h"
|
2016-01-27 07:13:54 +00:00
|
|
|
#include "msg_hash.h"
|
2015-09-16 09:14:43 +00:00
|
|
|
#include "rewind.h"
|
2016-01-27 07:58:31 +00:00
|
|
|
#include "system.h"
|
2015-11-24 00:26:59 +00:00
|
|
|
#include "gfx/video_driver.h"
|
2015-11-23 18:40:09 +00:00
|
|
|
#include "audio/audio_driver.h"
|
2014-09-23 01:03:56 +00:00
|
|
|
|
2014-10-20 19:32:53 +00:00
|
|
|
#ifdef HAVE_NETPLAY
|
2015-12-23 20:25:28 +00:00
|
|
|
#include "netplay/netplay.h"
|
2014-10-20 19:32:53 +00:00
|
|
|
#endif
|
|
|
|
|
2016-01-28 03:41:54 +00:00
|
|
|
static struct retro_core_t core;
|
2016-01-28 05:21:29 +00:00
|
|
|
static unsigned core_poll_type;
|
|
|
|
static bool core_input_polled;
|
2016-01-27 00:16:53 +00:00
|
|
|
|
|
|
|
static int16_t input_state_poll(unsigned port,
|
|
|
|
unsigned device, unsigned idx, unsigned id)
|
|
|
|
{
|
2016-01-28 05:20:44 +00:00
|
|
|
if (core_poll_type == POLL_TYPE_LATE)
|
2016-01-27 00:16:53 +00:00
|
|
|
{
|
2016-01-28 05:21:29 +00:00
|
|
|
if (!core_input_polled)
|
2016-01-27 00:16:53 +00:00
|
|
|
input_poll();
|
|
|
|
|
2016-01-28 05:21:29 +00:00
|
|
|
core_input_polled = true;
|
2016-01-27 00:16:53 +00:00
|
|
|
}
|
|
|
|
return input_state(port, device, idx, id);
|
|
|
|
}
|
|
|
|
|
2015-01-08 17:39:17 +00:00
|
|
|
/**
|
|
|
|
* retro_set_default_callbacks:
|
|
|
|
* @data : pointer to retro_callbacks object
|
|
|
|
*
|
|
|
|
* Binds the libretro callbacks to default callback functions.
|
|
|
|
**/
|
2016-01-27 02:17:05 +00:00
|
|
|
static bool retro_set_default_callbacks(void *data)
|
2014-09-23 01:55:19 +00:00
|
|
|
{
|
2014-09-23 02:42:49 +00:00
|
|
|
struct retro_callbacks *cbs = (struct retro_callbacks*)data;
|
|
|
|
|
|
|
|
if (!cbs)
|
2016-01-27 02:17:05 +00:00
|
|
|
return false;
|
2014-09-23 02:42:49 +00:00
|
|
|
|
2015-12-03 23:26:09 +00:00
|
|
|
cbs->frame_cb = video_driver_frame;
|
2015-05-19 19:18:07 +00:00
|
|
|
cbs->sample_cb = audio_driver_sample;
|
|
|
|
cbs->sample_batch_cb = audio_driver_sample_batch;
|
2016-01-27 00:16:53 +00:00
|
|
|
cbs->state_cb = input_state_poll;
|
2014-09-24 07:52:01 +00:00
|
|
|
cbs->poll_cb = input_poll;
|
2016-01-27 02:17:05 +00:00
|
|
|
|
|
|
|
return true;
|
2014-09-23 01:55:19 +00:00
|
|
|
}
|
|
|
|
|
2016-01-27 03:54:22 +00:00
|
|
|
static bool retro_uninit_libretro_cbs(void *data)
|
2015-12-05 15:54:03 +00:00
|
|
|
{
|
2016-01-27 03:54:22 +00:00
|
|
|
struct retro_callbacks *cbs = (struct retro_callbacks*)data;
|
2015-12-05 15:54:03 +00:00
|
|
|
|
2016-01-27 02:14:36 +00:00
|
|
|
if (!cbs)
|
|
|
|
return false;
|
|
|
|
|
2015-12-05 15:54:03 +00:00
|
|
|
cbs->frame_cb = NULL;
|
|
|
|
cbs->sample_cb = NULL;
|
|
|
|
cbs->sample_batch_cb = NULL;
|
|
|
|
cbs->state_cb = NULL;
|
|
|
|
cbs->poll_cb = NULL;
|
2016-01-27 02:14:36 +00:00
|
|
|
|
|
|
|
return true;
|
2015-12-05 15:54:03 +00:00
|
|
|
}
|
|
|
|
|
2016-01-27 00:16:53 +00:00
|
|
|
static void input_poll_maybe(void)
|
|
|
|
{
|
2016-01-28 05:20:44 +00:00
|
|
|
if (core_poll_type == POLL_TYPE_NORMAL)
|
2016-01-27 00:16:53 +00:00
|
|
|
input_poll();
|
|
|
|
}
|
|
|
|
|
2015-01-08 17:39:17 +00:00
|
|
|
/**
|
2015-01-08 17:42:27 +00:00
|
|
|
* retro_init_libretro_cbs:
|
2015-01-08 17:39:17 +00:00
|
|
|
* @data : pointer to retro_callbacks object
|
|
|
|
*
|
|
|
|
* Initializes libretro callbacks, and binds the libretro callbacks
|
|
|
|
* to default callback functions.
|
|
|
|
**/
|
2016-01-27 02:14:36 +00:00
|
|
|
static bool retro_init_libretro_cbs(void *data)
|
2014-09-23 01:03:56 +00:00
|
|
|
{
|
2014-09-23 02:42:49 +00:00
|
|
|
struct retro_callbacks *cbs = (struct retro_callbacks*)data;
|
2016-01-24 00:59:43 +00:00
|
|
|
#ifdef HAVE_NETPLAY
|
2015-07-08 15:22:35 +00:00
|
|
|
global_t *global = global_get_ptr();
|
2016-01-24 00:59:43 +00:00
|
|
|
#endif
|
2014-09-23 02:42:49 +00:00
|
|
|
|
|
|
|
if (!cbs)
|
2016-01-27 02:14:36 +00:00
|
|
|
return false;
|
2014-09-23 02:42:49 +00:00
|
|
|
|
2015-12-03 23:26:09 +00:00
|
|
|
core.retro_set_video_refresh(video_driver_frame);
|
2015-10-06 17:34:09 +00:00
|
|
|
core.retro_set_audio_sample(audio_driver_sample);
|
|
|
|
core.retro_set_audio_sample_batch(audio_driver_sample_batch);
|
2016-01-27 00:16:53 +00:00
|
|
|
core.retro_set_input_state(input_state_poll);
|
|
|
|
core.retro_set_input_poll(input_poll_maybe);
|
2014-09-23 01:03:56 +00:00
|
|
|
|
2016-01-27 02:17:05 +00:00
|
|
|
core_ctl(CORE_CTL_SET_CBS, cbs);
|
2014-09-23 01:55:19 +00:00
|
|
|
|
2014-09-23 01:03:56 +00:00
|
|
|
#ifdef HAVE_NETPLAY
|
2015-12-05 15:38:24 +00:00
|
|
|
if (!netplay_driver_ctl(RARCH_NETPLAY_CTL_IS_DATA_INITED, NULL))
|
2016-01-27 02:14:36 +00:00
|
|
|
return true;
|
2014-09-23 01:03:56 +00:00
|
|
|
|
2016-01-27 00:16:53 +00:00
|
|
|
/* Force normal poll type for netplay. */
|
2016-01-28 05:20:44 +00:00
|
|
|
core_poll_type = POLL_TYPE_NORMAL;
|
2016-01-27 00:16:53 +00:00
|
|
|
|
2015-07-27 15:18:10 +00:00
|
|
|
if (global->netplay.is_spectate)
|
2014-09-23 01:03:56 +00:00
|
|
|
{
|
2015-10-06 17:34:09 +00:00
|
|
|
core.retro_set_input_state(
|
2015-07-27 15:18:10 +00:00
|
|
|
(global->netplay.is_client ?
|
2014-09-23 01:03:56 +00:00
|
|
|
input_state_spectate_client : input_state_spectate)
|
|
|
|
);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2015-10-06 17:34:09 +00:00
|
|
|
core.retro_set_video_refresh(video_frame_net);
|
|
|
|
core.retro_set_audio_sample(audio_sample_net);
|
|
|
|
core.retro_set_audio_sample_batch(audio_sample_batch_net);
|
|
|
|
core.retro_set_input_state(input_state_net);
|
2014-09-23 01:03:56 +00:00
|
|
|
}
|
|
|
|
#endif
|
2016-01-27 02:14:36 +00:00
|
|
|
|
|
|
|
return true;
|
2014-09-23 01:03:56 +00:00
|
|
|
}
|
|
|
|
|
2015-01-08 17:39:17 +00:00
|
|
|
/**
|
|
|
|
* retro_set_rewind_callbacks:
|
|
|
|
*
|
|
|
|
* Sets the audio sampling callbacks based on whether or not
|
|
|
|
* rewinding is currently activated.
|
|
|
|
**/
|
2016-01-27 02:18:18 +00:00
|
|
|
static void retro_set_rewind_callbacks(void)
|
2014-09-23 01:03:56 +00:00
|
|
|
{
|
2015-09-16 09:14:43 +00:00
|
|
|
if (state_manager_frame_is_reversed())
|
2014-09-23 01:03:56 +00:00
|
|
|
{
|
2015-10-06 17:34:09 +00:00
|
|
|
core.retro_set_audio_sample(audio_driver_sample_rewind);
|
|
|
|
core.retro_set_audio_sample_batch(audio_driver_sample_batch_rewind);
|
2014-09-23 01:03:56 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2015-10-06 17:34:09 +00:00
|
|
|
core.retro_set_audio_sample(audio_driver_sample);
|
|
|
|
core.retro_set_audio_sample_batch(audio_driver_sample_batch);
|
2014-09-23 01:03:56 +00:00
|
|
|
}
|
|
|
|
}
|
2016-01-27 02:08:49 +00:00
|
|
|
|
|
|
|
bool core_ctl(enum core_ctl_state state, void *data)
|
|
|
|
{
|
2016-04-05 22:20:14 +00:00
|
|
|
static bool has_set_input_descriptors = false;
|
2016-01-27 03:54:22 +00:00
|
|
|
static struct retro_callbacks retro_ctx;
|
|
|
|
|
2016-01-27 02:08:49 +00:00
|
|
|
switch (state)
|
|
|
|
{
|
2016-01-28 03:34:39 +00:00
|
|
|
case CORE_CTL_RETRO_CHEAT_SET:
|
|
|
|
{
|
|
|
|
retro_ctx_cheat_info_t *info = (retro_ctx_cheat_info_t*)data;
|
|
|
|
core.retro_cheat_set(info->index, info->enabled, info->code);
|
|
|
|
}
|
|
|
|
break;
|
2016-01-28 03:29:35 +00:00
|
|
|
case CORE_CTL_RETRO_CHEAT_RESET:
|
|
|
|
core.retro_cheat_reset();
|
|
|
|
break;
|
2016-01-28 03:26:17 +00:00
|
|
|
case CORE_CTL_RETRO_API_VERSION:
|
|
|
|
{
|
|
|
|
retro_ctx_api_info_t *api = (retro_ctx_api_info_t*)data;
|
|
|
|
api->version = core.retro_api_version();
|
|
|
|
}
|
|
|
|
break;
|
2016-01-28 03:17:59 +00:00
|
|
|
case CORE_CTL_SET_POLL_TYPE:
|
|
|
|
{
|
|
|
|
unsigned *poll_type = (unsigned*)data;
|
2016-01-28 05:20:44 +00:00
|
|
|
core_poll_type = *poll_type;
|
2016-01-28 03:17:59 +00:00
|
|
|
}
|
|
|
|
break;
|
2016-01-28 03:03:02 +00:00
|
|
|
case CORE_CTL_RETRO_SYMBOLS_INIT:
|
|
|
|
{
|
|
|
|
enum rarch_core_type *core_type = (enum rarch_core_type*)data;
|
|
|
|
|
|
|
|
if (!core_type)
|
|
|
|
return false;
|
|
|
|
init_libretro_sym(*core_type, &core);
|
|
|
|
}
|
|
|
|
break;
|
2016-01-27 18:13:15 +00:00
|
|
|
case CORE_CTL_RETRO_SET_CONTROLLER_PORT_DEVICE:
|
|
|
|
{
|
|
|
|
retro_ctx_controller_info_t *pad = (retro_ctx_controller_info_t*)data;
|
|
|
|
if (!pad)
|
|
|
|
return false;
|
2016-01-28 03:13:31 +00:00
|
|
|
core.retro_set_controller_port_device(pad->port, pad->device);
|
2016-01-27 18:13:15 +00:00
|
|
|
}
|
|
|
|
break;
|
2016-01-27 08:29:18 +00:00
|
|
|
case CORE_CTL_RETRO_GET_MEMORY:
|
|
|
|
{
|
|
|
|
retro_ctx_memory_info_t *info = (retro_ctx_memory_info_t*)data;
|
2016-01-28 01:53:43 +00:00
|
|
|
if (!info)
|
2016-01-27 08:29:18 +00:00
|
|
|
return false;
|
2016-01-28 01:53:43 +00:00
|
|
|
info->size = core.retro_get_memory_size(info->id);
|
|
|
|
info->data = core.retro_get_memory_data(info->id);
|
2016-01-27 08:29:18 +00:00
|
|
|
}
|
|
|
|
break;
|
2016-01-27 08:13:26 +00:00
|
|
|
case CORE_CTL_RETRO_LOAD_GAME:
|
|
|
|
{
|
|
|
|
retro_ctx_load_content_info_t *load_info =
|
|
|
|
(retro_ctx_load_content_info_t*)data;
|
|
|
|
if (!load_info)
|
|
|
|
return false;
|
|
|
|
|
|
|
|
if (load_info->special)
|
|
|
|
return core.retro_load_game_special(load_info->special->id, load_info->info, load_info->content->size);
|
|
|
|
return core.retro_load_game(*load_info->content->elems[0].data ? load_info->info : NULL);
|
|
|
|
}
|
2016-01-27 07:58:31 +00:00
|
|
|
case CORE_CTL_RETRO_GET_SYSTEM_INFO:
|
|
|
|
{
|
|
|
|
struct retro_system_info *system = (struct retro_system_info*)data;
|
|
|
|
if (!system)
|
|
|
|
return false;
|
|
|
|
core.retro_get_system_info(system);
|
|
|
|
}
|
|
|
|
break;
|
2016-01-27 06:14:06 +00:00
|
|
|
case CORE_CTL_RETRO_UNSERIALIZE:
|
|
|
|
{
|
|
|
|
retro_ctx_serialize_info_t *info = (retro_ctx_serialize_info_t*)data;
|
|
|
|
if (!info)
|
|
|
|
return false;
|
2016-01-27 06:17:53 +00:00
|
|
|
if (!core.retro_unserialize(info->data_const, info->size))
|
|
|
|
return false;
|
2016-01-27 06:14:06 +00:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
case CORE_CTL_RETRO_SERIALIZE:
|
|
|
|
{
|
|
|
|
retro_ctx_serialize_info_t *info = (retro_ctx_serialize_info_t*)data;
|
|
|
|
if (!info)
|
|
|
|
return false;
|
2016-01-27 06:17:53 +00:00
|
|
|
if (!core.retro_serialize(info->data, info->size))
|
|
|
|
return false;
|
2016-01-27 06:14:06 +00:00
|
|
|
}
|
|
|
|
break;
|
2016-01-27 05:46:59 +00:00
|
|
|
case CORE_CTL_RETRO_SERIALIZE_SIZE:
|
|
|
|
{
|
|
|
|
retro_ctx_size_info_t *info = (retro_ctx_size_info_t *)data;
|
|
|
|
if (!info)
|
|
|
|
return false;
|
|
|
|
info->size = core.retro_serialize_size();
|
|
|
|
}
|
|
|
|
break;
|
2016-01-27 03:49:38 +00:00
|
|
|
case CORE_CTL_RETRO_CTX_FRAME_CB:
|
|
|
|
{
|
|
|
|
retro_ctx_frame_info_t *info = (retro_ctx_frame_info_t*)data;
|
|
|
|
if (!info || !retro_ctx.frame_cb)
|
|
|
|
return false;
|
|
|
|
|
|
|
|
retro_ctx.frame_cb(
|
|
|
|
info->data, info->width, info->height, info->pitch);
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case CORE_CTL_RETRO_CTX_POLL_CB:
|
|
|
|
if (!retro_ctx.poll_cb)
|
|
|
|
return false;
|
|
|
|
retro_ctx.poll_cb();
|
|
|
|
break;
|
2016-01-27 04:19:15 +00:00
|
|
|
case CORE_CTL_RETRO_SET_ENVIRONMENT:
|
|
|
|
{
|
|
|
|
retro_ctx_environ_info_t *info = (retro_ctx_environ_info_t*)data;
|
|
|
|
if (!info)
|
|
|
|
return false;
|
|
|
|
core.retro_set_environment(info->env);
|
|
|
|
}
|
|
|
|
break;
|
2016-01-27 02:40:02 +00:00
|
|
|
case CORE_CTL_RETRO_GET_SYSTEM_AV_INFO:
|
|
|
|
{
|
|
|
|
struct retro_system_av_info *av_info = (struct retro_system_av_info*)data;
|
|
|
|
if (!av_info)
|
|
|
|
return false;
|
|
|
|
core.retro_get_system_av_info(av_info);
|
|
|
|
}
|
|
|
|
break;
|
2016-01-27 02:35:52 +00:00
|
|
|
case CORE_CTL_RETRO_RESET:
|
|
|
|
core.retro_reset();
|
|
|
|
break;
|
|
|
|
case CORE_CTL_RETRO_INIT:
|
|
|
|
core.retro_init();
|
|
|
|
break;
|
|
|
|
case CORE_CTL_RETRO_DEINIT:
|
|
|
|
core.retro_deinit();
|
2016-01-28 03:03:02 +00:00
|
|
|
uninit_libretro_sym(&core);
|
2016-01-27 02:35:52 +00:00
|
|
|
break;
|
|
|
|
case CORE_CTL_RETRO_UNLOAD_GAME:
|
2016-02-07 19:15:58 +00:00
|
|
|
video_driver_ctl(RARCH_DISPLAY_CTL_DEINIT_HW_CONTEXT, NULL);
|
2016-02-20 09:28:39 +00:00
|
|
|
audio_driver_ctl(RARCH_AUDIO_CTL_STOP, NULL);
|
2016-01-27 02:35:52 +00:00
|
|
|
core.retro_unload_game();
|
|
|
|
break;
|
2016-01-27 02:31:42 +00:00
|
|
|
case CORE_CTL_RETRO_RUN:
|
2016-01-28 05:20:44 +00:00
|
|
|
switch (core_poll_type)
|
2016-01-27 02:21:36 +00:00
|
|
|
{
|
|
|
|
case POLL_TYPE_EARLY:
|
|
|
|
input_poll();
|
|
|
|
break;
|
|
|
|
case POLL_TYPE_LATE:
|
2016-01-28 05:21:29 +00:00
|
|
|
core_input_polled = false;
|
2016-01-27 02:21:36 +00:00
|
|
|
break;
|
|
|
|
}
|
2016-03-11 09:16:23 +00:00
|
|
|
if (core.retro_run)
|
|
|
|
core.retro_run();
|
2016-02-23 15:28:32 +00:00
|
|
|
if (core_poll_type == POLL_TYPE_LATE && !core_input_polled)
|
|
|
|
input_poll();
|
2016-01-27 02:21:36 +00:00
|
|
|
break;
|
2016-01-27 02:17:05 +00:00
|
|
|
case CORE_CTL_SET_CBS:
|
|
|
|
return retro_set_default_callbacks(data);
|
2016-01-27 02:18:18 +00:00
|
|
|
case CORE_CTL_SET_CBS_REWIND:
|
|
|
|
retro_set_rewind_callbacks();
|
|
|
|
break;
|
2016-01-27 02:14:36 +00:00
|
|
|
case CORE_CTL_INIT:
|
2016-01-27 07:40:18 +00:00
|
|
|
{
|
|
|
|
settings_t *settings = config_get_ptr();
|
2016-01-28 05:20:44 +00:00
|
|
|
core_poll_type = settings->input.poll_type_behavior;
|
2016-01-27 07:40:18 +00:00
|
|
|
if (!core_ctl(CORE_CTL_VERIFY_API_VERSION, NULL))
|
|
|
|
return false;
|
|
|
|
if (!retro_init_libretro_cbs(&retro_ctx))
|
|
|
|
return false;
|
|
|
|
core_ctl(CORE_CTL_RETRO_GET_SYSTEM_AV_INFO,
|
|
|
|
video_viewport_get_system_av_info());
|
|
|
|
runloop_ctl(RUNLOOP_CTL_SET_FRAME_LIMIT, NULL);
|
|
|
|
}
|
2016-01-27 07:17:12 +00:00
|
|
|
break;
|
2016-01-27 02:14:36 +00:00
|
|
|
case CORE_CTL_DEINIT:
|
2016-01-27 03:54:22 +00:00
|
|
|
return retro_uninit_libretro_cbs(&retro_ctx);
|
2016-01-27 07:13:54 +00:00
|
|
|
case CORE_CTL_VERIFY_API_VERSION:
|
|
|
|
{
|
|
|
|
unsigned api_version = core.retro_api_version();
|
|
|
|
RARCH_LOG("Version of libretro API: %u\n", api_version);
|
|
|
|
RARCH_LOG("Compiled against API: %u\n", RETRO_API_VERSION);
|
|
|
|
|
|
|
|
if (api_version != RETRO_API_VERSION)
|
|
|
|
{
|
|
|
|
RARCH_WARN("%s\n", msg_hash_to_str(MSG_LIBRETRO_ABI_BREAK));
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
2016-04-05 22:20:14 +00:00
|
|
|
case CORE_CTL_HAS_SET_INPUT_DESCRIPTORS:
|
|
|
|
return has_set_input_descriptors;
|
|
|
|
case CORE_CTL_SET_INPUT_DESCRIPTORS:
|
|
|
|
has_set_input_descriptors = true;
|
|
|
|
break;
|
|
|
|
case CORE_CTL_UNSET_INPUT_DESCRIPTORS:
|
|
|
|
has_set_input_descriptors = false;
|
|
|
|
break;
|
2016-01-27 02:08:49 +00:00
|
|
|
case CORE_CTL_NONE:
|
|
|
|
default:
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
return true;
|
|
|
|
}
|