mirror of
https://github.com/dborth/fceugx.git
synced 2024-11-01 06:55:05 +01:00
FDS disk switch works much better now
This commit is contained in:
parent
6f609f6943
commit
281bc08d35
@ -283,14 +283,22 @@ copy_to_xfb (u32 arg)
|
||||
switch(FDSSwitchRequested)
|
||||
{
|
||||
case 1:
|
||||
FCEUI_FDSInsert(); // eject disk
|
||||
FDSSwitchRequested++;
|
||||
FCEUI_FDSInsert(); // eject disk
|
||||
FDSTimer = 0;
|
||||
break;
|
||||
case 2:
|
||||
if(FDSTimer > 60)
|
||||
{
|
||||
FDSSwitchRequested++;
|
||||
FDSTimer = 0;
|
||||
FCEUI_FDSSelect(); // select other side
|
||||
FCEUI_FDSInsert(); // insert disk
|
||||
}
|
||||
break;
|
||||
case 3:
|
||||
if(FDSTimer > 200)
|
||||
{
|
||||
FDSSwitchRequested = 0;
|
||||
FDSTimer = 0;
|
||||
}
|
||||
|
@ -538,7 +538,8 @@ static unsigned char DecodeJoy( unsigned short pad )
|
||||
* we'll delay them so the virtual FDS has a chance
|
||||
* to process them
|
||||
*/
|
||||
FDSSwitchRequested = 1;
|
||||
if(FDSSwitchRequested == 0)
|
||||
FDSSwitchRequested = 1;
|
||||
}
|
||||
else
|
||||
FCEUI_VSUniCoin(); // insert coin for VS Games
|
||||
|
Loading…
Reference in New Issue
Block a user