virtualx-engine/platform/x11
Omar Polo 04c08d1f8c
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!

(cherry picked from commit a3384b7461)
2021-10-10 12:27:51 +02:00
..
export Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2021-05-04 14:45:16 +02:00
context_gl_x11.cpp Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
context_gl_x11.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2021-05-04 14:45:16 +02:00
crash_handler_x11.cpp Improve crash handler message display 2021-09-14 13:41:26 +02:00
crash_handler_x11.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2021-05-04 14:45:16 +02:00
detect.py SCons: Add DEV_ENABLED defines for target=debug builds 2021-10-04 11:25:02 +02:00
detect_prime.cpp Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
detect_prime.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
godot_x11.cpp Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
joypad_linux.cpp Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
joypad_linux.h Modernize atomics 2021-02-18 12:23:25 +01:00
key_mapping_x11.cpp Add physical_scancode (keyboard layout independent keycodes) to InputEventKey and InputMap. 2021-05-06 23:19:45 +03:00
key_mapping_x11.h Add physical_scancode (keyboard layout independent keycodes) to InputEventKey and InputMap. 2021-05-06 23:19:45 +03:00
libudev-so_wrap.c Dynamically load libudev.so.1 on Linux if udev=yes 2021-02-18 10:31:31 +01:00
libudev-so_wrap.h Dynamically load libudev.so.1 on Linux if udev=yes 2021-02-18 10:31:31 +01:00
logo.png Optimize images losslessly using oxipng -o6 --strip all --zopfli 2018-06-28 19:17:41 +02:00
os_x11.cpp use .get_file() instead of basename(3) 2021-10-10 12:27:51 +02:00
os_x11.h Add partial support for Android scoped storage. 2021-08-13 11:04:17 -07:00
pck_embed.ld Fix error exporting to X11 with embedded PCK 2020-01-16 17:47:37 +01:00
pck_embed.legacy.ld Fix error exporting to X11 with embedded PCK 2020-01-16 17:47:37 +01:00
platform_config.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
platform_x11_builders.py SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00
power_x11.cpp Make all file access 64-bit (uint64_t) 2021-05-16 17:52:31 +02:00
power_x11.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2021-05-04 14:45:16 +02:00
README.md Add logo attribution for Android, HTML5 and Linux platform icons 2021-09-21 17:14:59 +02:00
SCsub Dynamically load libudev.so.1 on Linux if udev=yes 2021-02-18 10:31:31 +01:00

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.