MCPcopy Create free account
hub / github.com/ThirteenAG/WidescreenFixesPack / LoadDatFile

Function LoadDatFile

source/SilentHill2.WidescreenFix/dllmain.cpp:42–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42void LoadDatFile(std::filesystem::path str, std::function<void(std::string_view line)>&& cb)
43{
44 std::ifstream hFile;
45 hFile.open(str);
46 if (hFile.is_open())
47 {
48 std::string line;
49 while (std::getline(hFile, line))
50 {
51 if (line[0] && line[0] != '#')
52 {
53 cb(line);
54 }
55 }
56 hFile.close();
57 }
58}
59
60void Init()
61{

Callers 1

ifMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected