git repos / PlatformFolders

blame: sago/platform_folders.h

normal view · raw

1213f3f3 sago007 2015-09-19 19:24 1
/*
d2b67cec sago007 2018-03-24 09:52 2
Its is under the MIT license, to encourage reuse by cut-and-paste.
1213f3f3 sago007 2015-09-19 19:24 3
d2b67cec sago007 2018-03-24 09:52 4
The original files are hosted here: https://github.com/sago007/PlatformFolders
1ff6644e sago007 2018-02-18 16:28 5
d2b67cec sago007 2018-03-24 09:52 6
Copyright (c) 2015 Poul Sander
1213f3f3 sago007 2015-09-19 19:24 7
d2b67cec sago007 2018-03-24 09:52 8
Permission is hereby granted, free of charge, to any person
d2b67cec sago007 2018-03-24 09:52 9
obtaining a copy of this software and associated documentation files
d2b67cec sago007 2018-03-24 09:52 10
(the "Software"), to deal in the Software without restriction,
d2b67cec sago007 2018-03-24 09:52 11
including without limitation the rights to use, copy, modify, merge,
d2b67cec sago007 2018-03-24 09:52 12
publish, distribute, sublicense, and/or sell copies of the Software,
d2b67cec sago007 2018-03-24 09:52 13
and to permit persons to whom the Software is furnished to do so,
d2b67cec sago007 2018-03-24 09:52 14
subject to the following conditions:
1213f3f3 sago007 2015-09-19 19:24 15
d2b67cec sago007 2018-03-24 09:52 16
The above copyright notice and this permission notice shall be
d2b67cec sago007 2018-03-24 09:52 17
included in all copies or substantial portions of the Software.
1213f3f3 sago007 2015-09-19 19:24 18
d2b67cec sago007 2018-03-24 09:52 19
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
d2b67cec sago007 2018-03-24 09:52 20
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
d2b67cec sago007 2018-03-24 09:52 21
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
d2b67cec sago007 2018-03-24 09:52 22
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
d2b67cec sago007 2018-03-24 09:52 23
BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
d2b67cec sago007 2018-03-24 09:52 24
ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
d2b67cec sago007 2018-03-24 09:52 25
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
d2b67cec sago007 2018-03-24 09:52 26
SOFTWARE.
1213f3f3 sago007 2015-09-19 19:24 27
*/
1213f3f3 sago007 2015-09-19 19:24 28
1213f3f3 sago007 2015-09-19 19:24 29
#ifndef SAGO_PLATFORM_FOLDERS_H
d2b67cec sago007 2018-03-24 09:52 30
#define SAGO_PLATFORM_FOLDERS_H
1213f3f3 sago007 2015-09-19 19:24 31
1213f3f3 sago007 2015-09-19 19:24 32
#include <vector>
1213f3f3 sago007 2015-09-19 19:24 33
#include <string>
1213f3f3 sago007 2015-09-19 19:24 34
1213f3f3 sago007 2015-09-19 19:24 35
/**
1213f3f3 sago007 2015-09-19 19:24 36
 * The namespace I use for common function. Nothing special about it.
1213f3f3 sago007 2015-09-19 19:24 37
 */
1213f3f3 sago007 2015-09-19 19:24 38
namespace sago {
1213f3f3 sago007 2015-09-19 19:24 39
df5fd138 Poul Sander 2019-02-13 16:35 40
#ifndef DOXYGEN_SHOULD_SKIP_THIS
df5fd138 Poul Sander 2019-02-13 16:35 41
namespace internal {
c7c13350 sum01 2019-03-06 18:59 42
#if !defined(_WIN32) && !defined(__APPLE__)
c7c13350 sum01 2019-03-06 18:59 43
void appendExtraFoldersTokenizer(const char* envName, const char* envValue, std::vector<std::string>& folders);
c7c13350 sum01 2019-03-06 18:59 44
#endif
c7c13350 sum01 2019-03-06 18:59 45
#ifdef _WIN32
c7c13350 sum01 2019-03-06 18:59 46
std::string win32_utf16_to_utf8(const wchar_t* wstr);
c7c13350 sum01 2019-03-06 18:59 47
#endif
df5fd138 Poul Sander 2019-02-13 16:35 48
}
df5fd138 Poul Sander 2019-02-13 16:35 49
#endif  //DOXYGEN_SHOULD_SKIP_THIS
df5fd138 Poul Sander 2019-02-13 16:35 50
1213f3f3 sago007 2015-09-19 19:24 51
/**
6b50949e sago007 2018-06-24 14:45 52
 * Retrives the base folder for storing data files.
1213f3f3 sago007 2015-09-19 19:24 53
 * You must add the program name yourself like this:
1213f3f3 sago007 2015-09-19 19:24 54
 * @code{.cpp}
1213f3f3 sago007 2015-09-19 19:24 55
 * string data_home = getDataHome()+"/My Program Name/";
1213f3f3 sago007 2015-09-19 19:24 56
 * @endcode
1213f3f3 sago007 2015-09-19 19:24 57
 * On Windows this defaults to %APPDATA% (Roaming profile)
46675c1a Poul Sander 2022-01-23 14:46 58
 * On Linux this defaults to ~/.local/share but can be configured by the user
6b50949e sago007 2018-06-24 14:45 59
 * @return The base folder for storing program data.
1213f3f3 sago007 2015-09-19 19:24 60
 */
1213f3f3 sago007 2015-09-19 19:24 61
std::string getDataHome();
0fd23ef9 sago007 2018-05-22 17:49 62
1213f3f3 sago007 2015-09-19 19:24 63
/**
6b50949e sago007 2018-06-24 14:45 64
 * Retrives the base folder for storing config files.
1213f3f3 sago007 2015-09-19 19:24 65
 * You must add the program name yourself like this:
1213f3f3 sago007 2015-09-19 19:24 66
 * @code{.cpp}
1213f3f3 sago007 2015-09-19 19:24 67
 * string data_home = getConfigHome()+"/My Program Name/";
1213f3f3 sago007 2015-09-19 19:24 68
 * @endcode
1213f3f3 sago007 2015-09-19 19:24 69
 * On Windows this defaults to %APPDATA% (Roaming profile)
46675c1a Poul Sander 2022-01-23 14:46 70
 * On Linux this defaults to ~/.config but can be configured by the user
6b50949e sago007 2018-06-24 14:45 71
 * @return The base folder for storing config data.
1213f3f3 sago007 2015-09-19 19:24 72
 */
1213f3f3 sago007 2015-09-19 19:24 73
std::string getConfigHome();
0fd23ef9 sago007 2018-05-22 17:49 74
1213f3f3 sago007 2015-09-19 19:24 75
/**
6b50949e sago007 2018-06-24 14:45 76
 * Retrives the base folder for storing cache files.
1213f3f3 sago007 2015-09-19 19:24 77
 * You must add the program name yourself like this:
1213f3f3 sago007 2015-09-19 19:24 78
 * @code{.cpp}
46675c1a Poul Sander 2022-01-23 14:46 79
 * string data_home = getCacheDir()+"/My Program Name/cache/";
1213f3f3 sago007 2015-09-19 19:24 80
 * @endcode
1213f3f3 sago007 2015-09-19 19:24 81
 * On Windows this defaults to %APPDATALOCAL%
46675c1a Poul Sander 2022-01-23 14:46 82
 * On Linux this defaults to ~/.cache but can be configured by the user
46675c1a Poul Sander 2022-01-23 14:46 83
 * Note that it is recommended to append "cache" after the program name to prevent conflicting with "StateDir" under Windows
46675c1a Poul Sander 2022-01-23 14:46 84
 * @return The base folder for storing data that do not need to be backed up and might be deleted.
1213f3f3 sago007 2015-09-19 19:24 85
 */
1213f3f3 sago007 2015-09-19 19:24 86
std::string getCacheDir();
0fd23ef9 sago007 2018-05-22 17:49 87
1213f3f3 sago007 2015-09-19 19:24 88
/**
46675c1a Poul Sander 2022-01-23 14:46 89
 * Retrives the base folder used for state files.
46675c1a Poul Sander 2022-01-23 14:46 90
 * You must add the program name yourself like this:
46675c1a Poul Sander 2022-01-23 14:46 91
 * @code{.cpp}
46675c1a Poul Sander 2022-01-23 14:46 92
 * string data_home = getStateDir()+"/My Program Name/";
46675c1a Poul Sander 2022-01-23 14:46 93
 * @endcode
46675c1a Poul Sander 2022-01-23 14:46 94
 * On Windows this defaults to %APPDATALOCAL%
46675c1a Poul Sander 2022-01-23 14:46 95
 * On Linux this defaults to ~/.local/state but can be configured by the user
46675c1a Poul Sander 2022-01-23 14:46 96
 * On OS X this is the same as getDataHome()
46675c1a Poul Sander 2022-01-23 14:46 97
 * @return The base folder for storing data that do not need to be backed up but should not be reguarly deleted either.
46675c1a Poul Sander 2022-01-23 14:46 98
 */
46675c1a Poul Sander 2022-01-23 14:46 99
std::string getStateDir();
46675c1a Poul Sander 2022-01-23 14:46 100
46675c1a Poul Sander 2022-01-23 14:46 101
/**
1213f3f3 sago007 2015-09-19 19:24 102
 * This will append extra folders that your program should be looking for data files in.
1213f3f3 sago007 2015-09-19 19:24 103
 * This does not normally include the path returned by GetDataHome().
1213f3f3 sago007 2015-09-19 19:24 104
 * If you want all the folders you should do something like:
1213f3f3 sago007 2015-09-19 19:24 105
 * @code{.cpp}
1213f3f3 sago007 2015-09-19 19:24 106
 * vector<string> folders;
1213f3f3 sago007 2015-09-19 19:24 107
 * folders.push_back(getDataHome());
1213f3f3 sago007 2015-09-19 19:24 108
 * appendAdditionalDataDirectories(folders);
1213f3f3 sago007 2015-09-19 19:24 109
 * for (string s& : folders) {
1213f3f3 sago007 2015-09-19 19:24 110
 *     s+="/My Program Name/";
1213f3f3 sago007 2015-09-19 19:24 111
 * }
1213f3f3 sago007 2015-09-19 19:24 112
 * @endcode
1213f3f3 sago007 2015-09-19 19:24 113
 * You must apply "/My Program Name/" to all the strings.
1213f3f3 sago007 2015-09-19 19:24 114
 * The string at the lowest index has the highest priority.
1213f3f3 sago007 2015-09-19 19:24 115
 * @param homes A vector that extra folders will be appended to.
1213f3f3 sago007 2015-09-19 19:24 116
 */
1213f3f3 sago007 2015-09-19 19:24 117
void appendAdditionalDataDirectories(std::vector<std::string>& homes);
0fd23ef9 sago007 2018-05-22 17:49 118
1213f3f3 sago007 2015-09-19 19:24 119
/**
1213f3f3 sago007 2015-09-19 19:24 120
 * This will append extra folders that your program should be looking for config files in.
1213f3f3 sago007 2015-09-19 19:24 121
 * This does not normally include the path returned by GetConfigHome().
1213f3f3 sago007 2015-09-19 19:24 122
 * If you want all the folders you should do something like:
1213f3f3 sago007 2015-09-19 19:24 123
 * @code{.cpp}
9ad3df57 Poul Sander 2016-09-02 20:14 124
 * std::vector<std::string> folders;
9ad3df57 Poul Sander 2016-09-02 20:14 125
 * folders.push_back(sago::getConfigHome());
9ad3df57 Poul Sander 2016-09-02 20:14 126
 * sago::appendAdditionalConfigDirectories(folders);
9ad3df57 Poul Sander 2016-09-02 20:14 127
 * for (std::string s& : folders) {
1213f3f3 sago007 2015-09-19 19:24 128
 *     s+="/My Program Name/";
1213f3f3 sago007 2015-09-19 19:24 129
 * }
1213f3f3 sago007 2015-09-19 19:24 130
 * @endcode
1213f3f3 sago007 2015-09-19 19:24 131
 * You must apply "/My Program Name/" to all the strings.
1213f3f3 sago007 2015-09-19 19:24 132
 * The string at the lowest index has the highest priority.
1213f3f3 sago007 2015-09-19 19:24 133
 * @param homes A vector that extra folders will be appended to.
1213f3f3 sago007 2015-09-19 19:24 134
 */
1213f3f3 sago007 2015-09-19 19:24 135
void appendAdditionalConfigDirectories(std::vector<std::string>& homes);
1213f3f3 sago007 2015-09-19 19:24 136
1213f3f3 sago007 2015-09-19 19:24 137
/**
0fd23ef9 sago007 2018-05-22 17:49 138
 * The folder that represents the desktop.
0fd23ef9 sago007 2018-05-22 17:49 139
 * Normally you should try not to use this folder.
0fd23ef9 sago007 2018-05-22 17:49 140
 * @return Absolute path to the user's desktop
0fd23ef9 sago007 2018-05-22 17:49 141
 */
0fd23ef9 sago007 2018-05-22 17:49 142
std::string getDesktopFolder();
0fd23ef9 sago007 2018-05-22 17:49 143
0fd23ef9 sago007 2018-05-22 17:49 144
/**
0fd23ef9 sago007 2018-05-22 17:49 145
 * The folder to store user documents to
0fd23ef9 sago007 2018-05-22 17:49 146
 * @return Absolute path to the "Documents" folder
0fd23ef9 sago007 2018-05-22 17:49 147
 */
0fd23ef9 sago007 2018-05-22 17:49 148
std::string getDocumentsFolder();
0fd23ef9 sago007 2018-05-22 17:49 149
0fd23ef9 sago007 2018-05-22 17:49 150
/**
0fd23ef9 sago007 2018-05-22 17:49 151
 * The folder where files are downloaded.
513c0ebf Poul Sander 2018-06-06 17:05 152
 * @return Absolute path to the folder where files are downloaded to.
513c0ebf Poul Sander 2018-06-06 17:05 153
 */
513c0ebf Poul Sander 2018-06-06 17:05 154
std::string getDownloadFolder();
513c0ebf Poul Sander 2018-06-06 17:05 155
513c0ebf Poul Sander 2018-06-06 17:05 156
/**
513c0ebf Poul Sander 2018-06-06 17:05 157
 * The folder where files are downloaded.
513c0ebf Poul Sander 2018-06-06 17:05 158
 * @note This is provided for backward compatibility. Use getDownloadFolder instead.
0fd23ef9 sago007 2018-05-22 17:49 159
 * @return Absolute path to the folder where files are downloaded to.
0fd23ef9 sago007 2018-05-22 17:49 160
 */
0fd23ef9 sago007 2018-05-22 17:49 161
std::string getDownloadFolder1();
0fd23ef9 sago007 2018-05-22 17:49 162
0fd23ef9 sago007 2018-05-22 17:49 163
/**
6b50949e sago007 2018-06-24 14:45 164
 * The folder for storing the user's pictures.
0fd23ef9 sago007 2018-05-22 17:49 165
 * @return Absolute path to the "Picture" folder
0fd23ef9 sago007 2018-05-22 17:49 166
 */
0fd23ef9 sago007 2018-05-22 17:49 167
std::string getPicturesFolder();
0fd23ef9 sago007 2018-05-22 17:49 168
0fd23ef9 sago007 2018-05-22 17:49 169
/**
5612f69b sago007 2018-06-16 11:22 170
 * This returns the folder that can be used for sharing files with other users on the same system.
5612f69b sago007 2018-06-16 11:22 171
 * @return Absolute path to the "Public" folder
5612f69b sago007 2018-06-16 11:22 172
 */
5612f69b sago007 2018-06-16 11:22 173
std::string getPublicFolder();
5612f69b sago007 2018-06-16 11:22 174
5612f69b sago007 2018-06-16 11:22 175
/**
0fd23ef9 sago007 2018-05-22 17:49 176
 * The folder where music is stored
0fd23ef9 sago007 2018-05-22 17:49 177
 * @return Absolute path to the music folder
0fd23ef9 sago007 2018-05-22 17:49 178
 */
0fd23ef9 sago007 2018-05-22 17:49 179
std::string getMusicFolder();
0fd23ef9 sago007 2018-05-22 17:49 180
0fd23ef9 sago007 2018-05-22 17:49 181
/**
0fd23ef9 sago007 2018-05-22 17:49 182
 * The folder where video is stored
0fd23ef9 sago007 2018-05-22 17:49 183
 * @return Absolute path to the video folder
0fd23ef9 sago007 2018-05-22 17:49 184
 */
0fd23ef9 sago007 2018-05-22 17:49 185
std::string getVideoFolder();
0fd23ef9 sago007 2018-05-22 17:49 186
0fd23ef9 sago007 2018-05-22 17:49 187
/**
6b50949e sago007 2018-06-24 14:45 188
 * A base folder for storing saved games.
0fd23ef9 sago007 2018-05-22 17:49 189
 * You must add the program name to it like this:
0fd23ef9 sago007 2018-05-22 17:49 190
 * @code{.cpp}
be6a67eb sago007 2018-05-27 13:12 191
 * string saved_games_folder = sago::getSaveGamesFolder1()+"/My Program Name/";
0fd23ef9 sago007 2018-05-22 17:49 192
 * @endcode
0fd23ef9 sago007 2018-05-22 17:49 193
 * @note Windows: This is an XP compatible version and returns the path to "My Games" in Documents. Vista and later has an official folder.
0fd23ef9 sago007 2018-05-22 17:49 194
 * @note Linux: XDF does not define a folder for saved games. This will just return the same as GetDataHome()
6b50949e sago007 2018-06-24 14:45 195
 * @return The folder base folder for storing save games.
0fd23ef9 sago007 2018-05-22 17:49 196
 */
0fd23ef9 sago007 2018-05-22 17:49 197
std::string getSaveGamesFolder1();
0fd23ef9 sago007 2018-05-22 17:49 198
513c0ebf Poul Sander 2018-06-06 17:05 199
/**
6b50949e sago007 2018-06-24 14:45 200
 * A base folder for storing saved games.
513c0ebf Poul Sander 2018-06-06 17:05 201
 * You must add the program name to it like this:
513c0ebf Poul Sander 2018-06-06 17:05 202
 * @code{.cpp}
513c0ebf Poul Sander 2018-06-06 17:05 203
 * string saved_games_folder = sago::getSaveGamesFolder2()+"/My Program Name/";
513c0ebf Poul Sander 2018-06-06 17:05 204
 * @endcode
513c0ebf Poul Sander 2018-06-06 17:05 205
 * @note PlatformFolders provide different folders to for saved games as not all operating systems has support for Saved Games yet.
513c0ebf Poul Sander 2018-06-06 17:05 206
 * It is recommended to pick the highest number (currently getSaveGamesFolder2) at the time your product enters production and stick with it
513c0ebf Poul Sander 2018-06-06 17:05 207
 * @note Windows: This returns the "Saved Games" folder. This folder exist in Vista and later
513c0ebf Poul Sander 2018-06-06 17:05 208
 * @note Linux: XDF does not define a folder for saved games. This will just return the same as GetDataHome()
6b50949e sago007 2018-06-24 14:45 209
 * @return The folder base folder for storing save games.
513c0ebf Poul Sander 2018-06-06 17:05 210
 */
513c0ebf Poul Sander 2018-06-06 17:05 211
std::string getSaveGamesFolder2();
513c0ebf Poul Sander 2018-06-06 17:05 212
0fd23ef9 sago007 2018-05-22 17:49 213
#ifndef DOXYGEN_SHOULD_SKIP_THIS
0fd23ef9 sago007 2018-05-22 17:49 214
0fd23ef9 sago007 2018-05-22 17:49 215
/**
1213f3f3 sago007 2015-09-19 19:24 216
 * This class contains methods for finding the system depended special folders.
1213f3f3 sago007 2015-09-19 19:24 217
 * For Windows these folders are either by convention or given by CSIDL.
1213f3f3 sago007 2015-09-19 19:24 218
 * For Linux XDG convention is used.
1213f3f3 sago007 2015-09-19 19:24 219
 * The Linux version has very little error checking and assumes that the config is correct
1213f3f3 sago007 2015-09-19 19:24 220
 */
1213f3f3 sago007 2015-09-19 19:24 221
class PlatformFolders {
1213f3f3 sago007 2015-09-19 19:24 222
public:
1213f3f3 sago007 2015-09-19 19:24 223
	PlatformFolders();
1213f3f3 sago007 2015-09-19 19:24 224
	~PlatformFolders();
1213f3f3 sago007 2015-09-19 19:24 225
	/**
1213f3f3 sago007 2015-09-19 19:24 226
	 * The folder that represents the desktop.
1213f3f3 sago007 2015-09-19 19:24 227
	 * Normally you should try not to use this folder.
1213f3f3 sago007 2015-09-19 19:24 228
	 * @return Absolute path to the user's desktop
1213f3f3 sago007 2015-09-19 19:24 229
	 */
1213f3f3 sago007 2015-09-19 19:24 230
	std::string getDesktopFolder() const;
1213f3f3 sago007 2015-09-19 19:24 231
	/**
1213f3f3 sago007 2015-09-19 19:24 232
	 * The folder to store user documents to
1213f3f3 sago007 2015-09-19 19:24 233
	 * @return Absolute path to the "Documents" folder
1213f3f3 sago007 2015-09-19 19:24 234
	 */
1213f3f3 sago007 2015-09-19 19:24 235
	std::string getDocumentsFolder() const;
1213f3f3 sago007 2015-09-19 19:24 236
	/**
6b50949e sago007 2018-06-24 14:45 237
	 * The folder for storing the user's pictures.
1213f3f3 sago007 2015-09-19 19:24 238
	 * @return Absolute path to the "Picture" folder
1213f3f3 sago007 2015-09-19 19:24 239
	 */
1213f3f3 sago007 2015-09-19 19:24 240
	std::string getPicturesFolder() const;
1213f3f3 sago007 2015-09-19 19:24 241
	/**
c7c13350 sum01 2019-03-06 18:59 242
	 * Use sago::getPublicFolder() instead!
5612f69b sago007 2018-06-16 11:22 243
	 */
5612f69b sago007 2018-06-16 11:22 244
	std::string getPublicFolder() const;
5612f69b sago007 2018-06-16 11:22 245
	/**
1213f3f3 sago007 2015-09-19 19:24 246
	 * The folder where files are downloaded.
1213f3f3 sago007 2015-09-19 19:24 247
	 * @note Windows: This version is XP compatible and returns the Desktop. Vista and later has a dedicated folder.
1213f3f3 sago007 2015-09-19 19:24 248
	 * @return Absolute path to the folder where files are downloaded to.
1213f3f3 sago007 2015-09-19 19:24 249
	 */
1213f3f3 sago007 2015-09-19 19:24 250
	std::string getDownloadFolder1() const;
1213f3f3 sago007 2015-09-19 19:24 251
	/**
1213f3f3 sago007 2015-09-19 19:24 252
	 * The folder where music is stored
1213f3f3 sago007 2015-09-19 19:24 253
	 * @return Absolute path to the music folder
1213f3f3 sago007 2015-09-19 19:24 254
	 */
1213f3f3 sago007 2015-09-19 19:24 255
	std::string getMusicFolder() const;
1213f3f3 sago007 2015-09-19 19:24 256
	/**
1213f3f3 sago007 2015-09-19 19:24 257
	 * The folder where video is stored
1213f3f3 sago007 2015-09-19 19:24 258
	 * @return Absolute path to the video folder
1213f3f3 sago007 2015-09-19 19:24 259
	 */
1213f3f3 sago007 2015-09-19 19:24 260
	std::string getVideoFolder() const;
1213f3f3 sago007 2015-09-19 19:24 261
	/**
6b50949e sago007 2018-06-24 14:45 262
	 * The base folder for storing saved games.
1213f3f3 sago007 2015-09-19 19:24 263
	 * You must add the program name to it like this:
1213f3f3 sago007 2015-09-19 19:24 264
	 * @code{.cpp}
1213f3f3 sago007 2015-09-19 19:24 265
	 * PlatformFolders pf;
1213f3f3 sago007 2015-09-19 19:24 266
	 * string saved_games_folder = pf.getSaveGamesFolder1()+"/My Program Name/";
1213f3f3 sago007 2015-09-19 19:24 267
	 * @endcode
1213f3f3 sago007 2015-09-19 19:24 268
	 * @note Windows: This is an XP compatible version and returns the path to "My Games" in Documents. Vista and later has an official folder.
1213f3f3 sago007 2015-09-19 19:24 269
	 * @note Linux: XDF does not define a folder for saved games. This will just return the same as GetDataHome()
6b50949e sago007 2018-06-24 14:45 270
	 * @return The folder base folder for storing save games.
1213f3f3 sago007 2015-09-19 19:24 271
	 */
1213f3f3 sago007 2015-09-19 19:24 272
	std::string getSaveGamesFolder1() const;
1213f3f3 sago007 2015-09-19 19:24 273
private:
1213f3f3 sago007 2015-09-19 19:24 274
	PlatformFolders(const PlatformFolders&);
1213f3f3 sago007 2015-09-19 19:24 275
	PlatformFolders& operator=(const PlatformFolders&);
b3e5a881 sum01 2018-04-21 22:53 276
#if !defined(_WIN32) && !defined(__APPLE__)
1213f3f3 sago007 2015-09-19 19:24 277
	struct PlatformFoldersData;
0fd23ef9 sago007 2018-05-22 17:49 278
	PlatformFoldersData* data;
1ff6644e sago007 2018-02-18 16:28 279
#endif
1213f3f3 sago007 2015-09-19 19:24 280
};
1213f3f3 sago007 2015-09-19 19:24 281
0fd23ef9 sago007 2018-05-22 17:49 282
#endif // skip doxygen
0fd23ef9 sago007 2018-05-22 17:49 283
0fd23ef9 sago007 2018-05-22 17:49 284
1213f3f3 sago007 2015-09-19 19:24 285
}  //namespace sago
1213f3f3 sago007 2015-09-19 19:24 286
d2b67cec sago007 2018-03-24 09:52 287
#endif  /* PLATFORM_FOLDERS_H */
1970-01-01 00:00 288