| 2009 | } |
| 2010 | |
| 2011 | QDir WindowsSystem::GetStatsDirectory() |
| 2012 | { |
| 2013 | // always keep the stats in the Application Data folder |
| 2014 | // i.e. C:/Documents and Settings/<User>/Application Data/BumpTop Technologies, Inc./Bumptop |
| 2015 | |
| 2016 | QFileInfo statsPath(GetUserApplicationDataPath(), "stats"); |
| 2017 | QDir statsDir(statsPath.absoluteFilePath()); |
| 2018 | |
| 2019 | // ensure stats path exists |
| 2020 | if (!exists(statsPath)) |
| 2021 | GetUserApplicationDataPath().mkdir(statsPath.fileName()); |
| 2022 | |
| 2023 | return statsDir; |
| 2024 | } |
| 2025 | |
| 2026 | QDir WindowsSystem::GetDataDirectory() |
| 2027 | { |
no test coverage detected