Browse Source

water: allow getting common program files special dir for windows

Signed-off-by: falkTX <falktx@falktx.com>
pull/1775/head
falkTX 2 years ago
parent
commit
cccc6ace77
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
2 changed files with 6 additions and 2 deletions
  1. +4
    -0
      source/modules/water/files/File.cpp
  2. +2
    -2
      source/modules/water/files/File.h

+ 4
- 0
source/modules/water/files/File.cpp View File

@@ -1154,6 +1154,10 @@ File File::getSpecialLocation (const SpecialLocationType type)
csidlType = CSIDL_PROGRAM_FILES;
break;
case winCommonProgramFiles:
csidlType = CSIDL_PROGRAM_FILES_COMMON;
break;
default:
wassertfalse; // unknown type?
return File();


+ 2
- 2
source/modules/water/files/File.h View File

@@ -3,7 +3,7 @@
This file is part of the Water library.
Copyright (c) 2016 ROLI Ltd.
Copyright (C) 2017-2022 Filipe Coelho <falktx@falktx.com>
Copyright (C) 2017-2023 Filipe Coelho <falktx@falktx.com>
Permission is granted to use this software under the terms of the ISC license
http://www.isc.org/downloads/software-support-policy/isc-license/
@@ -665,7 +665,7 @@ public:
hostApplicationPath,
/** Windows specific paths */
winAppData, winProgramFiles
winAppData, winProgramFiles, winCommonProgramFiles
};
/** Finds the location of a special type of file or directory, such as a home folder or


Loading…
Cancel
Save