MCPcopy Create free account
hub / github.com/bumptop/BumpTop / GetUserLocalApplicationDataPath

Method GetUserLocalApplicationDataPath

trunk/win/Source/BT_WindowsOS.cpp:3533–3553  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3531}
3532
3533QDir WindowsSystem::GetUserLocalApplicationDataPath()
3534{
3535 static QDir btAppDataPath;
3536 if (empty(btAppDataPath))
3537 {
3538 QDir appPath = winOS->GetSystemPath(CSIDL_LOCAL_APPDATA);
3539 QDir companyPath = appPath / "Bump Technologies, Inc";
3540 QDir productName = companyPath / "BumpTop";
3541
3542 // ensure company path exists
3543 if (!exists(companyPath))
3544 create_directory(companyPath);
3545
3546 // ensure product path exists
3547 if (!exists(productName))
3548 create_directory(productName);
3549
3550 btAppDataPath = productName;
3551 }
3552 return btAppDataPath;
3553}
3554
3555HWND WindowsSystem::GetWindowsHandle()
3556{

Callers 1

tryLockMethod · 0.80

Calls 4

GetSystemPathMethod · 0.80
emptyFunction · 0.70
existsFunction · 0.70
create_directoryFunction · 0.70

Tested by

no test coverage detected