Skip to content

Commit

Permalink
fix input on SelectProfile for USB memory cards
Browse files Browse the repository at this point in the history
Players with USB memory cards shouldn't be allowed to use the scroller to choose a local profile.
  • Loading branch information
quietly-turning committed Dec 3, 2019
1 parent 30721be commit 58d0f56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions BGAnimations/ScreenSelectProfile underlay/Input.lua
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ Handle.Center = Handle.Start


Handle.MenuLeft = function(event)
if GAMESTATE:IsHumanPlayer(event.PlayerNumber) then
if GAMESTATE:IsHumanPlayer(event.PlayerNumber) and MEMCARDMAN:GetCardState(event.PlayerNumber) == 'MemoryCardState_none' then
local info = scrollers[event.PlayerNumber]:get_info_at_focus_pos()
local index = type(info)=="table" and info.index or 0

Expand All @@ -86,7 +86,7 @@ Handle.MenuUp = Handle.MenuLeft
Handle.DownLeft = Handle.MenuLeft

Handle.MenuRight = function(event)
if GAMESTATE:IsHumanPlayer(event.PlayerNumber) then
if GAMESTATE:IsHumanPlayer(event.PlayerNumber) and MEMCARDMAN:GetCardState(event.PlayerNumber) == 'MemoryCardState_none' then
local info = scrollers[event.PlayerNumber]:get_info_at_focus_pos()
local index = type(info)=="table" and info.index or 0

Expand Down

0 comments on commit 58d0f56

Please sign in to comment.