Commit a3964d9a authored by Alexander Mikhaylenko's avatar Alexander Mikhaylenko

mame: Use an intermediate variable in get_supported_games()

This forces Vala->C translator to introduce an additional variable for the
array length instead of recomputing it on every iteration.


(cherry picked from commit e3648e8f)
parent 515739f5
Pipeline #30026 passed with stages
in 13 minutes and 2 seconds
......@@ -28,7 +28,8 @@ private struct Games.MameGameInfo {
yield;
}
foreach (var line in text.split ("\n")) {
var lines = text.split ("\n");
foreach (var line in lines) {
MatchInfo match_info;
if (!game_regex.match (line, 0, out match_info))
continue;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment