MCPcopy Create free account
hub / github.com/BeneficialCode/WinArk / Load

Method Load

WinArk/Settings.cpp:130–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128}
129
130bool Settings::Load(PCWSTR path) {
131 WCHAR fullpath[MAX_PATH];
132 ::GetModuleFileName(nullptr, fullpath, _countof(fullpath));
133 auto ch = fullpath[3];
134 fullpath[3] = 0;
135 if (::GetDriveType(fullpath) == DRIVE_FIXED)
136 return LoadFromKey(path);
137 fullpath[3] = ch;
138 // exe to ini
139 wcscpy_s(fullpath + wcslen(fullpath) - 3, _countof(fullpath), L"ini");
140 return LoadFromFile(fullpath);
141}
142
143bool Settings::Save() const {
144 if (_path.empty())

Callers 4

OnLoadMethod · 0.45
OnLoadMethod · 0.45
OnCreateMethod · 0.45
InitFontSysFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected