d0c2015fe1
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. |
||
---|---|---|
.. | ||
export | ||
context_gl_x11.cpp | ||
context_gl_x11.h | ||
detect.py | ||
godot_x11.cpp | ||
joypad_linux.cpp | ||
joypad_linux.h | ||
key_mapping_x11.cpp | ||
key_mapping_x11.h | ||
logo.png | ||
os_x11.cpp | ||
os_x11.h | ||
platform_config.h | ||
SCsub |