From 955c64efcf30e87ab3d4bdb1520745c1997f0953 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 20 Oct 2008 02:02:27 +0000 Subject: Make Ingen and Patchage relocatable binaries when built as a bundle. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@1690 a436a847-0d15-0410-975c-d299462d15a1 --- src/ingen/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/ingen') diff --git a/src/ingen/main.cpp b/src/ingen/main.cpp index 2f729ab9..8d155c5c 100644 --- a/src/ingen/main.cpp +++ b/src/ingen/main.cpp @@ -28,6 +28,7 @@ #include "raul/Path.hpp" #include "raul/SharedPtr.hpp" #include "redlandmm/World.hpp" +#include "shared/runtime_paths.hpp" #include "module/global.hpp" #include "module/Module.hpp" #include "module/World.hpp" @@ -86,6 +87,9 @@ main(int argc, char** argv) return 1; } + /* Set bundle path from executable location so resources/modules can be found */ + Shared::set_bundle_path_from_code((void*)&main); + SharedPtr engine_module; SharedPtr engine_http_module; SharedPtr engine_osc_module; -- cgit v1.2.1