Browse Source

water: Add back a way to get win appdata and programfiles

Signed-off-by: falkTX <falktx@falktx.com>
tags/v2.5.0
falkTX 2 years ago
parent
commit
93d3fff123
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
2 changed files with 12 additions and 1 deletions
  1. +8
    -0
      source/modules/water/files/File.cpp
  2. +4
    -1
      source/modules/water/files/File.h

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

@@ -1146,6 +1146,14 @@ File File::getSpecialLocation (const SpecialLocationType type)
case hostApplicationPath:
return WindowsFileHelpers::getModuleFileName (nullptr);
case winAppData:
csidlType = CSIDL_APPDATA;
break;
case winProgramFiles:
csidlType = CSIDL_PROGRAM_FILES;
break;
default:
wassertfalse; // unknown type?
return File();


+ 4
- 1
source/modules/water/files/File.h View File

@@ -662,7 +662,10 @@ public:
currentExecutableFile,
/** In a plugin, this will return the path of the host executable. */
hostApplicationPath
hostApplicationPath,
/** Windows specific paths */
winAppData, winProgramFiles
};
/** Finds the location of a special type of file or directory, such as a home folder or


Loading…
Cancel
Save