godot/platform
Hein-Pieter van Braam d0c2015fe1 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.
2017-02-18 12:41:26 +01:00
..
android Rename the _MD macro to D_METHOD 2017-02-13 12:50:02 +01:00
bb10 Rename the _MD macro to D_METHOD 2017-02-13 12:50:02 +01:00
haiku Adapt platforms to AudioServer refactoring 2017-01-16 19:19:45 +01:00
iphone Rename the _MD macro to D_METHOD 2017-02-13 12:50:02 +01:00
javascript Rename the _MD macro to D_METHOD 2017-02-13 12:50:02 +01:00
osx Fix missing semicolon in previous commit 2017-02-13 23:46:25 +01:00
server Adapt platforms to AudioServer refactoring 2017-01-16 19:19:45 +01:00
uwp Removed import/export system, will start new one from scratch. 2017-01-25 21:57:08 -03:00
windows Merge pull request #7581 from Faless/v6_wild_bind 2017-02-12 23:31:40 +01:00
x11 X11 return to cwd at exit 2017-02-18 12:41:26 +01:00