| 225 | } |
| 226 | |
| 227 | void load_subtitles(agi::Context *c, agi::fs::path const& path, std::string const& encoding="") { |
| 228 | #ifdef __APPLE__ |
| 229 | wxGetApp().NewProjectContext().project->LoadSubtitles(path, encoding); |
| 230 | #else |
| 231 | c->project->LoadSubtitles(path, encoding); |
| 232 | #endif |
| 233 | } |
| 234 | |
| 235 | struct subtitle_new final : public Command { |
| 236 | CMD_NAME("subtitle/new") |
no test coverage detected