Add meson options for user agent and script path
This commit is contained in:
parent
18e5317baf
commit
1090ea8295
6 changed files with 81 additions and 19 deletions
|
@ -16,6 +16,7 @@
|
|||
*/
|
||||
|
||||
#include "bitcoinity_ticker_price.hpp"
|
||||
#include "configure.hpp"
|
||||
#include <wrenpp/vm_fun.hpp>
|
||||
#include <wrenpp/def_configuration.hpp>
|
||||
#include <fstream>
|
||||
|
@ -59,7 +60,7 @@ int main() {
|
|||
|
||||
duck::register_bitcoinity_to_wren(vm);
|
||||
|
||||
std::string main_script = load_string_from_file("script/main.wren");
|
||||
std::string main_script = load_string_from_file(std::string{duck::g_script_path} + "main.wren");
|
||||
vm.interpret("main", main_script.c_str());
|
||||
wren::call<void>(vm, {"main", "the_app"}, "start");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue