MCPcopy Create free account
hub / github.com/TypesettingTools/Aegisub / LoadTimecodes

Method LoadTimecodes

src/project.cpp:359–371  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

357}
358
359void Project::LoadTimecodes(agi::fs::path path) {
360 try {
361 DoLoadTimecodes(path);
362 }
363 catch (agi::fs::FileSystemError const& e) {
364 ShowError(e.GetMessage());
365 config::mru->Remove("Timecodes", path);
366 }
367 catch (agi::vfr::Error const& e) {
368 ShowError("Failed to parse timecodes file: " + e.GetMessage());
369 config::mru->Remove("Timecodes", path);
370 }
371}
372
373void Project::CloseTimecodes() {
374 timecodes = video_provider ? video_provider->GetFPS() : agi::vfr::Framerate{};

Callers 2

operator()Function · 0.80

Calls 1

RemoveMethod · 0.45

Tested by

no test coverage detected