godot/platform
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
..
android #7215 try to fix adb bad targeting user on device 2017-03-18 19:41:37 +01:00
bb10 Welcome in 2017, dear changelog reader! 2017-01-12 19:15:30 +01:00
haiku Welcome in 2017, dear changelog reader! 2017-01-12 19:15:30 +01:00
iphone Core motion for Godot 2.x (based on PR 7127) 2017-03-09 21:46:38 +11:00
javascript Add window features in web export 2017-03-07 14:11:00 +01:00
osx Fix for issue #7766 2017-03-18 20:09:45 +01:00
server Welcome in 2017, dear changelog reader! 2017-01-12 19:15:30 +01:00
windows Fix glitches when sampling relative cursor data in CAPTURED mouse mode on Windows. 2017-03-18 20:06:40 +01:00
winrt Improvements to scons defined WINVER/_WIN32_WINNT 2017-01-12 19:15:30 +01:00
x11 X11 return to cwd at exit 2017-03-18 20:12:42 +01:00