Commit e3648e8f authored by Alexander Mikhaylenko's avatar Alexander Mikhaylenko
Browse files

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.
parent c803c1a7
Pipeline #30020 passed with stages
in 25 minutes and 4 seconds
......@@ -28,7 +28,8 @@ private struct Games.MameGameInfo {
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))
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