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

Function Open

libaegisub/common/io.cpp:27–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25using namespace agi::fs;
26
27std::unique_ptr<std::istream> Open(path const& file, bool binary) {
28 LOG_D("agi/io/open/file") << file;
29
30 auto stream = std::make_unique<std::ifstream>(file, (binary ? std::ios::binary : std::ios::in));
31 if (stream->fail()) {
32 acs::CheckFileRead(file);
33 throw IOFatal("Unknown fatal error occurred opening " + file.string());
34 }
35
36 return std::unique_ptr<std::istream>(stream.release());
37}
38
39Save::Save(path const& file, bool binary)
40: file_name(file)

Callers 13

convertFunction · 0.85
LoadMethod · 0.85
AvisynthVideoProviderMethod · 0.85
index_fontsFunction · 0.85
GetFontPathsMethod · 0.85
ReadUserDictionaryMethod · 0.85
LoadHistoryMethod · 0.85
OnInitMethod · 0.85
CopyFunction · 0.85
FramerateMethod · 0.85
LoadFunction · 0.85
ConfigUserMethod · 0.85

Calls 2

CheckFileReadFunction · 0.85
stringMethod · 0.80

Tested by

no test coverage detected