Fix cache path with RUN_IN_PLACE
authorShadowNinja <shadowninja@minetest.net>
Fri, 18 Dec 2015 20:42:12 +0000 (15:42 -0500)
committersapier <sapier AT gmx dot net>
Tue, 29 Dec 2015 23:14:30 +0000 (00:14 +0100)
commit9719aded5430dd57591310c9cae06944dc345d42
tree74f068bb030fcd8f7807cf336a9cdf28318d5c80
parentcb30facda0351a148005bfe33377c2ecc8f97af8
Fix cache path with RUN_IN_PLACE

If an `XDG_CACHE_HOME` can't be found or `RUN_IN_PLACE` is enabled,
`path_cache` is left at its default of `$PATH_USER/cache`
(at a time when `PATH_USER` is `..`), rather than being reset to
`$PATH_USER/cache` after `PATH_USER` has been properly set.
src/porting.cpp