godot/platform/linuxbsd
Omar Polo a3384b7461 use .get_file() instead of basename(3)
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!
2021-10-08 20:10:26 +02:00
..
export Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
context_gl_x11.cpp Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
context_gl_x11.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
crash_handler_linuxbsd.cpp Split OS::execute into two methods 2021-01-09 10:03:23 +00:00
crash_handler_linuxbsd.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
detect_prime_x11.cpp Add 'AMD' GPU vendor name to PRIME detector 2021-02-20 16:49:06 +01:00
detect_prime_x11.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
detect.py LinuxBSD now compiles without vulkan/x11. 2021-06-01 16:27:54 +02:00
display_server_x11.cpp Add MOUSE_MODE_CONFINED_HIDDEN 2021-06-03 11:44:28 -04:00
display_server_x11.h Modernize atomics 2021-02-18 17:12:46 +01:00
godot_linuxbsd.cpp Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
joypad_linux.cpp Style: Apply clang-tidy's readability-braces-around-statements 2021-04-05 14:09:59 +02:00
joypad_linux.h Rename some more global enums (Key, Joy, MIDI) 2021-03-23 07:13:23 -04:00
key_mapping_x11.cpp Rename "Control" key to "Ctrl" and add "_pressed" suffix to all InputEventWithModifiers properties/methods 2021-05-07 14:00:50 -06:00
key_mapping_x11.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
libudev-so_wrap.c An update to the dylibloader for older inttypes 2021-02-20 01:24:30 +01:00
libudev-so_wrap.h An update to the dylibloader for older inttypes 2021-02-20 01:24:30 +01:00
logo.png Effective DisplayServer separation, rename X11 -> LinuxBSD 2020-03-26 15:49:34 +01:00
os_linuxbsd.cpp use .get_file() instead of basename(3) 2021-10-08 20:10:26 +02:00
os_linuxbsd.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
pck_embed.ld Effective DisplayServer separation, rename X11 -> LinuxBSD 2020-03-26 15:49:34 +01:00
pck_embed.legacy.ld Effective DisplayServer separation, rename X11 -> LinuxBSD 2020-03-26 15:49:34 +01:00
platform_config.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
platform_linuxbsd_builders.py SCons: Format buildsystem files with psf/black 2020-03-30 09:05:53 +02:00
SCsub LinuxBSD now compiles without vulkan/x11. 2021-06-01 16:27:54 +02:00
vulkan_context_x11.cpp Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
vulkan_context_x11.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00