04c08d1f8c
On OpenBSD the compiler complains that calling basename(3) would lose
const qualifier. basename(3) is defined as
char *basename(char *);
and can, accorgindly to the POSIX.1, modify the passed string.
This uses the .get_file() method. The check is necessary because
file_name could be a directory, in which case .get_file() would return
an empty string. The .get_base_dir().get_file() idiom is already used.
The usage of get_file() and the check were suggested by theraot, thanks!
(cherry picked from commit
|
||
---|---|---|
.. | ||
export | ||
context_gl_x11.cpp | ||
context_gl_x11.h | ||
crash_handler_x11.cpp | ||
crash_handler_x11.h | ||
detect.py | ||
detect_prime.cpp | ||
detect_prime.h | ||
godot_x11.cpp | ||
joypad_linux.cpp | ||
joypad_linux.h | ||
key_mapping_x11.cpp | ||
key_mapping_x11.h | ||
libudev-so_wrap.c | ||
libudev-so_wrap.h | ||
logo.png | ||
os_x11.cpp | ||
os_x11.h | ||
pck_embed.ld | ||
pck_embed.legacy.ld | ||
platform_config.h | ||
platform_x11_builders.py | ||
power_x11.cpp | ||
power_x11.h | ||
README.md | ||
SCsub |
Linux/X11 platform port
This folder contains the C++ code for the Linux/X11 (and *BSD/X11) platform port.
Artwork license
logo.png
is derived from the Linux logo:
Permission to use and/or modify this image is granted provided you acknowledge me lewing@isc.tamu.edu and The GIMP if someone asks.