summarylogtreecommitdiffstats
path: root/apotris-install.patch
blob: e010ce629cad6b835f6bb685209d9db83625d24a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
diff --git a/meson.build b/meson.build
index 94c2295..87ae1ef 100644
--- a/meson.build
+++ b/meson.build
@@ -296,6 +296,7 @@ if host_machine.system() != 'gba'
             dependencies : dependencies,
             link_args : link_args,
             win_subsystem : 'windows',
+            install_dir : 'lib/apotris',
             install : true
         )
         if host_machine.system() == 'darwin'
@@ -305,8 +306,7 @@ if host_machine.system() != 'gba'
             install_subdir(audio_dir, install_dir : 'Contents/Resources')
             install_subdir('license', install_dir : 'Contents/Resources')
         else
-            install_subdir(audio_dir, install_dir : '.')
-            install_subdir('license', install_dir : '.')
+            install_subdir(audio_dir, install_dir : 'share/apotris')
         endif
     endif
 else
diff --git a/source/liba_window.cpp b/source/liba_window.cpp
index 5c05b92..8d44a59 100644
--- a/source/liba_window.cpp
+++ b/source/liba_window.cpp
@@ -85,7 +85,7 @@ void windowInit(){
 
     refreshWindowSize();
 
-    loadAudio("");
+    loadAudio("/usr/share/apotris/");
 
     nanotime_step_init(&stepper, (uint64_t) (NANOTIME_NSEC_PER_SEC / FPS_TARGET), nanotime_now_max(),nanotime_now,nanotime_sleep);