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

Method UpdateRelativePaths

src/project.cpp:64–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62Project::~Project() { }
63
64void Project::UpdateRelativePaths() {
65 using namespace std::string_view_literals;
66 context->ass->Properties.audio_file = context->path->MakeRelative(audio_file, "?script"sv).generic_string();
67 context->ass->Properties.video_file = context->path->MakeRelative(video_file, "?script"sv).generic_string();
68 context->ass->Properties.timecodes_file = context->path->MakeRelative(timecodes_file, "?script"sv).generic_string();
69 context->ass->Properties.keyframes_file = context->path->MakeRelative(keyframes_file, "?script"sv).generic_string();
70}
71
72void Project::ReloadAudio() {
73 if (audio_provider)

Callers

nothing calls this directly

Calls 2

generic_stringMethod · 0.80
MakeRelativeMethod · 0.80

Tested by

no test coverage detected