From 4ff1d22ca52960d25e3d62700787d536ec90e50a Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Tue, 13 Mar 2018 22:12:13 +0100 Subject: [PATCH] Find the location of the HTML file from the location of the Nageru theme. --- nageru/ultimate.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nageru/ultimate.lua b/nageru/ultimate.lua index 32b1713..7d06451 100644 --- a/nageru/ultimate.lua +++ b/nageru/ultimate.lua @@ -45,8 +45,8 @@ local FADE_TRANSITION = 2 -- frame and not per field, since we deinterlace. local last_resolution = {} -local cef_input = HTMLInput.new("file:///home/sesse/dev/ultimatescore/score.html") -cef_input:set_url("file:///home/sesse/dev/ultimatescore/score.html"); +local cef_path = Nageru.THEME_PATH:match("(.*)/nageru/") +local cef_input = HTMLInput.new("file://" .. cef_path .. "/score.html") cef_input:execute_javascript_async("play()") function reload_cef() -- 2.39.2