| 1 | /* |
| 2 | Its is under the MIT license, to encourage reuse by cut-and-paste. |
| 3 | |
| 4 | Copyright (c) 2015 Poul Sander |
| 5 | |
| 6 | Permission is hereby granted, free of charge, to any person |
| 7 | obtaining a copy of this software and associated documentation files |
| 8 | (the "Software"), to deal in the Software without restriction, |
| 9 | including without limitation the rights to use, copy, modify, merge, |
| 10 | publish, distribute, sublicense, and/or sell copies of the Software, |
| 11 | and to permit persons to whom the Software is furnished to do so, |
| 12 | subject to the following conditions: |
| 13 | |
| 14 | The above copyright notice and this permission notice shall be |
| 15 | included in all copies or substantial portions of the Software. |
| 16 | |
| 17 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
| 18 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
| 19 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
| 20 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS |
| 21 | BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN |
| 22 | ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN |
| 23 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
| 24 | SOFTWARE. |
| 25 | */ |
| 26 | |
| 27 | #include <iostream> |
| 28 | #include "sago/platform_folders.h" |
| 29 | |
| 30 | int main() { |
| 31 | std::cout << "Config: " << sago::getConfigHome() << "\n"; |
| 32 | std::cout << "Data: " << sago::getDataHome() << "\n"; |
| 33 | std::cout << "State: " << sago::getStateDir() << "\n"; |
| 34 | std::cout << "Cache: " << sago::getCacheDir() << "\n"; |
| 35 | std::cout << "Documents: " << sago::getDocumentsFolder() << "\n"; |
| 36 | std::cout << "Desktop: " << sago::getDesktopFolder() << "\n"; |
| 37 | std::cout << "Pictures: " << sago::getPicturesFolder() << "\n"; |
| 38 | std::cout << "Public: " << sago::getPublicFolder() << "\n"; |
| 39 | std::cout << "Music: " << sago::getMusicFolder() << "\n"; |
| 40 | std::cout << "Video: " << sago::getVideoFolder() << "\n"; |
| 41 | std::cout << "Download: " << sago::getDownloadFolder() << "\n"; |
| 42 | std::cout << "Save Games 1: " << sago::getSaveGamesFolder1() << "\n"; |
| 43 | std::cout << "Save Games 2: " << sago::getSaveGamesFolder2() << "\n"; |
| 44 | std::vector<std::string> extraData; |
| 45 | sago::appendAdditionalDataDirectories(extraData); |
| 46 | for (size_t i=0; i < extraData.size(); ++i) { |
| 47 | std::cout << "Additional data " << i << ": " << extraData.at(i) << "\n"; |
| 48 | } |
| 49 | return 0; |
| 50 | } |