fix the lua player2 fix

This commit is contained in:
zeromus 2008-08-04 16:02:46 +00:00
parent eb7653c86b
commit 0fd76158a0
1 changed files with 3 additions and 2 deletions

View File

@ -190,13 +190,14 @@ static void UpdateGP(int w, void *data, int arg)
if(w==0) if(w==0)
{ {
joy[0]= FCEU_LuaUsingJoypad(0) ? FCEU_LuaReadJoypad(0) : *(uint32 *)joyports[0].ptr; joy[0]= FCEU_LuaUsingJoypad(0) ? FCEU_LuaReadJoypad(0) : *(uint32 *)joyports[0].ptr;
joy[2]= FCEU_LuaUsingJoypad(2) ? FCEU_LuaReadJoypad(2) : *(uint32 *)joyports[2].ptr >> 16; joy[2]= FCEU_LuaUsingJoypad(2) ? FCEU_LuaReadJoypad(0) : *(uint32 *)joyports[0].ptr >> 16;
} }
else else
{ {
joy[1]= FCEU_LuaUsingJoypad(1) ? FCEU_LuaReadJoypad(1) : *(uint32 *)joyports[1].ptr >> 8; joy[1]= FCEU_LuaUsingJoypad(1) ? FCEU_LuaReadJoypad(1) : *(uint32 *)joyports[1].ptr >> 8;
joy[3]= FCEU_LuaUsingJoypad(3) ? FCEU_LuaReadJoypad(3) : *(uint32 *)joyports[3].ptr >> 24; joy[3]= FCEU_LuaUsingJoypad(3) ? FCEU_LuaReadJoypad(3) : *(uint32 *)joyports[1].ptr >> 24;
} }
} }
static void LogGP(int w, MovieRecord* mr) static void LogGP(int w, MovieRecord* mr)