예제 #1
0
//////////////////////////////////////////////////////////////////////////////////////////
//
// Hook psSelectDevice so we can:
//   * Set/validate the required video mode
//   * Choose whether to show the device selection dialog box
//
//////////////////////////////////////////////////////////////////////////////////////////
int OnMY_SelectDevice( void )
{
    CSettingsSA* gameSettings = (CSettingsSA*)pGame->GetSettings();
    return gameSettings->OnSelectDevice();
}
예제 #2
0
//////////////////////////////////////////////////////////////////////////////////////////
//
// Hook psSelectDevice so we can:
//   * Set/validate the required video mode
//   * Choose whether to show the device selection dialog box
//
//////////////////////////////////////////////////////////////////////////////////////////
__declspec(noinline) int OnMY_SelectDevice(void)
{
    CSettingsSA* gameSettings = (CSettingsSA*)pGame->GetSettings();
    return gameSettings->OnSelectDevice();
}