コード例 #1
0
ファイル: acplatfm.cpp プロジェクト: smarinel/ags-web
void IAGSEngine::UnrequestEventHook(int event) {
  if (event >= AGSE_TOOHIGH) 
    quit("!IAGSEngine::UnrequestEventHook: invalid event requested");

  if ((event & AGSE_SCRIPTDEBUG) &&
    (plugins[this->pluginId].wantHook & AGSE_SCRIPTDEBUG)) {
    pluginsWantingDebugHooks--;
    if (pluginsWantingDebugHooks < 1)
      ccSetDebugHook(NULL);
  }

  plugins[this->pluginId].wantHook &= ~event;
}
コード例 #2
0
ファイル: game_start.cpp プロジェクト: Cheeseness/ags
void start_game_init_editor_debugging()
{
    if (editor_debugging_enabled)
    {
        SetMultitasking(1);
        if (init_editor_debugging())
        {
            timerloop = 0;
            while (timerloop < 20)
            {
                // pick up any breakpoints in game_start
                check_for_messages_from_editor();
            }

            ccSetDebugHook(scriptDebugHook);
        }
    }
}
コード例 #3
0
ファイル: acplatfm.cpp プロジェクト: smarinel/ags-web
void IAGSEngine::RequestEventHook (int event) {
  if (event >= AGSE_TOOHIGH) 
    quit("!IAGSEngine::RequestEventHook: invalid event requested");

  if (plugins[this->pluginId].onEvent == NULL)
    quit("!IAGSEngine::RequestEventHook: no callback AGS_EngineOnEvent function exported from plugin");

  if ((event & AGSE_SCRIPTDEBUG) &&
      ((plugins[this->pluginId].wantHook & AGSE_SCRIPTDEBUG) == 0)) {
    pluginsWantingDebugHooks++;
    ccSetDebugHook(scriptDebugHook);
  }

  if (event & AGSE_AUDIODECODE) {
    quit("Plugin requested AUDIODECODE, which is no longer supported");
  }
  

  plugins[this->pluginId].wantHook |= event;
}