Reading the config directory from the Windows API instead of GLib
commit3e089e4c2c914a4b8885daa65e784a227bd2d6b0
authorEnrico Tröger <enrico.troeger@uvena.de>
Sun, 5 Oct 2014 10:55:33 +0000 (5 12:55 +0200)
committerEnrico Tröger <enrico.troeger@uvena.de>
Sun, 5 Oct 2014 10:55:33 +0000 (5 12:55 +0200)
tree13feb1a4251d04201a8b11d0952571cf5c92ef62
parentf262f5986da5e04a1761daa2ef9212e26d68d99b
Reading the config directory from the Windows API instead of GLib

Before we used g_get_user_config_dir() but GLib changed the returned
location in newer versions, so use the Windows API directly
to get the old location, at least for now.
Also add utils_get_user_config_dir() wrapper.

Code is based almost completely on a patch from Matthew.
src/main.c
src/utils.c
src/utils.h
src/win32.c
src/win32.h