EDIT: Wait, no. I'm so retarded. The only sane way is to use non-Unix/POSIX/Linux-like system and put Linux into VM or container. Linux was never sane to begin with.
fluffrabbit {l Wrote}:Great, but AFAIK the C++17 filesystem API is mostly just good for enumerating files, dealing with symlinks, etc. I haven't used it yet. In the case of Linux, XDG_DATA_HOME should be an environment variable accessible from plain old C, and pre-C++17 streams could be used for files. Windows uses environment variables as well. What I'm hinting at is that more cross-platform support without the need for newer compiler features or large libraries is a good design goal.
dulsi {l Wrote}:fluffrabbit {l Wrote}:Great, but AFAIK the C++17 filesystem API is mostly just good for enumerating files, dealing with symlinks, etc. I haven't used it yet. In the case of Linux, XDG_DATA_HOME should be an environment variable accessible from plain old C, and pre-C++17 streams could be used for files. Windows uses environment variables as well. What I'm hinting at is that more cross-platform support without the need for newer compiler features or large libraries is a good design goal.
I'm not trying to make a solution for everyone. If that is what you want, seems like sago007's PlatformFolders may be a good solution.
Users browsing this forum: No registered users and 0 guests