| 210 | } |
| 211 | |
| 212 | void BatchMode::load_next_app() |
| 213 | { |
| 214 | // Wrap it around to the start |
| 215 | ++sample_iter; |
| 216 | if (sample_iter == sample_list.end()) |
| 217 | { |
| 218 | if (wrap_to_start) |
| 219 | { |
| 220 | sample_iter = sample_list.begin(); |
| 221 | } |
| 222 | else |
| 223 | { |
| 224 | platform->close(); |
| 225 | return; |
| 226 | } |
| 227 | } |
| 228 | |
| 229 | // App will be started before the next update loop |
| 230 | request_app(); |
| 231 | } |
| 232 | } // namespace plugins |