Mercurial > minori
comparison src/core/config.cc @ 151:54744a48a7d7
last commit part 2: struct init with {} is valid syntax, actually
| author | Paper <mrpapersonic@gmail.com> |
|---|---|
| date | Tue, 14 Nov 2023 16:31:21 -0500 |
| parents | ffa535b6d630 |
| children | 01d259b9c89f |
comparison
equal
deleted
inserted
replaced
| 150:ffa535b6d630 | 151:54744a48a7d7 |
|---|---|
| 63 if (!animia::ParsePlayersData(Strings::ToUtf8String(ts.readAll()), players)) | 63 if (!animia::ParsePlayersData(Strings::ToUtf8String(ts.readAll()), players)) |
| 64 return false; | 64 return false; |
| 65 | 65 |
| 66 recognition.players.reserve(players.size()); | 66 recognition.players.reserve(players.size()); |
| 67 for (const auto& player : players) { | 67 for (const auto& player : players) { |
| 68 MediaPlayer mediaplayer; | 68 recognition.players.push_back({true, player}); |
| 69 | |
| 70 mediaplayer.enabled = true; | |
| 71 mediaplayer.player = player; | |
| 72 | |
| 73 recognition.players.push_back(mediaplayer); | |
| 74 } | 69 } |
| 75 } | 70 } |
| 76 | 71 |
| 77 for (auto& [enabled, player] : recognition.players) { | 72 for (auto& [enabled, player] : recognition.players) { |
| 78 switch (player.type) { | 73 switch (player.type) { |
