git repos / PlatformFolders

blame: platform_folders.cpp

normal view · raw

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