attempt to fix issue 267 by splitting the check between persistent profile and memory card state
This commit is contained in:
@@ -212,10 +212,11 @@ local function GetSpeedMods()
|
|||||||
|
|
||||||
local playerMods = {}
|
local playerMods = {}
|
||||||
for pn in ivalues(GAMESTATE:GetHumanPlayers()) do
|
for pn in ivalues(GAMESTATE:GetHumanPlayers()) do
|
||||||
-- file loading logic per player;
|
-- file loading logic per player.
|
||||||
-- only bother if it's not the machine profile though.
|
if PROFILEMAN:IsPersistentProfile(pn) then
|
||||||
if PROFILEMAN:IsPersistentProfile(pn) or
|
playerMods[#playerMods+1] = ParseSpeedModFile(profileDirs[pn]..baseFilename)
|
||||||
MEMCARDMAN:GetCardState(pn) == 'MemoryCardState_ready' then
|
-- we need to make sure the memory card is ready if we're gonna grab from it.
|
||||||
|
elseif MEMCARDMAN:GetCardState(pn) == 'MemoryCardState_ready' then
|
||||||
playerMods[#playerMods+1] = ParseSpeedModFile(profileDirs[pn]..baseFilename)
|
playerMods[#playerMods+1] = ParseSpeedModFile(profileDirs[pn]..baseFilename)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user