Use native APIs instead of env vars or finding Windows paths

Fixes #202

Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
falkTX 2022-03-26 16:07:25 +00:00
parent c411946ccf
commit 56305eb037
3 changed files with 41 additions and 13 deletions

View file

@ -41,6 +41,14 @@ namespace window {
void generateScreenshot();
}
#ifdef ARCH_WIN
enum SpecialPath {
kSpecialPathUserProfile,
kSpecialPathCommonProgramFiles,
};
std::string getSpecialPath(SpecialPath type);
#endif
} // namespace rack
namespace patchUtils {