diff options
author | Hein-Pieter van Braam <hp@tmm.cx> | 2017-02-17 19:24:42 +0100 |
---|---|---|
committer | Hein-Pieter van Braam <hp@tmm.cx> | 2017-02-18 12:41:26 +0100 |
commit | d0c2015fe11f920874661ec24c518aa36c99b470 (patch) | |
tree | 4f07fa3085b92d13a766e42a4b0105615e8949ff /servers/visual/visual_server_scene.h | |
parent | 9a5442a22630e346df44a3df6bc1bbbd03c787dd (diff) |
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.
Diffstat (limited to 'servers/visual/visual_server_scene.h')
0 files changed, 0 insertions, 0 deletions