MCPcopy Create free account
hub / github.com/ColorCop/ColorCop / GetSettingsFolder

Method GetSettingsFolder

ColorCop/ColorCop.cpp:140–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138}
139
140CString CColorCopApp::GetSettingsFolder() {
141 CString path;
142 if (m_PortableMode) {
143 // Portable mode: store settings next to the EXE
144 TCHAR exePath[MAX_PATH] = {0};
145 GetModuleFileName(NULL, exePath, MAX_PATH);
146 PathRemoveFileSpec(exePath);
147 path = exePath;
148 return path; // e.g. C:\Tools\ColorCop
149 }
150
151 // Installed mode: use LocalAppData\ColorCop
152 TCHAR buffer[MAX_PATH] = {0};
153 GetShellFolderPath(_T("Local AppData"), buffer);
154 path = buffer;
155
156 path += INI_FILE_DIR; // "\ColorCop"
157 return path; // e.g. C:\Users\...\AppData\Local\ColorCop
158}
159
160void CColorCopApp::ClipOrCenterWindowToMonitor(HWND hwnd, UINT flags) {
161 (void) flags; // explicitly mark unused to avoid a warning

Callers 2

OnDestroyMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected