virtualx-engine/platform/windows
Rémi Verschelde 32c12a92a5 Add initial support for the XDG Base Directory spec
Spec version 0.7 from https://standards.freedesktop.org/basedir-spec/basedir-spec-0.7.html
(latest as of this commit).

Three virtual methods are added to OS for the various XDG paths we will use:
- OS::get_data_path gives XDG_DATA_HOME, or if missing:
  ~/.local/share on X11, ~/Library/Application Support/ on macOS and %APPDATA% on Windows
- OS::get_config_path gives XDG_CONFIG_HOME, or if missing:
  ~/.config on X11, ~/Library/Application Support/ on macOS and %APPDATA% on Windows
- OS::get_cache_path gives XDG_CACHE_HOME, or if missing:
  ~/.cache on X11, ~/Library/Caches on macOS and %APPDATA% on Windows

So for Windows there are no changes, for Linux we follow the full split spec
and for macOS stuff will move from ~/.godot to ~/Library/Application Support/Godot.

Support for system-wide installation of templates on Unix was removed for now,
as it's a bit hackish and I don't think anyone uses it.

user:// will still be OS::get_data_path() + "/godot/app_userdata/$name" by
default, but when using the application/config/use_shared_user_dir option
it will now use XDG_DATA_HOME/$name, e.g. ~/.local/share/MyGame.

For now everything still goes in EditorSettings::get_settings_dir(), but
this will be changed in a later commit to make use of the new splitting
where relevant.

Part of #3513.
2017-11-19 20:54:24 +01:00
..
export Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
context_gl_win.cpp Disable OpenGL warnings unless running with -v, closes #7171 2017-11-13 13:40:07 -03:00
context_gl_win.h Drop unusued LEGACYGL_ENABLED check 2017-10-13 00:18:04 +02:00
crash_handler_win.cpp Implemented physics plug 2017-11-04 03:25:51 +01:00
crash_handler_win.h Added a crash handler to dump the backtrace on Windows, Linux and OS X 2017-09-13 10:07:23 -03:00
ctxgl_procaddr.cpp Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
ctxgl_procaddr.h Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
detect.py SCons: make use_lto a global option and opt-in for iphone 2017-11-02 09:11:50 +01:00
godot.ico Make the Windows icon file smaller 2017-06-20 14:38:50 +02:00
godot_res.rc Fix Windows resource script 2016-07-27 15:35:49 -03:00
godot_win.cpp Prevent running the crash_handler when a debugger is present on windows 2017-09-18 16:29:23 -03:00
joypad.cpp Remove assignment and declarations in if statements 2017-09-08 14:59:15 +02:00
joypad.h Fix files header 2017-09-01 21:07:55 +07:00
key_mapping_win.cpp Fixed wrong Virtual-KeyCode(0x12) pair on Windows platform (#12073) 2017-10-14 15:41:57 +07:00
key_mapping_win.h Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
lang_table.h Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
logo.png Fixed iCCp chunk in pngs 2016-06-22 21:13:29 +02:00
os_windows.cpp Add initial support for the XDG Base Directory spec 2017-11-19 20:54:24 +01:00
os_windows.h Add initial support for the XDG Base Directory spec 2017-11-19 20:54:24 +01:00
packet_peer_udp_winsock.cpp Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
packet_peer_udp_winsock.h Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
platform_config.h Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
power_windows.cpp Fix enums bindings 2017-09-13 20:57:07 +03:00
power_windows.h Fix enums bindings 2017-09-13 20:57:07 +03:00
SCsub Merge pull request #11568 from endragor/loggers 2017-10-02 23:51:26 +02:00
stream_peer_winsock.cpp Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
stream_peer_winsock.h Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
tcp_server_winsock.cpp Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
tcp_server_winsock.h Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
windows_terminal_logger.cpp Extract logging logic 2017-09-25 16:19:21 +07:00
windows_terminal_logger.h Extract logging logic 2017-09-25 16:19:21 +07:00