[yast-commit] r66280 - /branches/tmp/lslezak/sound/sound/src/joy_dialog.ycp
Author: lslezak Date: Thu Oct 6 08:58:26 2011 New Revision: 66280 URL: http://svn.opensuse.org/viewcvs/yast?rev=66280&view=rev Log: optimization - probe sound cards only once, not for each joystick Modified: branches/tmp/lslezak/sound/sound/src/joy_dialog.ycp Modified: branches/tmp/lslezak/sound/sound/src/joy_dialog.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/lslezak/sound/sound/src/joy_dialog.ycp?rev=66280&r1=66279&r2=66280&view=diff ============================================================================== --- branches/tmp/lslezak/sound/sound/src/joy_dialog.ycp (original) +++ branches/tmp/lslezak/sound/sound/src/joy_dialog.ycp Thu Oct 6 08:58:26 2011 @@ -249,6 +249,8 @@ define list<map<string,any> > joystick_table() { list<map<string,any> > content = []; + list<map> soundcards = (list<map>)SCR::Read(.probe.sound); + foreach(map js, Joystick::Detected(), { y2milestone("Adding joystick to table: %1", js); @@ -270,7 +272,6 @@ if (bus == "Gameport" && size(js["parent_unique_key"]:"") > 0) { - list<map> soundcards = (list<map>)SCR::Read(.probe.sound); string unique_key = js["parent_unique_key"]:""; map card = find(map c, soundcards, {return c["unique_key"]:"" == unique_key;}); -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
lslezak@svn2.opensuse.org