Beispiel #1
0
/**
 * Called right after the game plugin is selected into use.
 */
void DP_Load(void)
{
    // We might've been freed from memory, so refresh the game ids.
    gameIds[hexen_deathkings] = DD_GameIdForKey("hexen-dk");
    gameIds[hexen]            = DD_GameIdForKey("hexen");
    gameIds[hexen_v10]        = DD_GameIdForKey("hexen-v10");
    gameIds[hexen_demo]       = DD_GameIdForKey("hexen-demo");
    gameIds[hexen_betademo]   = DD_GameIdForKey("hexen-betademo");

    Plug_AddHook(HOOK_VIEWPORT_RESHAPE, R_UpdateViewport);
}
Beispiel #2
0
/**
 * Called right after the game plugin is selected into use.
 */
void DP_Load(void)
{
    // We might've been freed from memory, so refresh the game ids.
    gameIds[doom64] = DD_GameIdForKey("doom64");

    Plug_AddHook(HOOK_VIEWPORT_RESHAPE, R_UpdateViewport);
}