| f0488f27 |
Minor spelling fix in README
Also slightly reworded the example cmake usage.
|
sum01 |
2019-03-06 19:12 |
| 0267c838 |
Use getpwuid_r instead of getpwuid. This makes the library thread safe.
|
sago007 |
2019-03-03 13:35 |
| ed746269 |
Changed the utf-16 to utf-8 to be in namespace sago::internal, so that it can be tested independently.
|
sago007 |
2019-03-03 13:08 |
| 0c48f2f0 |
Problem on Travis with the type of constructor
|
Poul Sander |
2019-02-13 16:55 |
| 2a74df65 |
Make appendExtraFoldersTokenizer thread safe
|
Poul Sander |
2019-02-13 16:51 |
| df5fd138 |
Moved the tokenizer method, so that it is testable. Needed for a new thread safe tokenizer.
|
Poul Sander |
2019-02-13 16:35 |
| d096651d |
Pushed version number
|
sago007 |
2018-06-24 15:11 |
| 6b50949e |
Doxygen fixes
|
sago007 |
2018-06-24 14:45 |
| 381e222b |
Merge pull request #16 from sago007/MacNoCore
Mac no core
|
Poul Sander |
2018-06-24 12:16 |
| ed93318e |
Update README.md
Added notes about Mac OS X and the drop of the Core Framework. The information is still included but will be removed after 4.0.0 has been released.
|
Poul Sander |
2018-06-24 11:20 |
| 51c64065 |
Removed the need for CoreServices on Mac OS X. Based on a slight discussion on https://github.com/sago007/PlatformFolders/issues/14 Removes a major pain in the Mac OS X part. This commit includes the code changes. The README needs updates too.
|
Poul Sander |
2018-06-24 10:58 |
| 01bc07c3 |
Merge pull request #15 from sum01/cmake-touchups
Cmake touchups
|
Poul Sander |
2018-06-22 11:05 |
| c8e9ee00 |
Removes unnecessary cmake.in file
Since no dependencies are needed after compile-time (CoreServices is PRIVATE) we don't need its special logic.
This installs an auto-generated platform_foldersConfig.cmake file instead.
|
sum01 |
2018-06-21 15:16 |
| 2e81279d |
Only check for Windows once
|
sum01 |
2018-06-21 15:13 |
| 137981b4 |
Merge pull request #13 from sago007/AddPublic
Add "Public" as an option.
|
Poul Sander |
2018-06-17 13:38 |
| 5612f69b |
Add "Public" as an option.
|
sago007 |
2018-06-16 11:22 |
| 58f17ad3 |
Merge pull request #12 from sago007/XDG_SOMETHING_DIR-check
XDG_ dirs check
|
Poul Sander |
2018-06-16 10:30 |
| 0823b4a5 |
Add extra checks to ensure that we only look at the lines in user-dirs.dirs trat are on the format XDG_xxx_DIR="$HOME/yyy" or XDG_xxx_DIR="/yyy"
This prevents trouble caused by future standards that may allow other kind of environments in the user-dirs.dirs-file.
We now allow trailing whitespace. Previously trailing whitespace would make the returned value longer.
We do not allow whitespace around the "=" (and never did). "/usr/bin/xdg-user-dir" fails on it too.
The check is very basic. I had to drop regex. gcc does not support it until 4.9. Current target is 4.8.4
|
sago007 |
2018-06-11 16:33 |
| 66a26d0b |
Updated the README
|
sago007 |
2018-06-11 16:00 |
| 0ae0a972 |
Merge pull request #11 from sago007/KnownFolders2
Known folders2
|
Poul Sander |
2018-06-07 17:39 |
| 6daea864 |
Changed the min windows define
|
sago007 |
2018-06-06 20:45 |
| 0b976f51 |
Add "explicit" to constructor with one argument
|
Poul Sander |
2018-06-06 17:31 |
| f60a4769 |
Added the new functions to test
|
Poul Sander |
2018-06-06 17:13 |
| 513c0ebf |
Using Known folders on top of master. A lot of manual merging due to the #ifdef change
|
Poul Sander |
2018-06-06 17:05 |
| ec64bf03 |
Merge pull request #10 from sum01/C++11
C++11 & more
|
Poul Sander |
2018-06-06 16:27 |
| 2cbeb56e |
Use different C++11 setting on old Cmake
Pre-v3.8 Cmake didn't have cxx_std_11.
This sets the old setting to use C++11 when on an older version.
But on v3.8 and up it will use the newer way with cxx_std_11
|
sum01 |
2018-06-04 00:10 |
| 80e52811 |
Cmake improvements
PROJECT_NAME doesn't really work as expected. This can cause problems when trying to use it externally.
Things like git submodule's or Cmake's ExternalProject_Add could have weird behaviour, so this gets around that.
Removed some junk, and corrected the private includes to be public, so other projects correctly get the header.
Fix find_package not being seamless
Puts Config.cmake in Windows search path.
Different OS's use different Cmake search paths when find_package is called.
Because of how Cmake looks for the Config.cmake file, it previously required passing the path in the cmake command.
By moving where it's installed, we avoid that. This allows for Cmake to find_package(platform_folders) easily.
sago::platform_folders is created as an 'IMPORTED' library to be linked with target_link_libraries()
|
sum01 |
2018-05-04 17:14 |
| ba428e10 |
Add an Astyle config file & format
The used settings are what were referred to in Gitter
"I usually use astyle. Typically "astyle -t -j -y -c -k1 -z2 -A2 --pad-header "."
|
sum01 |
2018-04-27 05:42 |
| a9fe2cf3 |
Use Win32 on the test script for Appveyor
While it's used in the build script, for some reason it was fine without it.
It's better to be correct though :)
|
sum01 |
2018-04-26 22:06 |
| 0863f4b8 |
Clean up the README, add missing badges, and more
I tried to "nest" relevant content under headings, added notes about Cmake usage, and fixed some grammatical errors.
I added a section about installation, and made the build step system-agnostic.
Also changed the README's Cmake command to not build tests.
It's a lot quicker to not build them, and I doubt everyone wants to build/run tests.
Hopefully it's all an improvement :smile:
|
sum01 |
2018-04-26 21:26 |
| 452e64cc |
Create unit tests for all public functions/methods
Also reworked the old test file into the 'integration.cpp' file.
Note that this increases build times a bit since there're both more code & more units to build.
You can pass -DBUILD_TESTING=OFF when running Cmake not not build them, which saves time.
|
sum01 |
2018-04-26 21:25 |
| fff3cc86 |
Use lean_and_mean, add missing headers
WIN32_LEAN_AND_MEAN makes <windows.h> bring in a lot less junk.
SUCCEEDED macro in winerror.h is used.
Stringapiset.h is needed for WideCharToMultiByte.
|
sum01 |
2018-04-22 02:15 |
| e5876621 |
ifdef instead of if defined
Doesn't technically matter, but I figured why not.
|
sum01 |
2018-04-21 23:00 |
| b3e5a881 |
Simplify some #if defined() stuff
No point having unused if's.
|
sum01 |
2018-04-21 22:53 |
| 2cecc045 |
Remove commented code
|
sum01 |
2018-04-21 18:42 |
| 3e5ce8ff |
Use nullptr (C++11) over NULL
NULL can technically vary on some systems, while C++11's nullptr guarntees safety.
|
sum01 |
2018-04-16 21:01 |
| be6a67eb |
Updated the documentation to refer to the new calling convention
|
sago007 |
2018-05-27 13:12 |
| bc48900a |
Prepare for version 3.2.0
|
sago007 |
2018-05-27 13:07 |
| aebc0462 |
Merge pull request #9 from Kogia-sima/fix/linux_cache_dir
Fix for Linux cache dir
|
Poul Sander |
2018-05-25 13:30 |
| cc1fdd3e |
Fix for Linux cache dir
Change XDG_CONFIG_DIR to XDG_CACHE_DIR
|
Kogia-sima |
2018-05-25 04:26 |
| 0fd23ef9 |
Add non member functions for all calls. The old class has been excluded from Doxygen but still availeble for backwards compatibility.
|
sago007 |
2018-05-22 17:49 |
| b31160af |
Merge pull request #7 from sum01/appveyor_fix
Appveyor fix
|
Poul Sander |
2018-04-20 11:41 |
| 3a8426ed |
Fix 32-bit Appveyor builds (hopefully)
Also switched to using the env var for the build folder, which is the clone_folder setting.
|
sum01 |
2018-04-20 04:09 |
| 541df045 |
Adds an Appveyor build shield to README I used shields.io since it allows for renaming of the label, so it says Windows. You could do the same with TravisCI if you wished :)
|
sum01 |
2018-04-20 03:21 |
| 18ecd1b0 |
Fix appveyor.yml (hopefully) Apparently cmd prompt expands vars and they go poof during comparisions, unless you quote them...
|
sum01 |
2018-04-20 03:20 |
| d7909cdc |
Merge pull request #6 from sum01/appveyor
Adds AppVeyor CI support (Windows)
|
Poul Sander |
2018-04-19 21:15 |
| 13360903 |
Add AppVeyor Windows CI yml
|
sum01 |
2018-04-19 18:36 |
| 1b0a343c |
Remove _config.yml. Use gh-pages
|
sago007 |
2018-04-19 17:00 |
| dcf5b993 |
Merge branch 'sago_dev'
|
sago007 |
2018-04-19 16:58 |
| b30e1666 |
Merge pull request #5 from sum01/compatible
Compatible touchups
|
Poul Sander |
2018-04-19 16:56 |
| a3a13ec8 |
Use C++'s strtok over C's
Removes the define used for strtok_s and replaces uses with std::strtok
Made the Windows errmsg const, and 'p' non-const, since it is changed.
|
sum01 |
2018-04-16 21:07 |
| f1ba7f28 |
Merge branch 'master' of github.com:sago007/PlatformFolders
|
sago007 |
2018-04-18 20:16 |
| 6284bc96 |
Update README with Doxygen link and spelling fixes
|
sago007 |
2018-04-18 20:16 |
| 1cbbe99f |
Change README. Fix version. Remove old Makefile
|
Poul Sander |
2018-04-17 16:13 |
| 68df0922 |
Use C++'s getenv and strlen over C's Why not? :)
|
sum01 |
2018-04-16 21:07 |
| da123945 |
Replace deprecated stdio.h cstdio brings the std snprintf, so switch to that as well
|
sum01 |
2018-04-16 20:58 |
| 9221cc69 |
Merge pull request #3 from sum01/cmake
Adds Cmake build process
|
Poul Sander |
2018-04-16 20:04 |
| ad05ef73 |
Ignore the common 'build' dir Using Cmake from a build dir is a common build step
|
sum01 |
2018-04-16 03:06 |
| 3fe9a770 |
Add Cmake building/testing for TravisCI This creates: * Linux gcc debug * Linux clang debug * Linux gcc release * Linux clang release * OSX gcc debug * OSX clang debug * OSX gcc release * OSw clang release
|
sum01 |
2018-04-16 03:09 |
| d483775b |
Add CMake build/install/test process Note: I've only personally tested on Linux, but I expect at least macOS to work. Windows should work though, probably...
|
sum01 |
2018-04-16 03:05 |
| d2b67cec |
Fixed indentation
|
sago007 |
2018-03-24 09:52 |
| 551bd7bd |
Merge pull request #2 from sago007/nitpicking1
Nitpicking1
|
Poul Sander |
2018-02-20 15:04 |
| c4a78447 |
Added Codacy badge
|
sago007 |
2018-02-18 16:37 |
| 1ff6644e |
Fixed unconventional increment of an iterator and removed the data structure from platforms that does not need it.
|
sago007 |
2018-02-18 16:28 |
| e7649149 |
Set theme jekyll-theme-slate
|
Poul Sander |
2017-03-27 18:39 |
| 4d95f02e |
Update README.md
Added gitter
|
Poul Sander |
2017-02-28 17:56 |
| 2b84d0ce |
Updated the description
|
Poul Sander |
2017-02-11 15:43 |
| f93d91e4 |
Update README.md
Right path to the license file
|
Poul Sander |
2016-11-12 17:08 |
| 34149f99 |
Update README.md
Added more visible license badge.
|
Poul Sander |
2016-11-12 17:02 |
| 0e2c2ac6 |
Updated the text script to work with MXE
|
sago007 |
2016-10-08 17:05 |
| d6759de0 |
Update README.md
Added note about UTF-8
|
Poul Sander |
2016-10-08 11:46 |
| b81b63ae |
The returned format is now always UTF-8 even for Windows. This means that all arcitectures can now trust it*.
* Linux can be configured with something besides UTF-8 but then the user is asking for trouble if he goes outside UTF-7.
|
sago007 |
2016-10-03 20:30 |
| 3931579e |
Try to compile on Mac and show the result
|
sago007 |
2016-09-16 20:36 |
| b2ba7c7d |
Removed use of std::endl. It is deprecated
|
sago007 |
2016-09-10 17:08 |
| f0ff548b |
Merge branch 'master' of github.com:sago007/PlatformFolders
|
sago007 |
2016-09-07 21:20 |
| 4f278f37 |
Update README.md
Added link to releases
|
Poul Sander |
2016-09-06 19:10 |
| 411ebafb |
There was no reasons that the data variable needed to be const. It was only set during creation
|
sago007 |
2016-09-02 21:22 |
| 9ad3df57 |
Corrected a few mistakes.
|
Poul Sander |
2016-09-02 20:14 |
| 279d04df |
Remove the NetBeans project files
|
sago007 |
2016-07-09 09:57 |
| f05ec00d |
More aggresive error handling
|
Poul Sander |
2016-06-08 18:50 |
| f308f41e |
The clang compiler was not actually used
|
Poul Sander |
2016-02-17 14:47 |
| 10212c89 |
Merge branch 'master' of github.com:sago007/PlatformFolders
|
sago007 |
2016-02-16 17:17 |
| 4c793595 |
Removed use of a variable array on the stack. It is apperently not allowed by C++ and no longer required in never versions of C.
|
sago007 |
2016-02-16 17:16 |
| 3b191916 |
Added URL
|
sago007 |
2016-02-16 17:08 |
| 463ec450 |
Added some alternatives to the readme file
It is not important that this library is used. It is important to use a library that has taken this into account.
|
Poul Sander |
2015-10-27 19:07 |
| 17b8cd4f |
Added link to realted blogpost
|
Poul Sander |
2015-10-26 18:07 |
| 5ce952c2 |
Added travis build status
Build status is now visible.
|
Poul Sander |
2015-10-26 17:50 |
| f16cdf4f |
I have confirmed that the code compiles and works on Mac OS X. Updated README file to reflect this.
|
sago007 |
2015-10-26 17:37 |
| 1eaaab72 |
Added Mac OS X support. I just need to check it on a Mac
|
sago007 |
2015-10-26 17:23 |
| dcb0fec2 |
Updated the home lookup in Linux to fallback to pwd if HOME is not set and ignore HOME if root
|
sago007 |
2015-09-21 17:50 |
| 63627d7a |
Added quick test script to compile both C++03, C++11 and Windows. Windows now always uses ANSI strings for portability. Updated README to reflect this.
|
sago007 |
2015-09-20 18:08 |
| 043fcfb9 |
Added travis. Maybe build-essential will be needed too...
|
sago007 |
2015-09-20 12:06 |
| 344d62f1 |
Changed the output filename extention to ".out"
|
sago007 |
2015-09-20 11:42 |
| 3984e19e |
For good measure the save game folder now contains a back-slash instead of a forward slash in case it should be used in human readable output
|
sago007 |
2015-09-20 11:12 |
| a337b4fd |
Updated README file
|
sago007 |
2015-09-19 19:47 |
| 1213f3f3 |
All the files
|
sago007 |
2015-09-19 19:24 |
| b8e71adb |
Initial commit
|
Poul Sander |
2015-09-19 19:15 |