예제 #1
0
static bool try_fast_task_dispatching(struct hle_t* hle)
{
    /* identify task ucode by its type */
    switch (*dmem_u32(hle, TASK_TYPE))
    {
       case 1:
          if (FORWARD_GFX)
          {
             forward_gfx_task(hle);
             return true;
          }
          break;

       case 2:
          if (FORWARD_AUDIO)
          {
             if (rsp_info.ProcessAlistList)
                rsp_info.ProcessAlistList();
             return true;
          }
          if (try_fast_audio_dispatching(hle))
             return true;
          break;

       case 7:
          if (rsp_info.ShowCFB)
             rsp_info.ShowCFB();
          return true;
    }

    return false;
}
예제 #2
0
파일: hle.cpp 프로젝트: 173210/project64
bool CHle::try_fast_task_dispatching(void)
{
    /* identify task ucode by its type */
    switch (*dmem_u32(this, TASK_TYPE))
    {
    case 1:
        if (m_ForwardGFX)
        {
            m_ProcessDList();
            return true;
        }
        break;
    case 2:
        if (m_AudioHle)
        {
            m_ProcessAList();
            return true;
        }
        else if (try_fast_audio_dispatching())
        {
            return true;
        }
        break;
    case 7:
        m_ShowCFB();
        return true;
    }
    return false;
}
예제 #3
0
static bool try_fast_task_dispatching(struct hle_t* hle)
{
    /* identify task ucode by its type */
    switch (*dmem_u32(hle, TASK_TYPE)) {
    case 1:
        if (FORWARD_GFX) {
            forward_gfx_task(hle);
            return true;
        }
        break;

    case 2:
        if (FORWARD_AUDIO) {
            HleProcessAlistList(hle->user_defined);
            return true;
        } else if (try_fast_audio_dispatching(hle))
            return true;
        break;

    case 7:
        HleShowCFB(hle->user_defined);
        return true;
    }

    return false;
}
예제 #4
0
static int try_fast_task_dispatching(void)
{
    /* identify task ucode by its type */

    switch (*dmem_u32(TASK_TYPE))
    {
       case 1:
          if (FORWARD_GFX)
          {
             forward_gfx_task();
             return 1;
          }
          break;
       case 2:
          if (FORWARD_AUDIO)
          {
             forward_audio_task();
             return 1;
          }
          else if (try_fast_audio_dispatching())
             return 1;
          break;
       case 7:
          show_cfb();
          return 1;
    }

    return 0;
}
예제 #5
0
static int try_fast_task_dispatching()
{
    /* identify task ucode by its type */
    const OSTask_t * const task = get_task();

    switch (task->type)
    {
        case 1: if (FORWARD_GFX) { forward_gfx_task(); return 1; } break;

        case 2:
            if (FORWARD_AUDIO) { forward_audio_task(); return 1; }
            else if (try_fast_audio_dispatching()) { return 1; }
            break;

        case 7: show_cfb(); return 1;
    }

    return 0;
}