Public feed #889900

Mine

public text v1 · immutable
Raw Edit
·published 2008-02-03 08:47 UTC
rendered paste body
-- IterateModules will iterate through all modules  in the order they will be (or were) loaded
do
	local function Iterator(_, StateKey)		
		StateKey = StateKey + 1;
		local ModuleName = LoadOrder[StateKey];		
		if(not ModuleName) then return nil; end
		return StateKey, ModuleName, ModuleList[ModuleName];
	end 

	function FlexBar3:IterateModules()
		FlexBar3:Print("Expected amount of loops: ", #LoadOrder);
		return Iterator, nil, 0;
	end 
end