Example #1
0
//---------------------------------------------------------------------------------------
EXPORT void CALL RomClosed(void)
{
#ifdef DEBUGON
//	_break();
#endif

    TRACE0("To stop video");
    Ini_StoreRomOptions(&g_curRomInfo);
#ifdef USING_THREAD
    if(videoThread)
    {
        SetEvent( threadMsg[RSPMSG_CLOSE] );
        WaitForSingleObject( threadFinished, INFINITE );
        for (int i = 0; i < 5; i++)
        {
            if (threadMsg[i])   CloseHandle( threadMsg[i] );
        }
        CloseHandle( threadFinished );
        CloseHandle( videoThread );
    }
    videoThread = NULL;
#else
    StopVideo();
#endif
    TRACE0("Video is stopped");
}
Example #2
0
void riceRomClosed(void)
{
    TRACE0("To stop video");
    Ini_StoreRomOptions(&g_curRomInfo);

    status.bGameIsRunning = false;

    // Kill all textures?
    gTextureManager.RecycleAllTextures();
    gTextureManager.CleanUp();
    RDP_Cleanup();

    CDeviceBuilder::GetBuilder()->DeleteRender();
    CGraphicsContext::Get()->CleanUp();
    CDeviceBuilder::GetBuilder()->DeleteGraphicsContext();

    windowSetting.dps = windowSetting.fps = -1;
    windowSetting.lastSecDlistCount = windowSetting.lastSecFrameCount = 0xFFFFFFFF;
    status.gDlistCount = status.gFrameCount = 0;

    TRACE0("Video is stopped");
}