Mercurial > repos > blastem
changeset 2356:12d594e69e04
Don't use absolute paths for GTK so things work across distros without extra work
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 22 Oct 2023 11:57:53 -0700 |
parents | 94cf5cc89227 |
children | 344c6a3fe8a8 |
files | nuklear_ui/filechooser_gtk.c |
diffstat | 1 files changed, 2 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/nuklear_ui/filechooser_gtk.c Sat Oct 21 19:22:01 2023 -0700 +++ b/nuklear_ui/filechooser_gtk.c Sun Oct 22 11:57:53 2023 -0700 @@ -38,15 +38,8 @@ static gtk* check_init_gtk(void) { static const char *so_paths[] = { -#ifdef X86_64 - "/usr/lib/x86_64-linux-gnu/libgtk-3.so.0", - "/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0", -#elif X86_32 - "/usr/lib/i386-linux-gnu/libgtk-3.so.0", - "/usr/lib/i386-linux-gnu/libgtk-x11-2.0.so.0", -#else - //TODO: what are these paths on ARM? -#endif + "libgtk-3.so.0", + "libgtk-x11-2.0.so.0", }; static gtk *funcs; static uint8_t already_init;