virtualx-engine/platform/x11
Hein-Pieter van Braam dffdf28349 X11 return to cwd at exit
During runtime godot calls chdir() several times. This doesn't really
matter normally but when using tools such as gprof the location of the
profiling data is kind of hard to intuit.

With this PR we simply store the current working directory at start and
restore it once we're almost done exiting.

This doesn't use the OS abstractions as when we need to get the current
workdir we haven't yet initialized it (by necessity). This would break
if we tried to build X11 for windows, but since the X11 target is
hardcoded to use the UNIX abstractions I don't think it matters.

(cherry picked from commit d0c2015fe1)
2017-03-18 20:12:42 +01:00
..
export Welcome in 2017, dear changelog reader! 2017-01-12 19:15:30 +01:00
context_gl_x11.cpp x11: don't wait for window to be mapped 2017-03-18 19:29:46 +01:00
context_gl_x11.h Welcome in 2017, dear changelog reader! 2017-01-12 19:15:30 +01:00
detect.py Use -Ofast on x11. Also introduced use_lto option. 2017-03-18 19:52:35 +01:00
godot_x11.cpp X11 return to cwd at exit 2017-03-18 20:12:42 +01:00
joystick_linux.cpp Welcome in 2017, dear changelog reader! 2017-01-12 19:15:30 +01:00
joystick_linux.h Welcome in 2017, dear changelog reader! 2017-01-12 19:15:30 +01:00
key_mapping_x11.cpp Welcome in 2017, dear changelog reader! 2017-01-12 19:15:30 +01:00
key_mapping_x11.h Welcome in 2017, dear changelog reader! 2017-01-12 19:15:30 +01:00
logo.png Fixed iCCp chunk in pngs 2016-06-22 21:13:29 +02:00
os_x11.cpp Fix issues with set_window_resizable on x11 2017-03-18 19:56:16 +01:00
os_x11.h Welcome in 2017, dear changelog reader! 2017-01-12 19:15:30 +01:00
platform_config.h Welcome in 2017, dear changelog reader! 2017-01-12 19:15:30 +01:00
SCsub style: Fix PEP8 whitespace issues in Python files 2016-11-02 22:28:28 +01:00