Skip to content

Commit

Permalink
Add flatpak-specific d3dadapter search path
Browse files Browse the repository at this point in the history
  • Loading branch information
gasinvein authored and Venemo committed Jul 12, 2019
1 parent af2948a commit d9c516b
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions common/library.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,13 @@ void *common_load_d3dadapter(char **path, char **err)

return handle;
#else
handle = open_d3dadapter("/usr/lib/x86_64-linux-gnu/d3d:" // 64bit debian/ubuntu
"/usr/lib/i386-linux-gnu/d3d:" // 32bit debian/ubuntu
"/usr/lib64/d3d:" // 64bit gentoo/suse/fedora
"/usr/lib/d3d:" // 32bit suse/fedora, 64bit arch
"/usr/lib32/d3d" // 32bit arch/gentoo
handle = open_d3dadapter("/usr/lib/x86_64-linux-gnu/d3d:" // 64bit debian/ubuntu
"/usr/lib/i386-linux-gnu/d3d:" // 32bit debian/ubuntu
"/usr/lib64/d3d:" // 64bit gentoo/suse/fedora
"/usr/lib/d3d:" // 32bit suse/fedora, 64bit arch
"/usr/lib32/d3d:" // 32bit arch/gentoo
"/usr/lib/x86_64-linux-gnu/GL/lib/d3d:" // 64bit flatpak runtime
"/usr/lib/i386-linux-gnu/GL/lib/d3d" // 32bit flatpak runtime
, path, err);

if (!handle)
Expand Down

0 comments on commit d9c516b

Please sign in to comment.